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

org.milyn.edi.unedifact.d09b.HANMOV.SegmentGroup20 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.HANMOV;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d09b.common.GIDGoodsItemDetails;    
import java.util.List;    
import org.milyn.edi.unedifact.d09b.common.HANHandlingInstructions;    
import org.milyn.edi.unedifact.d09b.common.CSTCustomsStatusOfGoods;    
import org.milyn.edi.unedifact.d09b.common.TMPTemperature;    
import org.milyn.edi.unedifact.d09b.common.RNGRangeDetails;    
import org.milyn.edi.unedifact.d09b.common.LOCPlaceLocationIdentification;    
import org.milyn.edi.unedifact.d09b.common.MOAMonetaryAmount;    
import org.milyn.edi.unedifact.d09b.common.PIAAdditionalProductId;    
import org.milyn.edi.unedifact.d09b.common.FTXFreeText;    
import org.milyn.edi.unedifact.d09b.common.NADNameAndAddress;    
import org.milyn.edi.unedifact.d09b.common.MEAMeasurements;    
import org.milyn.edi.unedifact.d09b.common.DIMDimensions;    
import org.milyn.edi.unedifact.d09b.common.RFFReference;    
import org.milyn.edi.unedifact.d09b.common.PCIPackageIdentification;    
import org.milyn.edi.unedifact.d09b.common.SGPSplitGoodsPlacement;    
import org.milyn.edi.unedifact.d09b.common.TCCChargeRateCalculations;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup20 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private GIDGoodsItemDetails gIDGoodsItemDetails;
    private List hANHandlingInstructions;
    private List cSTCustomsStatusOfGoods;
    private List tMPTemperature;
    private List rNGRangeDetails;
    private List lOCPlaceLocationIdentification;
    private List mOAMonetaryAmount;
    private List pIAAdditionalProductId;
    private List fTXFreeText;
    private List nADNameAndAddress;
    private List mEAMeasurements;
    private List dIMDimensions;
    private List rFFReference;
    private List pCIPackageIdentification;
    private List segmentGroup21;
    private List sGPSplitGoodsPlacement;
    private List tCCChargeRateCalculations;
    private List segmentGroup22;

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

        if(gIDGoodsItemDetails != null) {
            nodeWriter.write("GID");
            nodeWriter.write(delimiters.getField());
            gIDGoodsItemDetails.write(nodeWriter, delimiters);
        }
        if(hANHandlingInstructions != null && !hANHandlingInstructions.isEmpty()) {
            for(HANHandlingInstructions hANHandlingInstructionsInst : hANHandlingInstructions) {
                nodeWriter.write("HAN");
                nodeWriter.write(delimiters.getField());
                hANHandlingInstructionsInst.write(nodeWriter, delimiters);
            }
        }
        if(cSTCustomsStatusOfGoods != null && !cSTCustomsStatusOfGoods.isEmpty()) {
            for(CSTCustomsStatusOfGoods cSTCustomsStatusOfGoodsInst : cSTCustomsStatusOfGoods) {
                nodeWriter.write("CST");
                nodeWriter.write(delimiters.getField());
                cSTCustomsStatusOfGoodsInst.write(nodeWriter, delimiters);
            }
        }
        if(tMPTemperature != null && !tMPTemperature.isEmpty()) {
            for(TMPTemperature tMPTemperatureInst : tMPTemperature) {
                nodeWriter.write("TMP");
                nodeWriter.write(delimiters.getField());
                tMPTemperatureInst.write(nodeWriter, delimiters);
            }
        }
        if(rNGRangeDetails != null && !rNGRangeDetails.isEmpty()) {
            for(RNGRangeDetails rNGRangeDetailsInst : rNGRangeDetails) {
                nodeWriter.write("RNG");
                nodeWriter.write(delimiters.getField());
                rNGRangeDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(lOCPlaceLocationIdentification != null && !lOCPlaceLocationIdentification.isEmpty()) {
            for(LOCPlaceLocationIdentification lOCPlaceLocationIdentificationInst : lOCPlaceLocationIdentification) {
                nodeWriter.write("LOC");
                nodeWriter.write(delimiters.getField());
                lOCPlaceLocationIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
            for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                mOAMonetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(pIAAdditionalProductId != null && !pIAAdditionalProductId.isEmpty()) {
            for(PIAAdditionalProductId pIAAdditionalProductIdInst : pIAAdditionalProductId) {
                nodeWriter.write("PIA");
                nodeWriter.write(delimiters.getField());
                pIAAdditionalProductIdInst.write(nodeWriter, delimiters);
            }
        }
        if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
            for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                fTXFreeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(nADNameAndAddress != null && !nADNameAndAddress.isEmpty()) {
            for(NADNameAndAddress nADNameAndAddressInst : nADNameAndAddress) {
                nodeWriter.write("NAD");
                nodeWriter.write(delimiters.getField());
                nADNameAndAddressInst.write(nodeWriter, delimiters);
            }
        }
        if(mEAMeasurements != null && !mEAMeasurements.isEmpty()) {
            for(MEAMeasurements mEAMeasurementsInst : mEAMeasurements) {
                nodeWriter.write("MEA");
                nodeWriter.write(delimiters.getField());
                mEAMeasurementsInst.write(nodeWriter, delimiters);
            }
        }
        if(dIMDimensions != null && !dIMDimensions.isEmpty()) {
            for(DIMDimensions dIMDimensionsInst : dIMDimensions) {
                nodeWriter.write("DIM");
                nodeWriter.write(delimiters.getField());
                dIMDimensionsInst.write(nodeWriter, delimiters);
            }
        }
        if(rFFReference != null && !rFFReference.isEmpty()) {
            for(RFFReference rFFReferenceInst : rFFReference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                rFFReferenceInst.write(nodeWriter, delimiters);
            }
        }
        if(pCIPackageIdentification != null && !pCIPackageIdentification.isEmpty()) {
            for(PCIPackageIdentification pCIPackageIdentificationInst : pCIPackageIdentification) {
                nodeWriter.write("PCI");
                nodeWriter.write(delimiters.getField());
                pCIPackageIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup21 != null && !segmentGroup21.isEmpty()) {
            for(SegmentGroup21 segmentGroup21Inst : segmentGroup21) {
                segmentGroup21Inst.write(nodeWriter, delimiters);
            }
        }
        if(sGPSplitGoodsPlacement != null && !sGPSplitGoodsPlacement.isEmpty()) {
            for(SGPSplitGoodsPlacement sGPSplitGoodsPlacementInst : sGPSplitGoodsPlacement) {
                nodeWriter.write("SGP");
                nodeWriter.write(delimiters.getField());
                sGPSplitGoodsPlacementInst.write(nodeWriter, delimiters);
            }
        }
        if(tCCChargeRateCalculations != null && !tCCChargeRateCalculations.isEmpty()) {
            for(TCCChargeRateCalculations tCCChargeRateCalculationsInst : tCCChargeRateCalculations) {
                nodeWriter.write("TCC");
                nodeWriter.write(delimiters.getField());
                tCCChargeRateCalculationsInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup22 != null && !segmentGroup22.isEmpty()) {
            for(SegmentGroup22 segmentGroup22Inst : segmentGroup22) {
                segmentGroup22Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public GIDGoodsItemDetails getGIDGoodsItemDetails() {
        return gIDGoodsItemDetails;
    }

    public SegmentGroup20 setGIDGoodsItemDetails(GIDGoodsItemDetails gIDGoodsItemDetails) {
        this.gIDGoodsItemDetails = gIDGoodsItemDetails;  return this;
    }

    public List getHANHandlingInstructions() {
        return hANHandlingInstructions;
    }

    public SegmentGroup20 setHANHandlingInstructions(List hANHandlingInstructions) {
        this.hANHandlingInstructions = hANHandlingInstructions;  return this;
    }

    public List getCSTCustomsStatusOfGoods() {
        return cSTCustomsStatusOfGoods;
    }

    public SegmentGroup20 setCSTCustomsStatusOfGoods(List cSTCustomsStatusOfGoods) {
        this.cSTCustomsStatusOfGoods = cSTCustomsStatusOfGoods;  return this;
    }

    public List getTMPTemperature() {
        return tMPTemperature;
    }

    public SegmentGroup20 setTMPTemperature(List tMPTemperature) {
        this.tMPTemperature = tMPTemperature;  return this;
    }

    public List getRNGRangeDetails() {
        return rNGRangeDetails;
    }

    public SegmentGroup20 setRNGRangeDetails(List rNGRangeDetails) {
        this.rNGRangeDetails = rNGRangeDetails;  return this;
    }

    public List getLOCPlaceLocationIdentification() {
        return lOCPlaceLocationIdentification;
    }

    public SegmentGroup20 setLOCPlaceLocationIdentification(List lOCPlaceLocationIdentification) {
        this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification;  return this;
    }

    public List getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

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

    public List getPIAAdditionalProductId() {
        return pIAAdditionalProductId;
    }

    public SegmentGroup20 setPIAAdditionalProductId(List pIAAdditionalProductId) {
        this.pIAAdditionalProductId = pIAAdditionalProductId;  return this;
    }

    public List getFTXFreeText() {
        return fTXFreeText;
    }

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

    public List getNADNameAndAddress() {
        return nADNameAndAddress;
    }

    public SegmentGroup20 setNADNameAndAddress(List nADNameAndAddress) {
        this.nADNameAndAddress = nADNameAndAddress;  return this;
    }

    public List getMEAMeasurements() {
        return mEAMeasurements;
    }

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

    public List getDIMDimensions() {
        return dIMDimensions;
    }

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

    public List getRFFReference() {
        return rFFReference;
    }

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

    public List getPCIPackageIdentification() {
        return pCIPackageIdentification;
    }

    public SegmentGroup20 setPCIPackageIdentification(List pCIPackageIdentification) {
        this.pCIPackageIdentification = pCIPackageIdentification;  return this;
    }

    public List getSegmentGroup21() {
        return segmentGroup21;
    }

    public SegmentGroup20 setSegmentGroup21(List segmentGroup21) {
        this.segmentGroup21 = segmentGroup21;  return this;
    }

    public List getSGPSplitGoodsPlacement() {
        return sGPSplitGoodsPlacement;
    }

    public SegmentGroup20 setSGPSplitGoodsPlacement(List sGPSplitGoodsPlacement) {
        this.sGPSplitGoodsPlacement = sGPSplitGoodsPlacement;  return this;
    }

    public List getTCCChargeRateCalculations() {
        return tCCChargeRateCalculations;
    }

    public SegmentGroup20 setTCCChargeRateCalculations(List tCCChargeRateCalculations) {
        this.tCCChargeRateCalculations = tCCChargeRateCalculations;  return this;
    }

    public List getSegmentGroup22() {
        return segmentGroup22;
    }

    public SegmentGroup20 setSegmentGroup22(List segmentGroup22) {
        this.segmentGroup22 = segmentGroup22;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy