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

org.milyn.edi.unedifact.d98a.CONITT.SegmentGroup12 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.d98a.CONITT;

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

public class SegmentGroup12 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private ALCAllowanceOrCharge aLCAllowanceOrCharge;
    private List aLIAdditionalInformation;
    private SegmentGroup13 segmentGroup13;
    private SegmentGroup14 segmentGroup14;
    private SegmentGroup15 segmentGroup15;
    private SegmentGroup16 segmentGroup16;
    private List segmentGroup17;

    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(segmentGroup13 != null) {
            segmentGroup13.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.isEmpty()) {
            for(SegmentGroup17 segmentGroup17Inst : segmentGroup17) {
                segmentGroup17Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public ALCAllowanceOrCharge getALCAllowanceOrCharge() {
        return aLCAllowanceOrCharge;
    }

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

    public List getALIAdditionalInformation() {
        return aLIAdditionalInformation;
    }

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

    public SegmentGroup13 getSegmentGroup13() {
        return segmentGroup13;
    }

    public SegmentGroup12 setSegmentGroup13(SegmentGroup13 segmentGroup13) {
        this.segmentGroup13 = segmentGroup13;  return this;
    }

    public SegmentGroup14 getSegmentGroup14() {
        return segmentGroup14;
    }

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

    public SegmentGroup15 getSegmentGroup15() {
        return segmentGroup15;
    }

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

    public SegmentGroup16 getSegmentGroup16() {
        return segmentGroup16;
    }

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

    public List getSegmentGroup17() {
        return segmentGroup17;
    }

    public SegmentGroup12 setSegmentGroup17(List segmentGroup17) {
        this.segmentGroup17 = segmentGroup17;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy