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

org.milyn.edi.unedifact.d09b.GOVCBR.SegmentGroup32 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.d09b.GOVCBR;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d09b.common.TDTTransportInformation;    
import java.util.List;    
import org.milyn.edi.unedifact.d09b.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d09b.common.RFFReference;    
import org.milyn.edi.unedifact.d09b.common.QTYQuantity;    
import org.milyn.edi.unedifact.d09b.common.MEAMeasurements;    
import org.milyn.edi.unedifact.d09b.common.MOAMonetaryAmount;    
import org.milyn.edi.unedifact.d09b.common.POCPurposeOfConveyanceCall;    
import org.milyn.edi.unedifact.d09b.common.DIMDimensions;    
import org.milyn.edi.unedifact.d09b.common.FTXFreeText;    
import org.milyn.edi.unedifact.d09b.common.GDSNatureOfCargo;    
import org.milyn.edi.unedifact.d09b.common.STSStatus;    
import org.milyn.edi.unedifact.d09b.common.GPOGeographicalPosition;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup32 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private TDTTransportInformation tDTTransportInformation;
    private List dTMDateTimePeriod;
    private List rFFReference;
    private List qTYQuantity;
    private List mEAMeasurements;
    private List mOAMonetaryAmount;
    private List pOCPurposeOfConveyanceCall;
    private List dIMDimensions;
    private List fTXFreeText;
    private List gDSNatureOfCargo;
    private STSStatus sTSStatus;
    private GPOGeographicalPosition gPOGeographicalPosition;
    private List segmentGroup33;
    private List segmentGroup34;
    private List segmentGroup37;

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

        if(tDTTransportInformation != null) {
            nodeWriter.write("TDT");
            nodeWriter.write(delimiters.getField());
            tDTTransportInformation.write(nodeWriter, delimiters);
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(rFFReference != null && !rFFReference.isEmpty()) {
            for(RFFReference rFFReferenceInst : rFFReference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                rFFReferenceInst.write(nodeWriter, delimiters);
            }
        }
        if(qTYQuantity != null && !qTYQuantity.isEmpty()) {
            for(QTYQuantity qTYQuantityInst : qTYQuantity) {
                nodeWriter.write("QTY");
                nodeWriter.write(delimiters.getField());
                qTYQuantityInst.write(nodeWriter, delimiters);
            }
        }
        if(mEAMeasurements != null && !mEAMeasurements.isEmpty()) {
            for(MEAMeasurements mEAMeasurementsInst : mEAMeasurements) {
                nodeWriter.write("MEA");
                nodeWriter.write(delimiters.getField());
                mEAMeasurementsInst.write(nodeWriter, delimiters);
            }
        }
        if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
            for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                mOAMonetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(pOCPurposeOfConveyanceCall != null && !pOCPurposeOfConveyanceCall.isEmpty()) {
            for(POCPurposeOfConveyanceCall pOCPurposeOfConveyanceCallInst : pOCPurposeOfConveyanceCall) {
                nodeWriter.write("POC");
                nodeWriter.write(delimiters.getField());
                pOCPurposeOfConveyanceCallInst.write(nodeWriter, delimiters);
            }
        }
        if(dIMDimensions != null && !dIMDimensions.isEmpty()) {
            for(DIMDimensions dIMDimensionsInst : dIMDimensions) {
                nodeWriter.write("DIM");
                nodeWriter.write(delimiters.getField());
                dIMDimensionsInst.write(nodeWriter, delimiters);
            }
        }
        if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
            for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                fTXFreeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(gDSNatureOfCargo != null && !gDSNatureOfCargo.isEmpty()) {
            for(GDSNatureOfCargo gDSNatureOfCargoInst : gDSNatureOfCargo) {
                nodeWriter.write("GDS");
                nodeWriter.write(delimiters.getField());
                gDSNatureOfCargoInst.write(nodeWriter, delimiters);
            }
        }
        if(sTSStatus != null) {
            nodeWriter.write("STS");
            nodeWriter.write(delimiters.getField());
            sTSStatus.write(nodeWriter, delimiters);
        }
        if(gPOGeographicalPosition != null) {
            nodeWriter.write("GPO");
            nodeWriter.write(delimiters.getField());
            gPOGeographicalPosition.write(nodeWriter, delimiters);
        }
        if(segmentGroup33 != null && !segmentGroup33.isEmpty()) {
            for(SegmentGroup33 segmentGroup33Inst : segmentGroup33) {
                segmentGroup33Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup34 != null && !segmentGroup34.isEmpty()) {
            for(SegmentGroup34 segmentGroup34Inst : segmentGroup34) {
                segmentGroup34Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup37 != null && !segmentGroup37.isEmpty()) {
            for(SegmentGroup37 segmentGroup37Inst : segmentGroup37) {
                segmentGroup37Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public TDTTransportInformation getTDTTransportInformation() {
        return tDTTransportInformation;
    }

    public SegmentGroup32 setTDTTransportInformation(TDTTransportInformation tDTTransportInformation) {
        this.tDTTransportInformation = tDTTransportInformation;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public List getRFFReference() {
        return rFFReference;
    }

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

    public List getQTYQuantity() {
        return qTYQuantity;
    }

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

    public List getMEAMeasurements() {
        return mEAMeasurements;
    }

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

    public List getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

    public SegmentGroup32 setMOAMonetaryAmount(List mOAMonetaryAmount) {
        this.mOAMonetaryAmount = mOAMonetaryAmount;  return this;
    }

    public List getPOCPurposeOfConveyanceCall() {
        return pOCPurposeOfConveyanceCall;
    }

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

    public List getDIMDimensions() {
        return dIMDimensions;
    }

    public SegmentGroup32 setDIMDimensions(List dIMDimensions) {
        this.dIMDimensions = dIMDimensions;  return this;
    }

    public List getFTXFreeText() {
        return fTXFreeText;
    }

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

    public List getGDSNatureOfCargo() {
        return gDSNatureOfCargo;
    }

    public SegmentGroup32 setGDSNatureOfCargo(List gDSNatureOfCargo) {
        this.gDSNatureOfCargo = gDSNatureOfCargo;  return this;
    }

    public STSStatus getSTSStatus() {
        return sTSStatus;
    }

    public SegmentGroup32 setSTSStatus(STSStatus sTSStatus) {
        this.sTSStatus = sTSStatus;  return this;
    }

    public GPOGeographicalPosition getGPOGeographicalPosition() {
        return gPOGeographicalPosition;
    }

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

    public List getSegmentGroup33() {
        return segmentGroup33;
    }

    public SegmentGroup32 setSegmentGroup33(List segmentGroup33) {
        this.segmentGroup33 = segmentGroup33;  return this;
    }

    public List getSegmentGroup34() {
        return segmentGroup34;
    }

    public SegmentGroup32 setSegmentGroup34(List segmentGroup34) {
        this.segmentGroup34 = segmentGroup34;  return this;
    }

    public List getSegmentGroup37() {
        return segmentGroup37;
    }

    public SegmentGroup32 setSegmentGroup37(List segmentGroup37) {
        this.segmentGroup37 = segmentGroup37;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy