org.milyn.edi.unedifact.d94a.IFTMIN.SegmentGroup28 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d94a.IFTMIN;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d94a.common.DGSDangerousGoods;
import java.util.List;
import org.milyn.edi.unedifact.d94a.common.FTXFreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup28 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private DGSDangerousGoods dGSDangerousGoods;
private List fTXFreeText;
private List segmentGroup29;
private List segmentGroup30;
private List segmentGroup31;
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(segmentGroup29 != null && !segmentGroup29.isEmpty()) {
for(SegmentGroup29 segmentGroup29Inst : segmentGroup29) {
segmentGroup29Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup30 != null && !segmentGroup30.isEmpty()) {
for(SegmentGroup30 segmentGroup30Inst : segmentGroup30) {
segmentGroup30Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup31 != null && !segmentGroup31.isEmpty()) {
for(SegmentGroup31 segmentGroup31Inst : segmentGroup31) {
segmentGroup31Inst.write(nodeWriter, delimiters);
}
}
}
public DGSDangerousGoods getDGSDangerousGoods() {
return dGSDangerousGoods;
}
public SegmentGroup28 setDGSDangerousGoods(DGSDangerousGoods dGSDangerousGoods) {
this.dGSDangerousGoods = dGSDangerousGoods; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup28 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getSegmentGroup29() {
return segmentGroup29;
}
public SegmentGroup28 setSegmentGroup29(List segmentGroup29) {
this.segmentGroup29 = segmentGroup29; return this;
}
public List getSegmentGroup30() {
return segmentGroup30;
}
public SegmentGroup28 setSegmentGroup30(List segmentGroup30) {
this.segmentGroup30 = segmentGroup30; return this;
}
public List getSegmentGroup31() {
return segmentGroup31;
}
public SegmentGroup28 setSegmentGroup31(List segmentGroup31) {
this.segmentGroup31 = segmentGroup31; return this;
}
}