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

org.milyn.edi.unedifact.d99b.HANMOV.SegmentGroup13 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.d99b.HANMOV;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d99b.common.GoodsItemDetails;    
import org.milyn.edi.unedifact.d99b.common.HandlingInstructions;    
import org.milyn.edi.unedifact.d99b.common.CustomsStatusOfGoods;    
import org.milyn.edi.unedifact.d99b.common.Temperature;    
import org.milyn.edi.unedifact.d99b.common.RangeDetails;    
import java.util.List;    
import org.milyn.edi.unedifact.d99b.common.PlaceLocationIdentification;    
import org.milyn.edi.unedifact.d99b.common.MonetaryAmount;    
import org.milyn.edi.unedifact.d99b.common.AdditionalProductId;    
import org.milyn.edi.unedifact.d99b.common.FreeText;    
import org.milyn.edi.unedifact.d99b.common.NameAndAddress;    
import org.milyn.edi.unedifact.d99b.common.Measurements;    
import org.milyn.edi.unedifact.d99b.common.Dimensions;    
import org.milyn.edi.unedifact.d99b.common.Reference;    
import org.milyn.edi.unedifact.d99b.common.PackageIdentification;    
import org.milyn.edi.unedifact.d99b.common.SplitGoodsPlacement;    
import org.milyn.edi.unedifact.d99b.common.TransportChargeRateCalculations;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup13 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private GoodsItemDetails goodsItemDetails;
    private HandlingInstructions handlingInstructions;
    private CustomsStatusOfGoods customsStatusOfGoods;
    private Temperature temperature;
    private RangeDetails rangeDetails;
    private List placeLocationIdentification;
    private List monetaryAmount;
    private List additionalProductId;
    private List freeText;
    private List nameAndAddress;
    private List measurements;
    private List dimensions;
    private List reference;
    private List packageIdentification;
    private List segmentGroup14;
    private List splitGoodsPlacement;
    private List transportChargeRateCalculations;
    private List segmentGroup15;

    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) {
            nodeWriter.write("HAN");
            nodeWriter.write(delimiters.getField());
            handlingInstructions.write(nodeWriter, delimiters);
        }
        if(customsStatusOfGoods != null) {
            nodeWriter.write("CST");
            nodeWriter.write(delimiters.getField());
            customsStatusOfGoods.write(nodeWriter, delimiters);
        }
        if(temperature != null) {
            nodeWriter.write("TMP");
            nodeWriter.write(delimiters.getField());
            temperature.write(nodeWriter, delimiters);
        }
        if(rangeDetails != null) {
            nodeWriter.write("RNG");
            nodeWriter.write(delimiters.getField());
            rangeDetails.write(nodeWriter, delimiters);
        }
        if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
            for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
                nodeWriter.write("LOC");
                nodeWriter.write(delimiters.getField());
                placeLocationIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(monetaryAmount != null && !monetaryAmount.isEmpty()) {
            for(MonetaryAmount monetaryAmountInst : monetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                monetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(additionalProductId != null && !additionalProductId.isEmpty()) {
            for(AdditionalProductId additionalProductIdInst : additionalProductId) {
                nodeWriter.write("PIA");
                nodeWriter.write(delimiters.getField());
                additionalProductIdInst.write(nodeWriter, delimiters);
            }
        }
        if(freeText != null && !freeText.isEmpty()) {
            for(FreeText freeTextInst : freeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                freeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(nameAndAddress != null && !nameAndAddress.isEmpty()) {
            for(NameAndAddress nameAndAddressInst : nameAndAddress) {
                nodeWriter.write("NAD");
                nodeWriter.write(delimiters.getField());
                nameAndAddressInst.write(nodeWriter, delimiters);
            }
        }
        if(measurements != null && !measurements.isEmpty()) {
            for(Measurements measurementsInst : measurements) {
                nodeWriter.write("MEA");
                nodeWriter.write(delimiters.getField());
                measurementsInst.write(nodeWriter, delimiters);
            }
        }
        if(dimensions != null && !dimensions.isEmpty()) {
            for(Dimensions dimensionsInst : dimensions) {
                nodeWriter.write("DIM");
                nodeWriter.write(delimiters.getField());
                dimensionsInst.write(nodeWriter, delimiters);
            }
        }
        if(reference != null && !reference.isEmpty()) {
            for(Reference referenceInst : reference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                referenceInst.write(nodeWriter, delimiters);
            }
        }
        if(packageIdentification != null && !packageIdentification.isEmpty()) {
            for(PackageIdentification packageIdentificationInst : packageIdentification) {
                nodeWriter.write("PCI");
                nodeWriter.write(delimiters.getField());
                packageIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup14 != null && !segmentGroup14.isEmpty()) {
            for(SegmentGroup14 segmentGroup14Inst : segmentGroup14) {
                segmentGroup14Inst.write(nodeWriter, delimiters);
            }
        }
        if(splitGoodsPlacement != null && !splitGoodsPlacement.isEmpty()) {
            for(SplitGoodsPlacement splitGoodsPlacementInst : splitGoodsPlacement) {
                nodeWriter.write("SGP");
                nodeWriter.write(delimiters.getField());
                splitGoodsPlacementInst.write(nodeWriter, delimiters);
            }
        }
        if(transportChargeRateCalculations != null && !transportChargeRateCalculations.isEmpty()) {
            for(TransportChargeRateCalculations transportChargeRateCalculationsInst : transportChargeRateCalculations) {
                nodeWriter.write("TCC");
                nodeWriter.write(delimiters.getField());
                transportChargeRateCalculationsInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup15 != null && !segmentGroup15.isEmpty()) {
            for(SegmentGroup15 segmentGroup15Inst : segmentGroup15) {
                segmentGroup15Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public GoodsItemDetails getGoodsItemDetails() {
        return goodsItemDetails;
    }

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

    public HandlingInstructions getHandlingInstructions() {
        return handlingInstructions;
    }

    public SegmentGroup13 setHandlingInstructions(HandlingInstructions handlingInstructions) {
        this.handlingInstructions = handlingInstructions;  return this;
    }

    public CustomsStatusOfGoods getCustomsStatusOfGoods() {
        return customsStatusOfGoods;
    }

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

    public Temperature getTemperature() {
        return temperature;
    }

    public SegmentGroup13 setTemperature(Temperature temperature) {
        this.temperature = temperature;  return this;
    }

    public RangeDetails getRangeDetails() {
        return rangeDetails;
    }

    public SegmentGroup13 setRangeDetails(RangeDetails rangeDetails) {
        this.rangeDetails = rangeDetails;  return this;
    }

    public List getPlaceLocationIdentification() {
        return placeLocationIdentification;
    }

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

    public List getMonetaryAmount() {
        return monetaryAmount;
    }

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

    public List getAdditionalProductId() {
        return additionalProductId;
    }

    public SegmentGroup13 setAdditionalProductId(List additionalProductId) {
        this.additionalProductId = additionalProductId;  return this;
    }

    public List getFreeText() {
        return freeText;
    }

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

    public List getNameAndAddress() {
        return nameAndAddress;
    }

    public SegmentGroup13 setNameAndAddress(List nameAndAddress) {
        this.nameAndAddress = nameAndAddress;  return this;
    }

    public List getMeasurements() {
        return measurements;
    }

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

    public List getDimensions() {
        return dimensions;
    }

    public SegmentGroup13 setDimensions(List dimensions) {
        this.dimensions = dimensions;  return this;
    }

    public List getReference() {
        return reference;
    }

    public SegmentGroup13 setReference(List reference) {
        this.reference = reference;  return this;
    }

    public List getPackageIdentification() {
        return packageIdentification;
    }

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

    public List getSegmentGroup14() {
        return segmentGroup14;
    }

    public SegmentGroup13 setSegmentGroup14(List segmentGroup14) {
        this.segmentGroup14 = segmentGroup14;  return this;
    }

    public List getSplitGoodsPlacement() {
        return splitGoodsPlacement;
    }

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

    public List getTransportChargeRateCalculations() {
        return transportChargeRateCalculations;
    }

    public SegmentGroup13 setTransportChargeRateCalculations(List transportChargeRateCalculations) {
        this.transportChargeRateCalculations = transportChargeRateCalculations;  return this;
    }

    public List getSegmentGroup15() {
        return segmentGroup15;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy