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

org.milyn.edi.unedifact.d07a.IFTSTA.SegmentGroup14 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.d07a.IFTSTA;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d07a.common.GIDGoodsItemDetails;    
import java.util.List;    
import org.milyn.edi.unedifact.d07a.common.HANHandlingInstructions;    
import org.milyn.edi.unedifact.d07a.common.SGPSplitGoodsPlacement;    
import org.milyn.edi.unedifact.d07a.common.DGSDangerousGoods;    
import org.milyn.edi.unedifact.d07a.common.FTXFreeText;    
import org.milyn.edi.unedifact.d07a.common.GDSNatureOfCargo;    
import org.milyn.edi.unedifact.d07a.common.LOCPlaceLocationIdentification;    
import org.milyn.edi.unedifact.d07a.common.QTYQuantity;    
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 hANHandlingInstructions;
    private List sGPSplitGoodsPlacement;
    private List dGSDangerousGoods;
    private List fTXFreeText;
    private List gDSNatureOfCargo;
    private List lOCPlaceLocationIdentification;
    private List qTYQuantity;
    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(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(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(fTXFreeText != null && !fTXFreeText.isEmpty()) {
            for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                fTXFreeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(gDSNatureOfCargo != null && !gDSNatureOfCargo.isEmpty()) {
            for(GDSNatureOfCargo gDSNatureOfCargoInst : gDSNatureOfCargo) {
                nodeWriter.write("GDS");
                nodeWriter.write(delimiters.getField());
                gDSNatureOfCargoInst.write(nodeWriter, delimiters);
            }
        }
        if(lOCPlaceLocationIdentification != null && !lOCPlaceLocationIdentification.isEmpty()) {
            for(LOCPlaceLocationIdentification lOCPlaceLocationIdentificationInst : lOCPlaceLocationIdentification) {
                nodeWriter.write("LOC");
                nodeWriter.write(delimiters.getField());
                lOCPlaceLocationIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(qTYQuantity != null && !qTYQuantity.isEmpty()) {
            for(QTYQuantity qTYQuantityInst : qTYQuantity) {
                nodeWriter.write("QTY");
                nodeWriter.write(delimiters.getField());
                qTYQuantityInst.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 GIDGoodsItemDetails getGIDGoodsItemDetails() {
        return gIDGoodsItemDetails;
    }

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

    public List getHANHandlingInstructions() {
        return hANHandlingInstructions;
    }

    public SegmentGroup14 setHANHandlingInstructions(List hANHandlingInstructions) {
        this.hANHandlingInstructions = hANHandlingInstructions;  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 getFTXFreeText() {
        return fTXFreeText;
    }

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

    public List getGDSNatureOfCargo() {
        return gDSNatureOfCargo;
    }

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

    public List getLOCPlaceLocationIdentification() {
        return lOCPlaceLocationIdentification;
    }

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

    public List getQTYQuantity() {
        return qTYQuantity;
    }

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