org.milyn.edi.unedifact.d13a.IFTMAN.SegmentGroup31 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d13a.IFTMAN;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d13a.common.DGSDangerousGoods;
import java.util.List;
import org.milyn.edi.unedifact.d13a.common.FTXFreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup31 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private DGSDangerousGoods dGSDangerousGoods;
private List fTXFreeText;
private List segmentGroup32;
private List segmentGroup33;
private List segmentGroup34;
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(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup32 != null && !segmentGroup32.isEmpty()) {
for(SegmentGroup32 segmentGroup32Inst : segmentGroup32) {
segmentGroup32Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup33 != null && !segmentGroup33.isEmpty()) {
for(SegmentGroup33 segmentGroup33Inst : segmentGroup33) {
segmentGroup33Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup34 != null && !segmentGroup34.isEmpty()) {
for(SegmentGroup34 segmentGroup34Inst : segmentGroup34) {
segmentGroup34Inst.write(nodeWriter, delimiters);
}
}
}
public DGSDangerousGoods getDGSDangerousGoods() {
return dGSDangerousGoods;
}
public SegmentGroup31 setDGSDangerousGoods(DGSDangerousGoods dGSDangerousGoods) {
this.dGSDangerousGoods = dGSDangerousGoods; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup31 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getSegmentGroup32() {
return segmentGroup32;
}
public SegmentGroup31 setSegmentGroup32(List segmentGroup32) {
this.segmentGroup32 = segmentGroup32; return this;
}
public List getSegmentGroup33() {
return segmentGroup33;
}
public SegmentGroup31 setSegmentGroup33(List segmentGroup33) {
this.segmentGroup33 = segmentGroup33; return this;
}
public List getSegmentGroup34() {
return segmentGroup34;
}
public SegmentGroup31 setSegmentGroup34(List segmentGroup34) {
this.segmentGroup34 = segmentGroup34; return this;
}
}