org.milyn.edi.unedifact.d05a.IFCSUM.SegmentGroup66 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.IFCSUM;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.DGSDangerousGoods;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.FTXFreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup66 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private DGSDangerousGoods dGSDangerousGoods;
private List fTXFreeText;
private List segmentGroup67;
private List segmentGroup68;
private List segmentGroup69;
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(segmentGroup67 != null && !segmentGroup67.isEmpty()) {
for(SegmentGroup67 segmentGroup67Inst : segmentGroup67) {
segmentGroup67Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup68 != null && !segmentGroup68.isEmpty()) {
for(SegmentGroup68 segmentGroup68Inst : segmentGroup68) {
segmentGroup68Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup69 != null && !segmentGroup69.isEmpty()) {
for(SegmentGroup69 segmentGroup69Inst : segmentGroup69) {
segmentGroup69Inst.write(nodeWriter, delimiters);
}
}
}
public DGSDangerousGoods getDGSDangerousGoods() {
return dGSDangerousGoods;
}
public SegmentGroup66 setDGSDangerousGoods(DGSDangerousGoods dGSDangerousGoods) {
this.dGSDangerousGoods = dGSDangerousGoods; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup66 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getSegmentGroup67() {
return segmentGroup67;
}
public SegmentGroup66 setSegmentGroup67(List segmentGroup67) {
this.segmentGroup67 = segmentGroup67; return this;
}
public List getSegmentGroup68() {
return segmentGroup68;
}
public SegmentGroup66 setSegmentGroup68(List segmentGroup68) {
this.segmentGroup68 = segmentGroup68; return this;
}
public List getSegmentGroup69() {
return segmentGroup69;
}
public SegmentGroup66 setSegmentGroup69(List segmentGroup69) {
this.segmentGroup69 = segmentGroup69; return this;
}
}