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

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

/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d06b.CUSCAR;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d06b.common.GoodsItemDetails;    
import java.util.List;    
import org.milyn.edi.unedifact.d06b.common.Package;    
import org.milyn.edi.unedifact.d06b.common.HandlingInstructions;    
import org.milyn.edi.unedifact.d06b.common.FreeText;    
import org.milyn.edi.unedifact.d06b.common.Measurements;    
import org.milyn.edi.unedifact.d06b.common.MonetaryAmount;    
import org.milyn.edi.unedifact.d06b.common.SplitGoodsPlacement;    
import org.milyn.edi.unedifact.d06b.common.DangerousGoods;    
import org.milyn.edi.unedifact.d06b.common.PackageIdentification;    
import org.milyn.edi.unedifact.d06b.common.CustomsStatusOfGoods;    
import org.milyn.edi.unedifact.d06b.common.PlaceLocationIdentification;    
import org.milyn.edi.unedifact.d06b.common.TransportMovementDetails;    
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 GoodsItemDetails goodsItemDetails;
    private List _package;
    private List handlingInstructions;
    private List freeText;
    private List measurements;
    private List monetaryAmount;
    private List splitGoodsPlacement;
    private List dangerousGoods;
    private List packageIdentification;
    private CustomsStatusOfGoods customsStatusOfGoods;
    private List placeLocationIdentification;
    private List transportMovementDetails;
    private List segmentGroup15;
    private List segmentGroup16;

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

        if(goodsItemDetails != null) {
            nodeWriter.write("GID");
            nodeWriter.write(delimiters.getField());
            goodsItemDetails.write(nodeWriter, delimiters);
        }
        if(_package != null && !_package.isEmpty()) {
            for(Package _packageInst : _package) {
                nodeWriter.write("PAC");
                nodeWriter.write(delimiters.getField());
                _packageInst.write(nodeWriter, delimiters);
            }
        }
        if(handlingInstructions != null && !handlingInstructions.isEmpty()) {
            for(HandlingInstructions handlingInstructionsInst : handlingInstructions) {
                nodeWriter.write("HAN");
                nodeWriter.write(delimiters.getField());
                handlingInstructionsInst.write(nodeWriter, delimiters);
            }
        }
        if(freeText != null && !freeText.isEmpty()) {
            for(FreeText freeTextInst : freeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                freeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(measurements != null && !measurements.isEmpty()) {
            for(Measurements measurementsInst : measurements) {
                nodeWriter.write("MEA");
                nodeWriter.write(delimiters.getField());
                measurementsInst.write(nodeWriter, delimiters);
            }
        }
        if(monetaryAmount != null && !monetaryAmount.isEmpty()) {
            for(MonetaryAmount monetaryAmountInst : monetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                monetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(splitGoodsPlacement != null && !splitGoodsPlacement.isEmpty()) {
            for(SplitGoodsPlacement splitGoodsPlacementInst : splitGoodsPlacement) {
                nodeWriter.write("SGP");
                nodeWriter.write(delimiters.getField());
                splitGoodsPlacementInst.write(nodeWriter, delimiters);
            }
        }
        if(dangerousGoods != null && !dangerousGoods.isEmpty()) {
            for(DangerousGoods dangerousGoodsInst : dangerousGoods) {
                nodeWriter.write("DGS");
                nodeWriter.write(delimiters.getField());
                dangerousGoodsInst.write(nodeWriter, delimiters);
            }
        }
        if(packageIdentification != null && !packageIdentification.isEmpty()) {
            for(PackageIdentification packageIdentificationInst : packageIdentification) {
                nodeWriter.write("PCI");
                nodeWriter.write(delimiters.getField());
                packageIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(customsStatusOfGoods != null) {
            nodeWriter.write("CST");
            nodeWriter.write(delimiters.getField());
            customsStatusOfGoods.write(nodeWriter, delimiters);
        }
        if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
            for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
                nodeWriter.write("LOC");
                nodeWriter.write(delimiters.getField());
                placeLocationIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(transportMovementDetails != null && !transportMovementDetails.isEmpty()) {
            for(TransportMovementDetails transportMovementDetailsInst : transportMovementDetails) {
                nodeWriter.write("TMD");
                nodeWriter.write(delimiters.getField());
                transportMovementDetailsInst.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 GoodsItemDetails getGoodsItemDetails() {
        return goodsItemDetails;
    }

    public SegmentGroup14 setGoodsItemDetails(GoodsItemDetails goodsItemDetails) {
        this.goodsItemDetails = goodsItemDetails;  return this;
    }

    public List get_package() {
        return _package;
    }

    public SegmentGroup14 set_package(List _package) {
        this._package = _package;  return this;
    }

    public List getHandlingInstructions() {
        return handlingInstructions;
    }

    public SegmentGroup14 setHandlingInstructions(List handlingInstructions) {
        this.handlingInstructions = handlingInstructions;  return this;
    }

    public List getFreeText() {
        return freeText;
    }

    public SegmentGroup14 setFreeText(List freeText) {
        this.freeText = freeText;  return this;
    }

    public List getMeasurements() {
        return measurements;
    }

    public SegmentGroup14 setMeasurements(List measurements) {
        this.measurements = measurements;  return this;
    }

    public List getMonetaryAmount() {
        return monetaryAmount;
    }

    public SegmentGroup14 setMonetaryAmount(List monetaryAmount) {
        this.monetaryAmount = monetaryAmount;  return this;
    }

    public List getSplitGoodsPlacement() {
        return splitGoodsPlacement;
    }

    public SegmentGroup14 setSplitGoodsPlacement(List splitGoodsPlacement) {
        this.splitGoodsPlacement = splitGoodsPlacement;  return this;
    }

    public List getDangerousGoods() {
        return dangerousGoods;
    }

    public SegmentGroup14 setDangerousGoods(List dangerousGoods) {
        this.dangerousGoods = dangerousGoods;  return this;
    }

    public List getPackageIdentification() {
        return packageIdentification;
    }

    public SegmentGroup14 setPackageIdentification(List packageIdentification) {
        this.packageIdentification = packageIdentification;  return this;
    }

    public CustomsStatusOfGoods getCustomsStatusOfGoods() {
        return customsStatusOfGoods;
    }

    public SegmentGroup14 setCustomsStatusOfGoods(CustomsStatusOfGoods customsStatusOfGoods) {
        this.customsStatusOfGoods = customsStatusOfGoods;  return this;
    }

    public List getPlaceLocationIdentification() {
        return placeLocationIdentification;
    }

    public SegmentGroup14 setPlaceLocationIdentification(List placeLocationIdentification) {
        this.placeLocationIdentification = placeLocationIdentification;  return this;
    }

    public List getTransportMovementDetails() {
        return transportMovementDetails;
    }

    public SegmentGroup14 setTransportMovementDetails(List transportMovementDetails) {
        this.transportMovementDetails = transportMovementDetails;  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