org.milyn.edi.unedifact.d99b.IFTMBF.SegmentGroup27 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.IFTMBF;
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 SegmentGroup27 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private DangerousGoods dangerousGoods;
private List freeText;
private List segmentGroup28;
private List segmentGroup29;
private List segmentGroup30;
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(segmentGroup28 != null && !segmentGroup28.isEmpty()) {
for(SegmentGroup28 segmentGroup28Inst : segmentGroup28) {
segmentGroup28Inst.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);
}
}
}
public DangerousGoods getDangerousGoods() {
return dangerousGoods;
}
public SegmentGroup27 setDangerousGoods(DangerousGoods dangerousGoods) {
this.dangerousGoods = dangerousGoods; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup27 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getSegmentGroup28() {
return segmentGroup28;
}
public SegmentGroup27 setSegmentGroup28(List segmentGroup28) {
this.segmentGroup28 = segmentGroup28; return this;
}
public List getSegmentGroup29() {
return segmentGroup29;
}
public SegmentGroup27 setSegmentGroup29(List segmentGroup29) {
this.segmentGroup29 = segmentGroup29; return this;
}
public List getSegmentGroup30() {
return segmentGroup30;
}
public SegmentGroup27 setSegmentGroup30(List segmentGroup30) {
this.segmentGroup30 = segmentGroup30; return this;
}
}