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

org.milyn.edi.unedifact.d96a.IFCSUM.SegmentGroup37 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.d96a.IFCSUM;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d96a.common.GoodsItemDetails;    
import org.milyn.edi.unedifact.d96a.common.HandlingInstructions;    
import org.milyn.edi.unedifact.d96a.common.Temperature;    
import org.milyn.edi.unedifact.d96a.common.RangeDetails;    
import org.milyn.edi.unedifact.d96a.common.TransportMovementDetails;    
import java.util.List;    
import org.milyn.edi.unedifact.d96a.common.PlaceLocationIdentification;    
import org.milyn.edi.unedifact.d96a.common.MonetaryAmount;    
import org.milyn.edi.unedifact.d96a.common.AdditionalProductId;    
import org.milyn.edi.unedifact.d96a.common.FreeText;    
import org.milyn.edi.unedifact.d96a.common.NatureOfCargo;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup37 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private GoodsItemDetails goodsItemDetails;
    private HandlingInstructions handlingInstructions;
    private Temperature temperature;
    private RangeDetails rangeDetails;
    private TransportMovementDetails transportMovementDetails;
    private List placeLocationIdentification;
    private List monetaryAmount;
    private List additionalProductId;
    private List freeText;
    private List segmentGroup38;
    private List natureOfCargo;
    private List segmentGroup39;
    private List segmentGroup40;
    private List segmentGroup41;
    private List segmentGroup42;
    private List segmentGroup43;
    private List segmentGroup44;
    private List segmentGroup46;
    private List segmentGroup48;
    private List segmentGroup50;
    private List segmentGroup51;

    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(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(transportMovementDetails != null) {
            nodeWriter.write("TMD");
            nodeWriter.write(delimiters.getField());
            transportMovementDetails.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(segmentGroup38 != null && !segmentGroup38.isEmpty()) {
            for(SegmentGroup38 segmentGroup38Inst : segmentGroup38) {
                segmentGroup38Inst.write(nodeWriter, delimiters);
            }
        }
        if(natureOfCargo != null && !natureOfCargo.isEmpty()) {
            for(NatureOfCargo natureOfCargoInst : natureOfCargo) {
                nodeWriter.write("GDS");
                nodeWriter.write(delimiters.getField());
                natureOfCargoInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup39 != null && !segmentGroup39.isEmpty()) {
            for(SegmentGroup39 segmentGroup39Inst : segmentGroup39) {
                segmentGroup39Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup40 != null && !segmentGroup40.isEmpty()) {
            for(SegmentGroup40 segmentGroup40Inst : segmentGroup40) {
                segmentGroup40Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup41 != null && !segmentGroup41.isEmpty()) {
            for(SegmentGroup41 segmentGroup41Inst : segmentGroup41) {
                segmentGroup41Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup42 != null && !segmentGroup42.isEmpty()) {
            for(SegmentGroup42 segmentGroup42Inst : segmentGroup42) {
                segmentGroup42Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup43 != null && !segmentGroup43.isEmpty()) {
            for(SegmentGroup43 segmentGroup43Inst : segmentGroup43) {
                segmentGroup43Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup44 != null && !segmentGroup44.isEmpty()) {
            for(SegmentGroup44 segmentGroup44Inst : segmentGroup44) {
                segmentGroup44Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup46 != null && !segmentGroup46.isEmpty()) {
            for(SegmentGroup46 segmentGroup46Inst : segmentGroup46) {
                segmentGroup46Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup48 != null && !segmentGroup48.isEmpty()) {
            for(SegmentGroup48 segmentGroup48Inst : segmentGroup48) {
                segmentGroup48Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup50 != null && !segmentGroup50.isEmpty()) {
            for(SegmentGroup50 segmentGroup50Inst : segmentGroup50) {
                segmentGroup50Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup51 != null && !segmentGroup51.isEmpty()) {
            for(SegmentGroup51 segmentGroup51Inst : segmentGroup51) {
                segmentGroup51Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public GoodsItemDetails getGoodsItemDetails() {
        return goodsItemDetails;
    }

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

    public HandlingInstructions getHandlingInstructions() {
        return handlingInstructions;
    }

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

    public Temperature getTemperature() {
        return temperature;
    }

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

    public RangeDetails getRangeDetails() {
        return rangeDetails;
    }

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

    public TransportMovementDetails getTransportMovementDetails() {
        return transportMovementDetails;
    }

    public SegmentGroup37 setTransportMovementDetails(TransportMovementDetails transportMovementDetails) {
        this.transportMovementDetails = transportMovementDetails;  return this;
    }

    public List getPlaceLocationIdentification() {
        return placeLocationIdentification;
    }

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

    public List getMonetaryAmount() {
        return monetaryAmount;
    }

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

    public List getAdditionalProductId() {
        return additionalProductId;
    }

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

    public List getFreeText() {
        return freeText;
    }

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

    public List getSegmentGroup38() {
        return segmentGroup38;
    }

    public SegmentGroup37 setSegmentGroup38(List segmentGroup38) {
        this.segmentGroup38 = segmentGroup38;  return this;
    }

    public List getNatureOfCargo() {
        return natureOfCargo;
    }

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

    public List getSegmentGroup39() {
        return segmentGroup39;
    }

    public SegmentGroup37 setSegmentGroup39(List segmentGroup39) {
        this.segmentGroup39 = segmentGroup39;  return this;
    }

    public List getSegmentGroup40() {
        return segmentGroup40;
    }

    public SegmentGroup37 setSegmentGroup40(List segmentGroup40) {
        this.segmentGroup40 = segmentGroup40;  return this;
    }

    public List getSegmentGroup41() {
        return segmentGroup41;
    }

    public SegmentGroup37 setSegmentGroup41(List segmentGroup41) {
        this.segmentGroup41 = segmentGroup41;  return this;
    }

    public List getSegmentGroup42() {
        return segmentGroup42;
    }

    public SegmentGroup37 setSegmentGroup42(List segmentGroup42) {
        this.segmentGroup42 = segmentGroup42;  return this;
    }

    public List getSegmentGroup43() {
        return segmentGroup43;
    }

    public SegmentGroup37 setSegmentGroup43(List segmentGroup43) {
        this.segmentGroup43 = segmentGroup43;  return this;
    }

    public List getSegmentGroup44() {
        return segmentGroup44;
    }

    public SegmentGroup37 setSegmentGroup44(List segmentGroup44) {
        this.segmentGroup44 = segmentGroup44;  return this;
    }

    public List getSegmentGroup46() {
        return segmentGroup46;
    }

    public SegmentGroup37 setSegmentGroup46(List segmentGroup46) {
        this.segmentGroup46 = segmentGroup46;  return this;
    }

    public List getSegmentGroup48() {
        return segmentGroup48;
    }

    public SegmentGroup37 setSegmentGroup48(List segmentGroup48) {
        this.segmentGroup48 = segmentGroup48;  return this;
    }

    public List getSegmentGroup50() {
        return segmentGroup50;
    }

    public SegmentGroup37 setSegmentGroup50(List segmentGroup50) {
        this.segmentGroup50 = segmentGroup50;  return this;
    }

    public List getSegmentGroup51() {
        return segmentGroup51;
    }

    public SegmentGroup37 setSegmentGroup51(List segmentGroup51) {
        this.segmentGroup51 = segmentGroup51;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy