org.milyn.edi.unedifact.d05b.COPARN.SegmentGroup9 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05b.COPARN;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05b.common.SGPSplitGoodsPlacement;
import java.util.List;
import org.milyn.edi.unedifact.d05b.common.MEAMeasurements;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup9 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private SGPSplitGoodsPlacement sGPSplitGoodsPlacement;
private List mEAMeasurements;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(sGPSplitGoodsPlacement != null) {
nodeWriter.write("SGP");
nodeWriter.write(delimiters.getField());
sGPSplitGoodsPlacement.write(nodeWriter, delimiters);
}
if(mEAMeasurements != null && !mEAMeasurements.isEmpty()) {
for(MEAMeasurements mEAMeasurementsInst : mEAMeasurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
mEAMeasurementsInst.write(nodeWriter, delimiters);
}
}
}
public SGPSplitGoodsPlacement getSGPSplitGoodsPlacement() {
return sGPSplitGoodsPlacement;
}
public SegmentGroup9 setSGPSplitGoodsPlacement(SGPSplitGoodsPlacement sGPSplitGoodsPlacement) {
this.sGPSplitGoodsPlacement = sGPSplitGoodsPlacement; return this;
}
public List getMEAMeasurements() {
return mEAMeasurements;
}
public SegmentGroup9 setMEAMeasurements(List mEAMeasurements) {
this.mEAMeasurements = mEAMeasurements; return this;
}
}