org.milyn.edi.unedifact.d05a.ORDCHG.SegmentGroup17 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.ORDCHG;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.SCCSchedulingConditions;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.FTXFreeText;
import org.milyn.edi.unedifact.d05a.common.RFFReference;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup17 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private SCCSchedulingConditions sCCSchedulingConditions;
private List fTXFreeText;
private List rFFReference;
private List segmentGroup18;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(sCCSchedulingConditions != null) {
nodeWriter.write("SCC");
nodeWriter.write(delimiters.getField());
sCCSchedulingConditions.write(nodeWriter, delimiters);
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(rFFReference != null && !rFFReference.isEmpty()) {
for(RFFReference rFFReferenceInst : rFFReference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReferenceInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup18 != null && !segmentGroup18.isEmpty()) {
for(SegmentGroup18 segmentGroup18Inst : segmentGroup18) {
segmentGroup18Inst.write(nodeWriter, delimiters);
}
}
}
public SCCSchedulingConditions getSCCSchedulingConditions() {
return sCCSchedulingConditions;
}
public SegmentGroup17 setSCCSchedulingConditions(SCCSchedulingConditions sCCSchedulingConditions) {
this.sCCSchedulingConditions = sCCSchedulingConditions; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup17 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getRFFReference() {
return rFFReference;
}
public SegmentGroup17 setRFFReference(List rFFReference) {
this.rFFReference = rFFReference; return this;
}
public List getSegmentGroup18() {
return segmentGroup18;
}
public SegmentGroup17 setSegmentGroup18(List segmentGroup18) {
this.segmentGroup18 = segmentGroup18; return this;
}
}