org.milyn.edi.unedifact.d02a.BERMAN.SegmentGroup9 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.BERMAN;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.GDSNatureOfCargo;
import java.util.List;
import org.milyn.edi.unedifact.d02a.common.FTXFreeText;
import org.milyn.edi.unedifact.d02a.common.MEAMeasurements;
import org.milyn.edi.unedifact.d02a.common.EQNNumberOfUnits;
import org.milyn.edi.unedifact.d02a.common.DGSDangerousGoods;
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 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 SegmentGroup9 setGDSNatureOfCargo(GDSNatureOfCargo gDSNatureOfCargo) {
this.gDSNatureOfCargo = gDSNatureOfCargo; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup9 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getMEAMeasurements() {
return mEAMeasurements;
}
public SegmentGroup9 setMEAMeasurements(List mEAMeasurements) {
this.mEAMeasurements = mEAMeasurements; return this;
}
public List getEQNNumberOfUnits() {
return eQNNumberOfUnits;
}
public SegmentGroup9 setEQNNumberOfUnits(List eQNNumberOfUnits) {
this.eQNNumberOfUnits = eQNNumberOfUnits; return this;
}
public List getDGSDangerousGoods() {
return dGSDangerousGoods;
}
public SegmentGroup9 setDGSDangerousGoods(List dGSDangerousGoods) {
this.dGSDangerousGoods = dGSDangerousGoods; return this;
}
}