org.milyn.edi.unedifact.d06b.DGRECA.SegmentGroup5 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.DGRECA;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.DGSDangerousGoods;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.FTXFreeText;
import org.milyn.edi.unedifact.d06b.common.MEAMeasurements;
import org.milyn.edi.unedifact.d06b.common.LOCPlaceLocationIdentification;
import org.milyn.edi.unedifact.d06b.common.SGPSplitGoodsPlacement;
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 DGSDangerousGoods dGSDangerousGoods;
private List fTXFreeText;
private MEAMeasurements mEAMeasurements;
private List lOCPlaceLocationIdentification;
private List sGPSplitGoodsPlacement;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(dGSDangerousGoods != null) {
nodeWriter.write("DGS");
nodeWriter.write(delimiters.getField());
dGSDangerousGoods.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) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
mEAMeasurements.write(nodeWriter, delimiters);
}
if(lOCPlaceLocationIdentification != null && !lOCPlaceLocationIdentification.isEmpty()) {
for(LOCPlaceLocationIdentification lOCPlaceLocationIdentificationInst : lOCPlaceLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
lOCPlaceLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(sGPSplitGoodsPlacement != null && !sGPSplitGoodsPlacement.isEmpty()) {
for(SGPSplitGoodsPlacement sGPSplitGoodsPlacementInst : sGPSplitGoodsPlacement) {
nodeWriter.write("SGP");
nodeWriter.write(delimiters.getField());
sGPSplitGoodsPlacementInst.write(nodeWriter, delimiters);
}
}
}
public DGSDangerousGoods getDGSDangerousGoods() {
return dGSDangerousGoods;
}
public SegmentGroup5 setDGSDangerousGoods(DGSDangerousGoods dGSDangerousGoods) {
this.dGSDangerousGoods = dGSDangerousGoods; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup5 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public MEAMeasurements getMEAMeasurements() {
return mEAMeasurements;
}
public SegmentGroup5 setMEAMeasurements(MEAMeasurements mEAMeasurements) {
this.mEAMeasurements = mEAMeasurements; return this;
}
public List getLOCPlaceLocationIdentification() {
return lOCPlaceLocationIdentification;
}
public SegmentGroup5 setLOCPlaceLocationIdentification(List lOCPlaceLocationIdentification) {
this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification; return this;
}
public List getSGPSplitGoodsPlacement() {
return sGPSplitGoodsPlacement;
}
public SegmentGroup5 setSGPSplitGoodsPlacement(List sGPSplitGoodsPlacement) {
this.sGPSplitGoodsPlacement = sGPSplitGoodsPlacement; return this;
}
}