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

org.milyn.edi.unedifact.d05a.ICSOLI.Icsoli 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.ICSOLI;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.smooks.edi.EDIMessage;    
import org.milyn.edi.unedifact.d05a.common.BGMBeginningOfMessage;    
import java.util.List;    
import org.milyn.edi.unedifact.d05a.common.RFFReference;    
import org.milyn.edi.unedifact.d05a.common.SEQSequenceDetails;    
import org.milyn.edi.unedifact.d05a.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d05a.common.EFIExternalFileLinkIdentification;    
import org.milyn.edi.unedifact.d05a.common.Uns;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

@EDIMessage    
public class Icsoli implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private BGMBeginningOfMessage bGMBeginningOfMessage;
    private List rFFReference;
    private SEQSequenceDetails sEQSequenceDetails;
    private List dTMDateTimePeriod;
    private List eFIExternalFileLinkIdentification;
    private SegmentGroup1 segmentGroup1;
    private List segmentGroup2;
    private Uns uNSSectionControl;
    private List segmentGroup6;
    private List segmentGroup8;
    private List segmentGroup9;

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

        if(bGMBeginningOfMessage != null) {
            nodeWriter.write("BGM");
            nodeWriter.write(delimiters.getField());
            bGMBeginningOfMessage.write(nodeWriter, delimiters);
        }
        if(rFFReference != null && !rFFReference.isEmpty()) {
            for(RFFReference rFFReferenceInst : rFFReference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                rFFReferenceInst.write(nodeWriter, delimiters);
            }
        }
        if(sEQSequenceDetails != null) {
            nodeWriter.write("SEQ");
            nodeWriter.write(delimiters.getField());
            sEQSequenceDetails.write(nodeWriter, delimiters);
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(eFIExternalFileLinkIdentification != null && !eFIExternalFileLinkIdentification.isEmpty()) {
            for(EFIExternalFileLinkIdentification eFIExternalFileLinkIdentificationInst : eFIExternalFileLinkIdentification) {
                nodeWriter.write("EFI");
                nodeWriter.write(delimiters.getField());
                eFIExternalFileLinkIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup1 != null) {
            segmentGroup1.write(nodeWriter, delimiters);
        }
        if(segmentGroup2 != null && !segmentGroup2.isEmpty()) {
            for(SegmentGroup2 segmentGroup2Inst : segmentGroup2) {
                segmentGroup2Inst.write(nodeWriter, delimiters);
            }
        }
        if(uNSSectionControl != null) {
            nodeWriter.write("UNS");
            nodeWriter.write(delimiters.getField());
            uNSSectionControl.write(nodeWriter, delimiters);
        }
        if(segmentGroup6 != null && !segmentGroup6.isEmpty()) {
            for(SegmentGroup6 segmentGroup6Inst : segmentGroup6) {
                segmentGroup6Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
            for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
                segmentGroup8Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup9 != null && !segmentGroup9.isEmpty()) {
            for(SegmentGroup9 segmentGroup9Inst : segmentGroup9) {
                segmentGroup9Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public BGMBeginningOfMessage getBGMBeginningOfMessage() {
        return bGMBeginningOfMessage;
    }

    public Icsoli setBGMBeginningOfMessage(BGMBeginningOfMessage bGMBeginningOfMessage) {
        this.bGMBeginningOfMessage = bGMBeginningOfMessage;  return this;
    }

    public List getRFFReference() {
        return rFFReference;
    }

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

    public SEQSequenceDetails getSEQSequenceDetails() {
        return sEQSequenceDetails;
    }

    public Icsoli setSEQSequenceDetails(SEQSequenceDetails sEQSequenceDetails) {
        this.sEQSequenceDetails = sEQSequenceDetails;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public List getEFIExternalFileLinkIdentification() {
        return eFIExternalFileLinkIdentification;
    }

    public Icsoli setEFIExternalFileLinkIdentification(List eFIExternalFileLinkIdentification) {
        this.eFIExternalFileLinkIdentification = eFIExternalFileLinkIdentification;  return this;
    }

    public SegmentGroup1 getSegmentGroup1() {
        return segmentGroup1;
    }

    public Icsoli setSegmentGroup1(SegmentGroup1 segmentGroup1) {
        this.segmentGroup1 = segmentGroup1;  return this;
    }

    public List getSegmentGroup2() {
        return segmentGroup2;
    }

    public Icsoli setSegmentGroup2(List segmentGroup2) {
        this.segmentGroup2 = segmentGroup2;  return this;
    }

    public Uns getUNSSectionControl() {
        return uNSSectionControl;
    }

    public Icsoli setUNSSectionControl(Uns uNSSectionControl) {
        this.uNSSectionControl = uNSSectionControl;  return this;
    }

    public List getSegmentGroup6() {
        return segmentGroup6;
    }

    public Icsoli setSegmentGroup6(List segmentGroup6) {
        this.segmentGroup6 = segmentGroup6;  return this;
    }

    public List getSegmentGroup8() {
        return segmentGroup8;
    }

    public Icsoli setSegmentGroup8(List segmentGroup8) {
        this.segmentGroup8 = segmentGroup8;  return this;
    }

    public List getSegmentGroup9() {
        return segmentGroup9;
    }

    public Icsoli setSegmentGroup9(List segmentGroup9) {
        this.segmentGroup9 = segmentGroup9;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy