org.milyn.edi.unedifact.d99b.IFCSUM.SegmentGroup65 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.IFCSUM;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.DangerousGoods;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.FreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup65 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private DangerousGoods dangerousGoods;
private List freeText;
private List segmentGroup66;
private List segmentGroup67;
private List segmentGroup68;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(dangerousGoods != null) {
nodeWriter.write("DGS");
nodeWriter.write(delimiters.getField());
dangerousGoods.write(nodeWriter, delimiters);
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup66 != null && !segmentGroup66.isEmpty()) {
for(SegmentGroup66 segmentGroup66Inst : segmentGroup66) {
segmentGroup66Inst.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);
}
}
}
public DangerousGoods getDangerousGoods() {
return dangerousGoods;
}
public SegmentGroup65 setDangerousGoods(DangerousGoods dangerousGoods) {
this.dangerousGoods = dangerousGoods; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup65 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getSegmentGroup66() {
return segmentGroup66;
}
public SegmentGroup65 setSegmentGroup66(List segmentGroup66) {
this.segmentGroup66 = segmentGroup66; return this;
}
public List getSegmentGroup67() {
return segmentGroup67;
}
public SegmentGroup65 setSegmentGroup67(List segmentGroup67) {
this.segmentGroup67 = segmentGroup67; return this;
}
public List getSegmentGroup68() {
return segmentGroup68;
}
public SegmentGroup65 setSegmentGroup68(List segmentGroup68) {
this.segmentGroup68 = segmentGroup68; return this;
}
}