org.milyn.edi.unedifact.d11b.BERMAN.SegmentGroup10 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d11b.BERMAN;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d11b.common.GDSNatureOfCargo;
import java.util.List;
import org.milyn.edi.unedifact.d11b.common.FTXFreeText;
import org.milyn.edi.unedifact.d11b.common.MEAMeasurements;
import org.milyn.edi.unedifact.d11b.common.EQNNumberOfUnits;
import org.milyn.edi.unedifact.d11b.common.DGSDangerousGoods;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup10 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private GDSNatureOfCargo gDSNatureOfCargo;
private List fTXFreeText;
private List mEAMeasurements;
private List eQNNumberOfUnits;
private List dGSDangerousGoods;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(gDSNatureOfCargo != null) {
nodeWriter.write("GDS");
nodeWriter.write(delimiters.getField());
gDSNatureOfCargo.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 && !mEAMeasurements.isEmpty()) {
for(MEAMeasurements mEAMeasurementsInst : mEAMeasurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
mEAMeasurementsInst.write(nodeWriter, delimiters);
}
}
if(eQNNumberOfUnits != null && !eQNNumberOfUnits.isEmpty()) {
for(EQNNumberOfUnits eQNNumberOfUnitsInst : eQNNumberOfUnits) {
nodeWriter.write("EQN");
nodeWriter.write(delimiters.getField());
eQNNumberOfUnitsInst.write(nodeWriter, delimiters);
}
}
if(dGSDangerousGoods != null && !dGSDangerousGoods.isEmpty()) {
for(DGSDangerousGoods dGSDangerousGoodsInst : dGSDangerousGoods) {
nodeWriter.write("DGS");
nodeWriter.write(delimiters.getField());
dGSDangerousGoodsInst.write(nodeWriter, delimiters);
}
}
}
public GDSNatureOfCargo getGDSNatureOfCargo() {
return gDSNatureOfCargo;
}
public SegmentGroup10 setGDSNatureOfCargo(GDSNatureOfCargo gDSNatureOfCargo) {
this.gDSNatureOfCargo = gDSNatureOfCargo; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup10 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getMEAMeasurements() {
return mEAMeasurements;
}
public SegmentGroup10 setMEAMeasurements(List mEAMeasurements) {
this.mEAMeasurements = mEAMeasurements; return this;
}
public List getEQNNumberOfUnits() {
return eQNNumberOfUnits;
}
public SegmentGroup10 setEQNNumberOfUnits(List eQNNumberOfUnits) {
this.eQNNumberOfUnits = eQNNumberOfUnits; return this;
}
public List getDGSDangerousGoods() {
return dGSDangerousGoods;
}
public SegmentGroup10 setDGSDangerousGoods(List dGSDangerousGoods) {
this.dGSDangerousGoods = dGSDangerousGoods; return this;
}
}