org.milyn.edi.unedifact.d09b.GOVCBR.SegmentGroup215 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d09b.GOVCBR;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d09b.common.TMPTemperature;
import java.util.List;
import org.milyn.edi.unedifact.d09b.common.MEAMeasurements;
import org.milyn.edi.unedifact.d09b.common.DGSDangerousGoods;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup215 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private TMPTemperature tMPTemperature;
private List mEAMeasurements;
private List dGSDangerousGoods;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(tMPTemperature != null) {
nodeWriter.write("TMP");
nodeWriter.write(delimiters.getField());
tMPTemperature.write(nodeWriter, delimiters);
}
if(mEAMeasurements != null && !mEAMeasurements.isEmpty()) {
for(MEAMeasurements mEAMeasurementsInst : mEAMeasurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
mEAMeasurementsInst.write(nodeWriter, delimiters);
}
}
if(dGSDangerousGoods != null && !dGSDangerousGoods.isEmpty()) {
for(DGSDangerousGoods dGSDangerousGoodsInst : dGSDangerousGoods) {
nodeWriter.write("DGS");
nodeWriter.write(delimiters.getField());
dGSDangerousGoodsInst.write(nodeWriter, delimiters);
}
}
}
public TMPTemperature getTMPTemperature() {
return tMPTemperature;
}
public SegmentGroup215 setTMPTemperature(TMPTemperature tMPTemperature) {
this.tMPTemperature = tMPTemperature; return this;
}
public List getMEAMeasurements() {
return mEAMeasurements;
}
public SegmentGroup215 setMEAMeasurements(List mEAMeasurements) {
this.mEAMeasurements = mEAMeasurements; return this;
}
public List getDGSDangerousGoods() {
return dGSDangerousGoods;
}
public SegmentGroup215 setDGSDangerousGoods(List dGSDangerousGoods) {
this.dGSDangerousGoods = dGSDangerousGoods; return this;
}
}