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

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

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

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.HandlingInstructions;    
import org.milyn.edi.unedifact.d06b.common.SplitGoodsPlacement;    
import org.milyn.edi.unedifact.d06b.common.DangerousGoods;    
import org.milyn.edi.unedifact.d06b.common.FreeText;    
import org.milyn.edi.unedifact.d06b.common.NatureOfCargo;    
import org.milyn.edi.unedifact.d06b.common.PlaceLocationIdentification;    
import org.milyn.edi.unedifact.d06b.common.Quantity;    
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 handlingInstructions;
    private List splitGoodsPlacement;
    private List dangerousGoods;
    private List freeText;
    private List natureOfCargo;
    private List placeLocationIdentification;
    private List quantity;
    private List segmentGroup15;
    private List segmentGroup16;
    private List segmentGroup17;
    private List segmentGroup18;

    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(handlingInstructions != null && !handlingInstructions.isEmpty()) {
            for(HandlingInstructions handlingInstructionsInst : handlingInstructions) {
                nodeWriter.write("HAN");
                nodeWriter.write(delimiters.getField());
                handlingInstructionsInst.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(freeText != null && !freeText.isEmpty()) {
            for(FreeText freeTextInst : freeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                freeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(natureOfCargo != null && !natureOfCargo.isEmpty()) {
            for(NatureOfCargo natureOfCargoInst : natureOfCargo) {
                nodeWriter.write("GDS");
                nodeWriter.write(delimiters.getField());
                natureOfCargoInst.write(nodeWriter, delimiters);
            }
        }
        if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
            for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
                nodeWriter.write("LOC");
                nodeWriter.write(delimiters.getField());
                placeLocationIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(quantity != null && !quantity.isEmpty()) {
            for(Quantity quantityInst : quantity) {
                nodeWriter.write("QTY");
                nodeWriter.write(delimiters.getField());
                quantityInst.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);
            }
        }
        if(segmentGroup17 != null && !segmentGroup17.isEmpty()) {
            for(SegmentGroup17 segmentGroup17Inst : segmentGroup17) {
                segmentGroup17Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup18 != null && !segmentGroup18.isEmpty()) {
            for(SegmentGroup18 segmentGroup18Inst : segmentGroup18) {
                segmentGroup18Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public GoodsItemDetails getGoodsItemDetails() {
        return goodsItemDetails;
    }

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

    public List getHandlingInstructions() {
        return handlingInstructions;
    }

    public SegmentGroup14 setHandlingInstructions(List handlingInstructions) {
        this.handlingInstructions = handlingInstructions;  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 getFreeText() {
        return freeText;
    }

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

    public List getNatureOfCargo() {
        return natureOfCargo;
    }

    public SegmentGroup14 setNatureOfCargo(List natureOfCargo) {
        this.natureOfCargo = natureOfCargo;  return this;
    }

    public List getPlaceLocationIdentification() {
        return placeLocationIdentification;
    }

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

    public List getQuantity() {
        return quantity;
    }

    public SegmentGroup14 setQuantity(List quantity) {
        this.quantity = quantity;  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;
    }

    public List getSegmentGroup17() {
        return segmentGroup17;
    }

    public SegmentGroup14 setSegmentGroup17(List segmentGroup17) {
        this.segmentGroup17 = segmentGroup17;  return this;
    }

    public List getSegmentGroup18() {
        return segmentGroup18;
    }

    public SegmentGroup14 setSegmentGroup18(List segmentGroup18) {
        this.segmentGroup18 = segmentGroup18;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy