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

org.milyn.edi.unedifact.d95b.REQOTE.SegmentGroup45 Maven / Gradle / Ivy

The newest version!
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d95b.REQOTE;

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

public class SegmentGroup45 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private ALCAllowanceOrCharge aLCAllowanceOrCharge;
    private List aLIAdditionalInformation;
    private SegmentGroup46 segmentGroup46;
    private SegmentGroup47 segmentGroup47;
    private List segmentGroup48;
    private SegmentGroup49 segmentGroup49;
    private List segmentGroup50;

    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(segmentGroup46 != null) {
            segmentGroup46.write(nodeWriter, delimiters);
        }
        if(segmentGroup47 != null) {
            segmentGroup47.write(nodeWriter, delimiters);
        }
        if(segmentGroup48 != null && !segmentGroup48.isEmpty()) {
            for(SegmentGroup48 segmentGroup48Inst : segmentGroup48) {
                segmentGroup48Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup49 != null) {
            segmentGroup49.write(nodeWriter, delimiters);
        }
        if(segmentGroup50 != null && !segmentGroup50.isEmpty()) {
            for(SegmentGroup50 segmentGroup50Inst : segmentGroup50) {
                segmentGroup50Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public ALCAllowanceOrCharge getALCAllowanceOrCharge() {
        return aLCAllowanceOrCharge;
    }

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

    public List getALIAdditionalInformation() {
        return aLIAdditionalInformation;
    }

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

    public SegmentGroup46 getSegmentGroup46() {
        return segmentGroup46;
    }

    public SegmentGroup45 setSegmentGroup46(SegmentGroup46 segmentGroup46) {
        this.segmentGroup46 = segmentGroup46;  return this;
    }

    public SegmentGroup47 getSegmentGroup47() {
        return segmentGroup47;
    }

    public SegmentGroup45 setSegmentGroup47(SegmentGroup47 segmentGroup47) {
        this.segmentGroup47 = segmentGroup47;  return this;
    }

    public List getSegmentGroup48() {
        return segmentGroup48;
    }

    public SegmentGroup45 setSegmentGroup48(List segmentGroup48) {
        this.segmentGroup48 = segmentGroup48;  return this;
    }

    public SegmentGroup49 getSegmentGroup49() {
        return segmentGroup49;
    }

    public SegmentGroup45 setSegmentGroup49(SegmentGroup49 segmentGroup49) {
        this.segmentGroup49 = segmentGroup49;  return this;
    }

    public List getSegmentGroup50() {
        return segmentGroup50;
    }

    public SegmentGroup45 setSegmentGroup50(List segmentGroup50) {
        this.segmentGroup50 = segmentGroup50;  return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy