org.milyn.edi.unedifact.d98a.BAPLIE.SegmentGroup5 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.BAPLIE;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d98a.common.PlaceLocationIdentification;
import org.milyn.edi.unedifact.d98a.common.GoodsItemDetails;
import org.milyn.edi.unedifact.d98a.common.NatureOfCargo;
import java.util.List;
import org.milyn.edi.unedifact.d98a.common.FreeText;
import org.milyn.edi.unedifact.d98a.common.Measurements;
import org.milyn.edi.unedifact.d98a.common.Dimensions;
import org.milyn.edi.unedifact.d98a.common.Temperature;
import org.milyn.edi.unedifact.d98a.common.RangeDetails;
import org.milyn.edi.unedifact.d98a.common.Reference;
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 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 segmentGroup6;
private List segmentGroup7;
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(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 PlaceLocationIdentification getPlaceLocationIdentification1() {
return placeLocationIdentification1;
}
public SegmentGroup5 setPlaceLocationIdentification1(PlaceLocationIdentification placeLocationIdentification1) {
this.placeLocationIdentification1 = placeLocationIdentification1; return this;
}
public GoodsItemDetails getGoodsItemDetails() {
return goodsItemDetails;
}
public SegmentGroup5 setGoodsItemDetails(GoodsItemDetails goodsItemDetails) {
this.goodsItemDetails = goodsItemDetails; return this;
}
public NatureOfCargo getNatureOfCargo() {
return natureOfCargo;
}
public SegmentGroup5 setNatureOfCargo(NatureOfCargo natureOfCargo) {
this.natureOfCargo = natureOfCargo; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup5 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getMeasurements() {
return measurements;
}
public SegmentGroup5 setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getDimensions() {
return dimensions;
}
public SegmentGroup5 setDimensions(List dimensions) {
this.dimensions = dimensions; return this;
}
public Temperature getTemperature() {
return temperature;
}
public SegmentGroup5 setTemperature(Temperature temperature) {
this.temperature = temperature; return this;
}
public RangeDetails getRangeDetails() {
return rangeDetails;
}
public SegmentGroup5 setRangeDetails(RangeDetails rangeDetails) {
this.rangeDetails = rangeDetails; return this;
}
public List getPlaceLocationIdentification2() {
return placeLocationIdentification2;
}
public SegmentGroup5 setPlaceLocationIdentification2(List placeLocationIdentification2) {
this.placeLocationIdentification2 = placeLocationIdentification2; return this;
}
public Reference getReference() {
return reference;
}
public SegmentGroup5 setReference(Reference reference) {
this.reference = reference; 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