org.milyn.edi.unedifact.d11b.DESADV.SegmentGroup11 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d11b.DESADV;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d11b.common.CPSConsignmentPackingSequence;
import java.util.List;
import org.milyn.edi.unedifact.d11b.common.FTXFreeText;
import org.milyn.edi.unedifact.d11b.common.QVRQuantityVariances;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup11 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private CPSConsignmentPackingSequence cPSConsignmentPackingSequence;
private List fTXFreeText;
private List qVRQuantityVariances;
private List segmentGroup12;
private List segmentGroup19;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(cPSConsignmentPackingSequence != null) {
nodeWriter.write("CPS");
nodeWriter.write(delimiters.getField());
cPSConsignmentPackingSequence.write(nodeWriter, delimiters);
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(qVRQuantityVariances != null && !qVRQuantityVariances.isEmpty()) {
for(QVRQuantityVariances qVRQuantityVariancesInst : qVRQuantityVariances) {
nodeWriter.write("QVR");
nodeWriter.write(delimiters.getField());
qVRQuantityVariancesInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup12 != null && !segmentGroup12.isEmpty()) {
for(SegmentGroup12 segmentGroup12Inst : segmentGroup12) {
segmentGroup12Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup19 != null && !segmentGroup19.isEmpty()) {
for(SegmentGroup19 segmentGroup19Inst : segmentGroup19) {
segmentGroup19Inst.write(nodeWriter, delimiters);
}
}
}
public CPSConsignmentPackingSequence getCPSConsignmentPackingSequence() {
return cPSConsignmentPackingSequence;
}
public SegmentGroup11 setCPSConsignmentPackingSequence(CPSConsignmentPackingSequence cPSConsignmentPackingSequence) {
this.cPSConsignmentPackingSequence = cPSConsignmentPackingSequence; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup11 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getQVRQuantityVariances() {
return qVRQuantityVariances;
}
public SegmentGroup11 setQVRQuantityVariances(List qVRQuantityVariances) {
this.qVRQuantityVariances = qVRQuantityVariances; return this;
}
public List getSegmentGroup12() {
return segmentGroup12;
}
public SegmentGroup11 setSegmentGroup12(List segmentGroup12) {
this.segmentGroup12 = segmentGroup12; return this;
}
public List getSegmentGroup19() {
return segmentGroup19;
}
public SegmentGroup11 setSegmentGroup19(List segmentGroup19) {
this.segmentGroup19 = segmentGroup19; return this;
}
}