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

org.milyn.edi.unedifact.d98a.REQOTE.SegmentGroup21 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.REQOTE;

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

public class SegmentGroup21 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private AllowanceOrCharge allowanceOrCharge;
    private List additionalInformation;
    private SegmentGroup22 segmentGroup22;
    private SegmentGroup23 segmentGroup23;
    private List segmentGroup24;
    private SegmentGroup25 segmentGroup25;
    private List segmentGroup26;

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

        if(allowanceOrCharge != null) {
            nodeWriter.write("ALC");
            nodeWriter.write(delimiters.getField());
            allowanceOrCharge.write(nodeWriter, delimiters);
        }
        if(additionalInformation != null && !additionalInformation.isEmpty()) {
            for(AdditionalInformation additionalInformationInst : additionalInformation) {
                nodeWriter.write("ALI");
                nodeWriter.write(delimiters.getField());
                additionalInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup22 != null) {
            segmentGroup22.write(nodeWriter, delimiters);
        }
        if(segmentGroup23 != null) {
            segmentGroup23.write(nodeWriter, delimiters);
        }
        if(segmentGroup24 != null && !segmentGroup24.isEmpty()) {
            for(SegmentGroup24 segmentGroup24Inst : segmentGroup24) {
                segmentGroup24Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup25 != null) {
            segmentGroup25.write(nodeWriter, delimiters);
        }
        if(segmentGroup26 != null && !segmentGroup26.isEmpty()) {
            for(SegmentGroup26 segmentGroup26Inst : segmentGroup26) {
                segmentGroup26Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public AllowanceOrCharge getAllowanceOrCharge() {
        return allowanceOrCharge;
    }

    public SegmentGroup21 setAllowanceOrCharge(AllowanceOrCharge allowanceOrCharge) {
        this.allowanceOrCharge = allowanceOrCharge;  return this;
    }

    public List getAdditionalInformation() {
        return additionalInformation;
    }

    public SegmentGroup21 setAdditionalInformation(List additionalInformation) {
        this.additionalInformation = additionalInformation;  return this;
    }

    public SegmentGroup22 getSegmentGroup22() {
        return segmentGroup22;
    }

    public SegmentGroup21 setSegmentGroup22(SegmentGroup22 segmentGroup22) {
        this.segmentGroup22 = segmentGroup22;  return this;
    }

    public SegmentGroup23 getSegmentGroup23() {
        return segmentGroup23;
    }

    public SegmentGroup21 setSegmentGroup23(SegmentGroup23 segmentGroup23) {
        this.segmentGroup23 = segmentGroup23;  return this;
    }

    public List getSegmentGroup24() {
        return segmentGroup24;
    }

    public SegmentGroup21 setSegmentGroup24(List segmentGroup24) {
        this.segmentGroup24 = segmentGroup24;  return this;
    }

    public SegmentGroup25 getSegmentGroup25() {
        return segmentGroup25;
    }

    public SegmentGroup21 setSegmentGroup25(SegmentGroup25 segmentGroup25) {
        this.segmentGroup25 = segmentGroup25;  return this;
    }

    public List getSegmentGroup26() {
        return segmentGroup26;
    }

    public SegmentGroup21 setSegmentGroup26(List segmentGroup26) {
        this.segmentGroup26 = segmentGroup26;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy