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

org.milyn.edi.unedifact.d97a.CUSCAR.SegmentGroup14 Maven / Gradle / Ivy

The newest version!
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d97a.CUSCAR;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d97a.common.GIDGoodsItemDetails;    
import java.util.List;    
import org.milyn.edi.unedifact.d97a.common.PACPackage;    
import org.milyn.edi.unedifact.d97a.common.HANHandlingInstructions;    
import org.milyn.edi.unedifact.d97a.common.FTXFreeText;    
import org.milyn.edi.unedifact.d97a.common.MEAMeasurements;    
import org.milyn.edi.unedifact.d97a.common.MOAMonetaryAmount;    
import org.milyn.edi.unedifact.d97a.common.SGPSplitGoodsPlacement;    
import org.milyn.edi.unedifact.d97a.common.DGSDangerousGoods;    
import org.milyn.edi.unedifact.d97a.common.PCIPackageIdentification;    
import org.milyn.edi.unedifact.d97a.common.CSTCustomsStatusOfGoods;    
import org.milyn.edi.unedifact.d97a.common.TMDTransportMovementDetails;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup14 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private GIDGoodsItemDetails gIDGoodsItemDetails;
    private List pACPackage;
    private List hANHandlingInstructions;
    private List fTXFreeText;
    private List mEAMeasurements;
    private List mOAMonetaryAmount;
    private List sGPSplitGoodsPlacement;
    private List dGSDangerousGoods;
    private List pCIPackageIdentification;
    private CSTCustomsStatusOfGoods cSTCustomsStatusOfGoods;
    private List tMDTransportMovementDetails;
    private List segmentGroup15;
    private List segmentGroup16;

    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(pACPackage != null && !pACPackage.isEmpty()) {
            for(PACPackage pACPackageInst : pACPackage) {
                nodeWriter.write("PAC");
                nodeWriter.write(delimiters.getField());
                pACPackageInst.write(nodeWriter, delimiters);
            }
        }
        if(hANHandlingInstructions != null && !hANHandlingInstructions.isEmpty()) {
            for(HANHandlingInstructions hANHandlingInstructionsInst : hANHandlingInstructions) {
                nodeWriter.write("HAN");
                nodeWriter.write(delimiters.getField());
                hANHandlingInstructionsInst.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(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
            for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                mOAMonetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(sGPSplitGoodsPlacement != null && !sGPSplitGoodsPlacement.isEmpty()) {
            for(SGPSplitGoodsPlacement sGPSplitGoodsPlacementInst : sGPSplitGoodsPlacement) {
                nodeWriter.write("SGP");
                nodeWriter.write(delimiters.getField());
                sGPSplitGoodsPlacementInst.write(nodeWriter, delimiters);
            }
        }
        if(dGSDangerousGoods != null && !dGSDangerousGoods.isEmpty()) {
            for(DGSDangerousGoods dGSDangerousGoodsInst : dGSDangerousGoods) {
                nodeWriter.write("DGS");
                nodeWriter.write(delimiters.getField());
                dGSDangerousGoodsInst.write(nodeWriter, delimiters);
            }
        }
        if(pCIPackageIdentification != null && !pCIPackageIdentification.isEmpty()) {
            for(PCIPackageIdentification pCIPackageIdentificationInst : pCIPackageIdentification) {
                nodeWriter.write("PCI");
                nodeWriter.write(delimiters.getField());
                pCIPackageIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(cSTCustomsStatusOfGoods != null) {
            nodeWriter.write("CST");
            nodeWriter.write(delimiters.getField());
            cSTCustomsStatusOfGoods.write(nodeWriter, delimiters);
        }
        if(tMDTransportMovementDetails != null && !tMDTransportMovementDetails.isEmpty()) {
            for(TMDTransportMovementDetails tMDTransportMovementDetailsInst : tMDTransportMovementDetails) {
                nodeWriter.write("TMD");
                nodeWriter.write(delimiters.getField());
                tMDTransportMovementDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup15 != null && !segmentGroup15.isEmpty()) {
            for(SegmentGroup15 segmentGroup15Inst : segmentGroup15) {
                segmentGroup15Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup16 != null && !segmentGroup16.isEmpty()) {
            for(SegmentGroup16 segmentGroup16Inst : segmentGroup16) {
                segmentGroup16Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public GIDGoodsItemDetails getGIDGoodsItemDetails() {
        return gIDGoodsItemDetails;
    }

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

    public List getPACPackage() {
        return pACPackage;
    }

    public SegmentGroup14 setPACPackage(List pACPackage) {
        this.pACPackage = pACPackage;  return this;
    }

    public List getHANHandlingInstructions() {
        return hANHandlingInstructions;
    }

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

    public List getFTXFreeText() {
        return fTXFreeText;
    }

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

    public List getMEAMeasurements() {
        return mEAMeasurements;
    }

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

    public List getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

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

    public List getSGPSplitGoodsPlacement() {
        return sGPSplitGoodsPlacement;
    }

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

    public List getDGSDangerousGoods() {
        return dGSDangerousGoods;
    }

    public SegmentGroup14 setDGSDangerousGoods(List dGSDangerousGoods) {
        this.dGSDangerousGoods = dGSDangerousGoods;  return this;
    }

    public List getPCIPackageIdentification() {
        return pCIPackageIdentification;
    }

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

    public CSTCustomsStatusOfGoods getCSTCustomsStatusOfGoods() {
        return cSTCustomsStatusOfGoods;
    }

    public SegmentGroup14 setCSTCustomsStatusOfGoods(CSTCustomsStatusOfGoods cSTCustomsStatusOfGoods) {
        this.cSTCustomsStatusOfGoods = cSTCustomsStatusOfGoods;  return this;
    }

    public List getTMDTransportMovementDetails() {
        return tMDTransportMovementDetails;
    }

    public SegmentGroup14 setTMDTransportMovementDetails(List tMDTransportMovementDetails) {
        this.tMDTransportMovementDetails = tMDTransportMovementDetails;  return this;
    }

    public List getSegmentGroup15() {
        return segmentGroup15;
    }

    public SegmentGroup14 setSegmentGroup15(List segmentGroup15) {
        this.segmentGroup15 = segmentGroup15;  return this;
    }

    public List getSegmentGroup16() {
        return segmentGroup16;
    }

    public SegmentGroup14 setSegmentGroup16(List segmentGroup16) {
        this.segmentGroup16 = segmentGroup16;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy