org.milyn.edi.unedifact.d99a.WASDIS.SegmentGroup6 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99a.WASDIS;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99a.common.DGSDangerousGoods;
import org.milyn.edi.unedifact.d99a.common.MEAMeasurements;
import java.util.List;
import org.milyn.edi.unedifact.d99a.common.SGPSplitGoodsPlacement;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup6 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private DGSDangerousGoods dGSDangerousGoods;
private MEAMeasurements mEAMeasurements;
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(mEAMeasurements != null) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
mEAMeasurements.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 SegmentGroup6 setDGSDangerousGoods(DGSDangerousGoods dGSDangerousGoods) {
this.dGSDangerousGoods = dGSDangerousGoods; return this;
}
public MEAMeasurements getMEAMeasurements() {
return mEAMeasurements;
}
public SegmentGroup6 setMEAMeasurements(MEAMeasurements mEAMeasurements) {
this.mEAMeasurements = mEAMeasurements; return this;
}
public List getSGPSplitGoodsPlacement() {
return sGPSplitGoodsPlacement;
}
public SegmentGroup6 setSGPSplitGoodsPlacement(List sGPSplitGoodsPlacement) {
this.sGPSplitGoodsPlacement = sGPSplitGoodsPlacement; return this;
}
}