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

org.milyn.edi.unedifact.d15a.GOVCBR.SegmentGroup34 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.d15a.GOVCBR;

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

public class SegmentGroup34 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 gDSNatureOfCargo;
    private STSStatus sTSStatus;
    private GPOGeographicalPosition gPOGeographicalPosition;
    private List segmentGroup35;
    private List segmentGroup36;
    private List segmentGroup38;
    private List segmentGroup43;
    private List segmentGroup49;

    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(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(segmentGroup35 != null && !segmentGroup35.isEmpty()) {
            for(SegmentGroup35 segmentGroup35Inst : segmentGroup35) {
                segmentGroup35Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup36 != null && !segmentGroup36.isEmpty()) {
            for(SegmentGroup36 segmentGroup36Inst : segmentGroup36) {
                segmentGroup36Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup38 != null && !segmentGroup38.isEmpty()) {
            for(SegmentGroup38 segmentGroup38Inst : segmentGroup38) {
                segmentGroup38Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup43 != null && !segmentGroup43.isEmpty()) {
            for(SegmentGroup43 segmentGroup43Inst : segmentGroup43) {
                segmentGroup43Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup49 != null && !segmentGroup49.isEmpty()) {
            for(SegmentGroup49 segmentGroup49Inst : segmentGroup49) {
                segmentGroup49Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public TDTTransportInformation getTDTTransportInformation() {
        return tDTTransportInformation;
    }

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

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public List getRFFReference() {
        return rFFReference;
    }

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

    public List getQTYQuantity() {
        return qTYQuantity;
    }

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

    public List getMEAMeasurements() {
        return mEAMeasurements;
    }

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

    public List getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

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

    public List getPOCPurposeOfConveyanceCall() {
        return pOCPurposeOfConveyanceCall;
    }

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

    public List getDIMDimensions() {
        return dIMDimensions;
    }

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

    public List getGDSNatureOfCargo() {
        return gDSNatureOfCargo;
    }

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

    public STSStatus getSTSStatus() {
        return sTSStatus;
    }

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

    public GPOGeographicalPosition getGPOGeographicalPosition() {
        return gPOGeographicalPosition;
    }

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

    public List getSegmentGroup35() {
        return segmentGroup35;
    }

    public SegmentGroup34 setSegmentGroup35(List segmentGroup35) {
        this.segmentGroup35 = segmentGroup35;  return this;
    }

    public List getSegmentGroup36() {
        return segmentGroup36;
    }

    public SegmentGroup34 setSegmentGroup36(List segmentGroup36) {
        this.segmentGroup36 = segmentGroup36;  return this;
    }

    public List getSegmentGroup38() {
        return segmentGroup38;
    }

    public SegmentGroup34 setSegmentGroup38(List segmentGroup38) {
        this.segmentGroup38 = segmentGroup38;  return this;
    }

    public List getSegmentGroup43() {
        return segmentGroup43;
    }

    public SegmentGroup34 setSegmentGroup43(List segmentGroup43) {
        this.segmentGroup43 = segmentGroup43;  return this;
    }

    public List getSegmentGroup49() {
        return segmentGroup49;
    }

    public SegmentGroup34 setSegmentGroup49(List segmentGroup49) {
        this.segmentGroup49 = segmentGroup49;  return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy