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

org.milyn.edi.unedifact.d96a.BAPLIE.SegmentGroup3 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.BAPLIE;

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

public class SegmentGroup3 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private PlaceLocationIdentification placeLocationIdentification1;
    private GoodsItemDetails goodsItemDetails;
    private NatureOfCargo natureOfCargo;
    private List freeText;
    private List measurements;
    private List dimensions;
    private Temperature temperature;
    private RangeDetails rangeDetails;
    private List placeLocationIdentification2;
    private Reference reference;
    private List segmentGroup4;
    private List segmentGroup5;

    public void write(Writer writer, Delimiters delimiters) throws IOException {
        
        Writer nodeWriter = writer;

        if(placeLocationIdentification1 != null) {
            nodeWriter.write("LOC");
            nodeWriter.write(delimiters.getField());
            placeLocationIdentification1.write(nodeWriter, delimiters);
        }
        if(goodsItemDetails != null) {
            nodeWriter.write("GID");
            nodeWriter.write(delimiters.getField());
            goodsItemDetails.write(nodeWriter, delimiters);
        }
        if(natureOfCargo != null) {
            nodeWriter.write("GDS");
            nodeWriter.write(delimiters.getField());
            natureOfCargo.write(nodeWriter, delimiters);
        }
        if(freeText != null && !freeText.isEmpty()) {
            for(FreeText freeTextInst : freeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                freeTextInst.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(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(placeLocationIdentification2 != null && !placeLocationIdentification2.isEmpty()) {
            for(PlaceLocationIdentification placeLocationIdentification2Inst : placeLocationIdentification2) {
                nodeWriter.write("LOC");
                nodeWriter.write(delimiters.getField());
                placeLocationIdentification2Inst.write(nodeWriter, delimiters);
            }
        }
        if(reference != null) {
            nodeWriter.write("RFF");
            nodeWriter.write(delimiters.getField());
            reference.write(nodeWriter, delimiters);
        }
        if(segmentGroup4 != null && !segmentGroup4.isEmpty()) {
            for(SegmentGroup4 segmentGroup4Inst : segmentGroup4) {
                segmentGroup4Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup5 != null && !segmentGroup5.isEmpty()) {
            for(SegmentGroup5 segmentGroup5Inst : segmentGroup5) {
                segmentGroup5Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public PlaceLocationIdentification getPlaceLocationIdentification1() {
        return placeLocationIdentification1;
    }

    public SegmentGroup3 setPlaceLocationIdentification1(PlaceLocationIdentification placeLocationIdentification1) {
        this.placeLocationIdentification1 = placeLocationIdentification1;  return this;
    }

    public GoodsItemDetails getGoodsItemDetails() {
        return goodsItemDetails;
    }

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

    public NatureOfCargo getNatureOfCargo() {
        return natureOfCargo;
    }

    public SegmentGroup3 setNatureOfCargo(NatureOfCargo natureOfCargo) {
        this.natureOfCargo = natureOfCargo;  return this;
    }

    public List getFreeText() {
        return freeText;
    }

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

    public List getMeasurements() {
        return measurements;
    }

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

    public List getDimensions() {
        return dimensions;
    }

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

    public Temperature getTemperature() {
        return temperature;
    }

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

    public RangeDetails getRangeDetails() {
        return rangeDetails;
    }

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

    public List getPlaceLocationIdentification2() {
        return placeLocationIdentification2;
    }

    public SegmentGroup3 setPlaceLocationIdentification2(List placeLocationIdentification2) {
        this.placeLocationIdentification2 = placeLocationIdentification2;  return this;
    }

    public Reference getReference() {
        return reference;
    }

    public SegmentGroup3 setReference(Reference reference) {
        this.reference = reference;  return this;
    }

    public List getSegmentGroup4() {
        return segmentGroup4;
    }

    public SegmentGroup3 setSegmentGroup4(List segmentGroup4) {
        this.segmentGroup4 = segmentGroup4;  return this;
    }

    public List getSegmentGroup5() {
        return segmentGroup5;
    }

    public SegmentGroup3 setSegmentGroup5(List segmentGroup5) {
        this.segmentGroup5 = segmentGroup5;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy