All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.milyn.edi.unedifact.d05a.CONPVA.SegmentGroup13 Maven / Gradle / Ivy

There is a newer version: 1.7.1.0
Show newest version
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d05a.CONPVA;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d05a.common.ALCAllowanceOrCharge;    
import java.util.List;    
import org.milyn.edi.unedifact.d05a.common.ALIAdditionalInformation;    
import org.milyn.edi.unedifact.d05a.common.RFFReference;    
import org.milyn.edi.unedifact.d05a.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d05a.common.FTXFreeText;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup13 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private ALCAllowanceOrCharge aLCAllowanceOrCharge;
    private List aLIAdditionalInformation;
    private List rFFReference;
    private List dTMDateTimePeriod;
    private List fTXFreeText;
    private SegmentGroup14 segmentGroup14;
    private SegmentGroup15 segmentGroup15;
    private SegmentGroup16 segmentGroup16;
    private SegmentGroup17 segmentGroup17;
    private SegmentGroup18 segmentGroup18;

    public void write(Writer writer, Delimiters delimiters) throws IOException {
        
        Writer nodeWriter = writer;

        if(aLCAllowanceOrCharge != null) {
            nodeWriter.write("ALC");
            nodeWriter.write(delimiters.getField());
            aLCAllowanceOrCharge.write(nodeWriter, delimiters);
        }
        if(aLIAdditionalInformation != null && !aLIAdditionalInformation.isEmpty()) {
            for(ALIAdditionalInformation aLIAdditionalInformationInst : aLIAdditionalInformation) {
                nodeWriter.write("ALI");
                nodeWriter.write(delimiters.getField());
                aLIAdditionalInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(rFFReference != null && !rFFReference.isEmpty()) {
            for(RFFReference rFFReferenceInst : rFFReference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                rFFReferenceInst.write(nodeWriter, delimiters);
            }
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
            for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                fTXFreeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup14 != null) {
            segmentGroup14.write(nodeWriter, delimiters);
        }
        if(segmentGroup15 != null) {
            segmentGroup15.write(nodeWriter, delimiters);
        }
        if(segmentGroup16 != null) {
            segmentGroup16.write(nodeWriter, delimiters);
        }
        if(segmentGroup17 != null) {
            segmentGroup17.write(nodeWriter, delimiters);
        }
        if(segmentGroup18 != null) {
            segmentGroup18.write(nodeWriter, delimiters);
        }
    }

    public ALCAllowanceOrCharge getALCAllowanceOrCharge() {
        return aLCAllowanceOrCharge;
    }

    public SegmentGroup13 setALCAllowanceOrCharge(ALCAllowanceOrCharge aLCAllowanceOrCharge) {
        this.aLCAllowanceOrCharge = aLCAllowanceOrCharge;  return this;
    }

    public List getALIAdditionalInformation() {
        return aLIAdditionalInformation;
    }

    public SegmentGroup13 setALIAdditionalInformation(List aLIAdditionalInformation) {
        this.aLIAdditionalInformation = aLIAdditionalInformation;  return this;
    }

    public List getRFFReference() {
        return rFFReference;
    }

    public SegmentGroup13 setRFFReference(List rFFReference) {
        this.rFFReference = rFFReference;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

    public SegmentGroup13 setDTMDateTimePeriod(List dTMDateTimePeriod) {
        this.dTMDateTimePeriod = dTMDateTimePeriod;  return this;
    }

    public List getFTXFreeText() {
        return fTXFreeText;
    }

    public SegmentGroup13 setFTXFreeText(List fTXFreeText) {
        this.fTXFreeText = fTXFreeText;  return this;
    }

    public SegmentGroup14 getSegmentGroup14() {
        return segmentGroup14;
    }

    public SegmentGroup13 setSegmentGroup14(SegmentGroup14 segmentGroup14) {
        this.segmentGroup14 = segmentGroup14;  return this;
    }

    public SegmentGroup15 getSegmentGroup15() {
        return segmentGroup15;
    }

    public SegmentGroup13 setSegmentGroup15(SegmentGroup15 segmentGroup15) {
        this.segmentGroup15 = segmentGroup15;  return this;
    }

    public SegmentGroup16 getSegmentGroup16() {
        return segmentGroup16;
    }

    public SegmentGroup13 setSegmentGroup16(SegmentGroup16 segmentGroup16) {
        this.segmentGroup16 = segmentGroup16;  return this;
    }

    public SegmentGroup17 getSegmentGroup17() {
        return segmentGroup17;
    }

    public SegmentGroup13 setSegmentGroup17(SegmentGroup17 segmentGroup17) {
        this.segmentGroup17 = segmentGroup17;  return this;
    }

    public SegmentGroup18 getSegmentGroup18() {
        return segmentGroup18;
    }

    public SegmentGroup13 setSegmentGroup18(SegmentGroup18 segmentGroup18) {
        this.segmentGroup18 = segmentGroup18;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy