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

org.milyn.edi.unedifact.d99b.BAPLIE.SegmentGroup5 Maven / Gradle / Ivy

The newest version!
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d99b.BAPLIE;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d99b.common.LOCPlaceLocationIdentification;    
import org.milyn.edi.unedifact.d99b.common.GIDGoodsItemDetails;    
import org.milyn.edi.unedifact.d99b.common.GDSNatureOfCargo;    
import java.util.List;    
import org.milyn.edi.unedifact.d99b.common.FTXFreeText;    
import org.milyn.edi.unedifact.d99b.common.MEAMeasurements;    
import org.milyn.edi.unedifact.d99b.common.DIMDimensions;    
import org.milyn.edi.unedifact.d99b.common.TMPTemperature;    
import org.milyn.edi.unedifact.d99b.common.RNGRangeDetails;    
import org.milyn.edi.unedifact.d99b.common.RFFReference;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup5 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private LOCPlaceLocationIdentification lOC1PlaceLocationIdentification;
    private GIDGoodsItemDetails gIDGoodsItemDetails;
    private GDSNatureOfCargo gDSNatureOfCargo;
    private List fTXFreeText;
    private List mEAMeasurements;
    private List dIMDimensions;
    private TMPTemperature tMPTemperature;
    private RNGRangeDetails rNGRangeDetails;
    private List lOC2PlaceLocationIdentification;
    private RFFReference rFFReference;
    private List segmentGroup6;
    private List segmentGroup7;

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

        if(lOC1PlaceLocationIdentification != null) {
            nodeWriter.write("LOC");
            nodeWriter.write(delimiters.getField());
            lOC1PlaceLocationIdentification.write(nodeWriter, delimiters);
        }
        if(gIDGoodsItemDetails != null) {
            nodeWriter.write("GID");
            nodeWriter.write(delimiters.getField());
            gIDGoodsItemDetails.write(nodeWriter, delimiters);
        }
        if(gDSNatureOfCargo != null) {
            nodeWriter.write("GDS");
            nodeWriter.write(delimiters.getField());
            gDSNatureOfCargo.write(nodeWriter, delimiters);
        }
        if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
            for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                fTXFreeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(mEAMeasurements != null && !mEAMeasurements.isEmpty()) {
            for(MEAMeasurements mEAMeasurementsInst : mEAMeasurements) {
                nodeWriter.write("MEA");
                nodeWriter.write(delimiters.getField());
                mEAMeasurementsInst.write(nodeWriter, delimiters);
            }
        }
        if(dIMDimensions != null && !dIMDimensions.isEmpty()) {
            for(DIMDimensions dIMDimensionsInst : dIMDimensions) {
                nodeWriter.write("DIM");
                nodeWriter.write(delimiters.getField());
                dIMDimensionsInst.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(lOC2PlaceLocationIdentification != null && !lOC2PlaceLocationIdentification.isEmpty()) {
            for(LOCPlaceLocationIdentification lOC2PlaceLocationIdentificationInst : lOC2PlaceLocationIdentification) {
                nodeWriter.write("LOC");
                nodeWriter.write(delimiters.getField());
                lOC2PlaceLocationIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(rFFReference != null) {
            nodeWriter.write("RFF");
            nodeWriter.write(delimiters.getField());
            rFFReference.write(nodeWriter, delimiters);
        }
        if(segmentGroup6 != null && !segmentGroup6.isEmpty()) {
            for(SegmentGroup6 segmentGroup6Inst : segmentGroup6) {
                segmentGroup6Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
            for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
                segmentGroup7Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public LOCPlaceLocationIdentification getLOC1PlaceLocationIdentification() {
        return lOC1PlaceLocationIdentification;
    }

    public SegmentGroup5 setLOC1PlaceLocationIdentification(LOCPlaceLocationIdentification lOC1PlaceLocationIdentification) {
        this.lOC1PlaceLocationIdentification = lOC1PlaceLocationIdentification;  return this;
    }

    public GIDGoodsItemDetails getGIDGoodsItemDetails() {
        return gIDGoodsItemDetails;
    }

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

    public GDSNatureOfCargo getGDSNatureOfCargo() {
        return gDSNatureOfCargo;
    }

    public SegmentGroup5 setGDSNatureOfCargo(GDSNatureOfCargo gDSNatureOfCargo) {
        this.gDSNatureOfCargo = gDSNatureOfCargo;  return this;
    }

    public List getFTXFreeText() {
        return fTXFreeText;
    }

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

    public List getMEAMeasurements() {
        return mEAMeasurements;
    }

    public SegmentGroup5 setMEAMeasurements(List mEAMeasurements) {
        this.mEAMeasurements = mEAMeasurements;  return this;
    }

    public List getDIMDimensions() {
        return dIMDimensions;
    }

    public SegmentGroup5 setDIMDimensions(List dIMDimensions) {
        this.dIMDimensions = dIMDimensions;  return this;
    }

    public TMPTemperature getTMPTemperature() {
        return tMPTemperature;
    }

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

    public RNGRangeDetails getRNGRangeDetails() {
        return rNGRangeDetails;
    }

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

    public List getLOC2PlaceLocationIdentification() {
        return lOC2PlaceLocationIdentification;
    }

    public SegmentGroup5 setLOC2PlaceLocationIdentification(List lOC2PlaceLocationIdentification) {
        this.lOC2PlaceLocationIdentification = lOC2PlaceLocationIdentification;  return this;
    }

    public RFFReference getRFFReference() {
        return rFFReference;
    }

    public SegmentGroup5 setRFFReference(RFFReference rFFReference) {
        this.rFFReference = rFFReference;  return this;
    }

    public List getSegmentGroup6() {
        return segmentGroup6;
    }

    public SegmentGroup5 setSegmentGroup6(List segmentGroup6) {
        this.segmentGroup6 = segmentGroup6;  return this;
    }

    public List getSegmentGroup7() {
        return segmentGroup7;
    }

    public SegmentGroup5 setSegmentGroup7(List segmentGroup7) {
        this.segmentGroup7 = segmentGroup7;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy