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

org.milyn.edi.unedifact.d11b.CUSREP.Cusrep 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.d11b.CUSREP;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.smooks.edi.EDIMessage;    
import org.milyn.edi.unedifact.d11b.common.BGMBeginningOfMessage;    
import java.util.List;    
import org.milyn.edi.unedifact.d11b.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d11b.common.QTYQuantity;    
import org.milyn.edi.unedifact.d11b.common.POCPurposeOfConveyanceCall;    
import org.milyn.edi.unedifact.d11b.common.FTXFreeText;    
import org.milyn.edi.unedifact.d11b.common.MEAMeasurements;    
import org.milyn.edi.unedifact.d11b.common.GEIProcessingInformation;    
import org.milyn.edi.unedifact.d11b.common.GPOGeographicalPosition;    
import org.milyn.edi.unedifact.d11b.common.STSStatus;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

@EDIMessage    
public class Cusrep implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private BGMBeginningOfMessage bGMBeginningOfMessage;
    private List dTMDateTimePeriod;
    private List qTYQuantity;
    private List pOCPurposeOfConveyanceCall;
    private List fTXFreeText;
    private List mEAMeasurements;
    private List gEIProcessingInformation;
    private GPOGeographicalPosition gPOGeographicalPosition;
    private List sTSStatus;
    private List segmentGroup1;
    private List segmentGroup2;
    private List segmentGroup3;
    private List segmentGroup4;
    private List segmentGroup5;
    private List segmentGroup6;
    private List segmentGroup9;
    private List segmentGroup11;
    private SegmentGroup12 segmentGroup12;

    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(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(qTYQuantity != null && !qTYQuantity.isEmpty()) {
            for(QTYQuantity qTYQuantityInst : qTYQuantity) {
                nodeWriter.write("QTY");
                nodeWriter.write(delimiters.getField());
                qTYQuantityInst.write(nodeWriter, delimiters);
            }
        }
        if(pOCPurposeOfConveyanceCall != null && !pOCPurposeOfConveyanceCall.isEmpty()) {
            for(POCPurposeOfConveyanceCall pOCPurposeOfConveyanceCallInst : pOCPurposeOfConveyanceCall) {
                nodeWriter.write("POC");
                nodeWriter.write(delimiters.getField());
                pOCPurposeOfConveyanceCallInst.write(nodeWriter, delimiters);
            }
        }
        if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
            for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                fTXFreeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(mEAMeasurements != null && !mEAMeasurements.isEmpty()) {
            for(MEAMeasurements mEAMeasurementsInst : mEAMeasurements) {
                nodeWriter.write("MEA");
                nodeWriter.write(delimiters.getField());
                mEAMeasurementsInst.write(nodeWriter, delimiters);
            }
        }
        if(gEIProcessingInformation != null && !gEIProcessingInformation.isEmpty()) {
            for(GEIProcessingInformation gEIProcessingInformationInst : gEIProcessingInformation) {
                nodeWriter.write("GEI");
                nodeWriter.write(delimiters.getField());
                gEIProcessingInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(gPOGeographicalPosition != null) {
            nodeWriter.write("GPO");
            nodeWriter.write(delimiters.getField());
            gPOGeographicalPosition.write(nodeWriter, delimiters);
        }
        if(sTSStatus != null && !sTSStatus.isEmpty()) {
            for(STSStatus sTSStatusInst : sTSStatus) {
                nodeWriter.write("STS");
                nodeWriter.write(delimiters.getField());
                sTSStatusInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup1 != null && !segmentGroup1.isEmpty()) {
            for(SegmentGroup1 segmentGroup1Inst : segmentGroup1) {
                segmentGroup1Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup2 != null && !segmentGroup2.isEmpty()) {
            for(SegmentGroup2 segmentGroup2Inst : segmentGroup2) {
                segmentGroup2Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup3 != null && !segmentGroup3.isEmpty()) {
            for(SegmentGroup3 segmentGroup3Inst : segmentGroup3) {
                segmentGroup3Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup4 != null && !segmentGroup4.isEmpty()) {
            for(SegmentGroup4 segmentGroup4Inst : segmentGroup4) {
                segmentGroup4Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup5 != null && !segmentGroup5.isEmpty()) {
            for(SegmentGroup5 segmentGroup5Inst : segmentGroup5) {
                segmentGroup5Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup6 != null && !segmentGroup6.isEmpty()) {
            for(SegmentGroup6 segmentGroup6Inst : segmentGroup6) {
                segmentGroup6Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup9 != null && !segmentGroup9.isEmpty()) {
            for(SegmentGroup9 segmentGroup9Inst : segmentGroup9) {
                segmentGroup9Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup11 != null && !segmentGroup11.isEmpty()) {
            for(SegmentGroup11 segmentGroup11Inst : segmentGroup11) {
                segmentGroup11Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup12 != null) {
            segmentGroup12.write(nodeWriter, delimiters);
        }
    }

    public BGMBeginningOfMessage getBGMBeginningOfMessage() {
        return bGMBeginningOfMessage;
    }

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

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public List getQTYQuantity() {
        return qTYQuantity;
    }

    public Cusrep setQTYQuantity(List qTYQuantity) {
        this.qTYQuantity = qTYQuantity;  return this;
    }

    public List getPOCPurposeOfConveyanceCall() {
        return pOCPurposeOfConveyanceCall;
    }

    public Cusrep setPOCPurposeOfConveyanceCall(List pOCPurposeOfConveyanceCall) {
        this.pOCPurposeOfConveyanceCall = pOCPurposeOfConveyanceCall;  return this;
    }

    public List getFTXFreeText() {
        return fTXFreeText;
    }

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

    public List getMEAMeasurements() {
        return mEAMeasurements;
    }

    public Cusrep setMEAMeasurements(List mEAMeasurements) {
        this.mEAMeasurements = mEAMeasurements;  return this;
    }

    public List getGEIProcessingInformation() {
        return gEIProcessingInformation;
    }

    public Cusrep setGEIProcessingInformation(List gEIProcessingInformation) {
        this.gEIProcessingInformation = gEIProcessingInformation;  return this;
    }

    public GPOGeographicalPosition getGPOGeographicalPosition() {
        return gPOGeographicalPosition;
    }

    public Cusrep setGPOGeographicalPosition(GPOGeographicalPosition gPOGeographicalPosition) {
        this.gPOGeographicalPosition = gPOGeographicalPosition;  return this;
    }

    public List getSTSStatus() {
        return sTSStatus;
    }

    public Cusrep setSTSStatus(List sTSStatus) {
        this.sTSStatus = sTSStatus;  return this;
    }

    public List getSegmentGroup1() {
        return segmentGroup1;
    }

    public Cusrep setSegmentGroup1(List segmentGroup1) {
        this.segmentGroup1 = segmentGroup1;  return this;
    }

    public List getSegmentGroup2() {
        return segmentGroup2;
    }

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

    public List getSegmentGroup3() {
        return segmentGroup3;
    }

    public Cusrep setSegmentGroup3(List segmentGroup3) {
        this.segmentGroup3 = segmentGroup3;  return this;
    }

    public List getSegmentGroup4() {
        return segmentGroup4;
    }

    public Cusrep setSegmentGroup4(List segmentGroup4) {
        this.segmentGroup4 = segmentGroup4;  return this;
    }

    public List getSegmentGroup5() {
        return segmentGroup5;
    }

    public Cusrep setSegmentGroup5(List segmentGroup5) {
        this.segmentGroup5 = segmentGroup5;  return this;
    }

    public List getSegmentGroup6() {
        return segmentGroup6;
    }

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

    public List getSegmentGroup9() {
        return segmentGroup9;
    }

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

    public List getSegmentGroup11() {
        return segmentGroup11;
    }

    public Cusrep setSegmentGroup11(List segmentGroup11) {
        this.segmentGroup11 = segmentGroup11;  return this;
    }

    public SegmentGroup12 getSegmentGroup12() {
        return segmentGroup12;
    }

    public Cusrep setSegmentGroup12(SegmentGroup12 segmentGroup12) {
        this.segmentGroup12 = segmentGroup12;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy