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

org.milyn.edi.unedifact.d05a.IFTMAN.SegmentGroup18 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.d05a.IFTMAN;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d05a.common.GIDGoodsItemDetails;    
import org.milyn.edi.unedifact.d05a.common.HANHandlingInstructions;    
import org.milyn.edi.unedifact.d05a.common.TMPTemperature;    
import org.milyn.edi.unedifact.d05a.common.RNGRangeDetails;    
import org.milyn.edi.unedifact.d05a.common.TMDTransportMovementDetails;    
import java.util.List;    
import org.milyn.edi.unedifact.d05a.common.LOCPlaceLocationIdentification;    
import org.milyn.edi.unedifact.d05a.common.MOAMonetaryAmount;    
import org.milyn.edi.unedifact.d05a.common.PIAAdditionalProductId;    
import org.milyn.edi.unedifact.d05a.common.FTXFreeText;    
import org.milyn.edi.unedifact.d05a.common.PCDPercentageDetails;    
import org.milyn.edi.unedifact.d05a.common.GDSNatureOfCargo;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup18 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private GIDGoodsItemDetails gIDGoodsItemDetails;
    private HANHandlingInstructions hANHandlingInstructions;
    private TMPTemperature tMPTemperature;
    private RNGRangeDetails rNGRangeDetails;
    private TMDTransportMovementDetails tMDTransportMovementDetails;
    private List lOCPlaceLocationIdentification;
    private List mOAMonetaryAmount;
    private List pIAAdditionalProductId;
    private List fTXFreeText;
    private List pCDPercentageDetails;
    private List segmentGroup19;
    private List gDSNatureOfCargo;
    private List segmentGroup20;
    private List segmentGroup21;
    private List segmentGroup22;
    private List segmentGroup23;
    private List segmentGroup24;
    private List segmentGroup25;
    private List segmentGroup27;
    private List segmentGroup29;
    private List segmentGroup30;

    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) {
            nodeWriter.write("HAN");
            nodeWriter.write(delimiters.getField());
            hANHandlingInstructions.write(nodeWriter, delimiters);
        }
        if(tMPTemperature != null) {
            nodeWriter.write("TMP");
            nodeWriter.write(delimiters.getField());
            tMPTemperature.write(nodeWriter, delimiters);
        }
        if(rNGRangeDetails != null) {
            nodeWriter.write("RNG");
            nodeWriter.write(delimiters.getField());
            rNGRangeDetails.write(nodeWriter, delimiters);
        }
        if(tMDTransportMovementDetails != null) {
            nodeWriter.write("TMD");
            nodeWriter.write(delimiters.getField());
            tMDTransportMovementDetails.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(pCDPercentageDetails != null && !pCDPercentageDetails.isEmpty()) {
            for(PCDPercentageDetails pCDPercentageDetailsInst : pCDPercentageDetails) {
                nodeWriter.write("PCD");
                nodeWriter.write(delimiters.getField());
                pCDPercentageDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup19 != null && !segmentGroup19.isEmpty()) {
            for(SegmentGroup19 segmentGroup19Inst : segmentGroup19) {
                segmentGroup19Inst.write(nodeWriter, delimiters);
            }
        }
        if(gDSNatureOfCargo != null && !gDSNatureOfCargo.isEmpty()) {
            for(GDSNatureOfCargo gDSNatureOfCargoInst : gDSNatureOfCargo) {
                nodeWriter.write("GDS");
                nodeWriter.write(delimiters.getField());
                gDSNatureOfCargoInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup20 != null && !segmentGroup20.isEmpty()) {
            for(SegmentGroup20 segmentGroup20Inst : segmentGroup20) {
                segmentGroup20Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup21 != null && !segmentGroup21.isEmpty()) {
            for(SegmentGroup21 segmentGroup21Inst : segmentGroup21) {
                segmentGroup21Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup22 != null && !segmentGroup22.isEmpty()) {
            for(SegmentGroup22 segmentGroup22Inst : segmentGroup22) {
                segmentGroup22Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup23 != null && !segmentGroup23.isEmpty()) {
            for(SegmentGroup23 segmentGroup23Inst : segmentGroup23) {
                segmentGroup23Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup24 != null && !segmentGroup24.isEmpty()) {
            for(SegmentGroup24 segmentGroup24Inst : segmentGroup24) {
                segmentGroup24Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup25 != null && !segmentGroup25.isEmpty()) {
            for(SegmentGroup25 segmentGroup25Inst : segmentGroup25) {
                segmentGroup25Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup27 != null && !segmentGroup27.isEmpty()) {
            for(SegmentGroup27 segmentGroup27Inst : segmentGroup27) {
                segmentGroup27Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup29 != null && !segmentGroup29.isEmpty()) {
            for(SegmentGroup29 segmentGroup29Inst : segmentGroup29) {
                segmentGroup29Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup30 != null && !segmentGroup30.isEmpty()) {
            for(SegmentGroup30 segmentGroup30Inst : segmentGroup30) {
                segmentGroup30Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public GIDGoodsItemDetails getGIDGoodsItemDetails() {
        return gIDGoodsItemDetails;
    }

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

    public HANHandlingInstructions getHANHandlingInstructions() {
        return hANHandlingInstructions;
    }

    public SegmentGroup18 setHANHandlingInstructions(HANHandlingInstructions hANHandlingInstructions) {
        this.hANHandlingInstructions = hANHandlingInstructions;  return this;
    }

    public TMPTemperature getTMPTemperature() {
        return tMPTemperature;
    }

    public SegmentGroup18 setTMPTemperature(TMPTemperature tMPTemperature) {
        this.tMPTemperature = tMPTemperature;  return this;
    }

    public RNGRangeDetails getRNGRangeDetails() {
        return rNGRangeDetails;
    }

    public SegmentGroup18 setRNGRangeDetails(RNGRangeDetails rNGRangeDetails) {
        this.rNGRangeDetails = rNGRangeDetails;  return this;
    }

    public TMDTransportMovementDetails getTMDTransportMovementDetails() {
        return tMDTransportMovementDetails;
    }

    public SegmentGroup18 setTMDTransportMovementDetails(TMDTransportMovementDetails tMDTransportMovementDetails) {
        this.tMDTransportMovementDetails = tMDTransportMovementDetails;  return this;
    }

    public List getLOCPlaceLocationIdentification() {
        return lOCPlaceLocationIdentification;
    }

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

    public List getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

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

    public List getPIAAdditionalProductId() {
        return pIAAdditionalProductId;
    }

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

    public List getFTXFreeText() {
        return fTXFreeText;
    }

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

    public List getPCDPercentageDetails() {
        return pCDPercentageDetails;
    }

    public SegmentGroup18 setPCDPercentageDetails(List pCDPercentageDetails) {
        this.pCDPercentageDetails = pCDPercentageDetails;  return this;
    }

    public List getSegmentGroup19() {
        return segmentGroup19;
    }

    public SegmentGroup18 setSegmentGroup19(List segmentGroup19) {
        this.segmentGroup19 = segmentGroup19;  return this;
    }

    public List getGDSNatureOfCargo() {
        return gDSNatureOfCargo;
    }

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

    public List getSegmentGroup20() {
        return segmentGroup20;
    }

    public SegmentGroup18 setSegmentGroup20(List segmentGroup20) {
        this.segmentGroup20 = segmentGroup20;  return this;
    }

    public List getSegmentGroup21() {
        return segmentGroup21;
    }

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

    public List getSegmentGroup22() {
        return segmentGroup22;
    }

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

    public List getSegmentGroup23() {
        return segmentGroup23;
    }

    public SegmentGroup18 setSegmentGroup23(List segmentGroup23) {
        this.segmentGroup23 = segmentGroup23;  return this;
    }

    public List getSegmentGroup24() {
        return segmentGroup24;
    }

    public SegmentGroup18 setSegmentGroup24(List segmentGroup24) {
        this.segmentGroup24 = segmentGroup24;  return this;
    }

    public List getSegmentGroup25() {
        return segmentGroup25;
    }

    public SegmentGroup18 setSegmentGroup25(List segmentGroup25) {
        this.segmentGroup25 = segmentGroup25;  return this;
    }

    public List getSegmentGroup27() {
        return segmentGroup27;
    }

    public SegmentGroup18 setSegmentGroup27(List segmentGroup27) {
        this.segmentGroup27 = segmentGroup27;  return this;
    }

    public List getSegmentGroup29() {
        return segmentGroup29;
    }

    public SegmentGroup18 setSegmentGroup29(List segmentGroup29) {
        this.segmentGroup29 = segmentGroup29;  return this;
    }

    public List getSegmentGroup30() {
        return segmentGroup30;
    }

    public SegmentGroup18 setSegmentGroup30(List segmentGroup30) {
        this.segmentGroup30 = segmentGroup30;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy