org.milyn.edi.unedifact.d02a.DESADV.SegmentGroup10 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.DESADV;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.CPSConsignmentPackingSequence;
import java.util.List;
import org.milyn.edi.unedifact.d02a.common.FTXFreeText;
import org.milyn.edi.unedifact.d02a.common.QVRQuantityVariances;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup10 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private CPSConsignmentPackingSequence cPSConsignmentPackingSequence;
private List fTXFreeText;
private List qVRQuantityVariances;
private List segmentGroup11;
private List segmentGroup17;
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(segmentGroup11 != null && !segmentGroup11.isEmpty()) {
for(SegmentGroup11 segmentGroup11Inst : segmentGroup11) {
segmentGroup11Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup17 != null && !segmentGroup17.isEmpty()) {
for(SegmentGroup17 segmentGroup17Inst : segmentGroup17) {
segmentGroup17Inst.write(nodeWriter, delimiters);
}
}
}
public CPSConsignmentPackingSequence getCPSConsignmentPackingSequence() {
return cPSConsignmentPackingSequence;
}
public SegmentGroup10 setCPSConsignmentPackingSequence(CPSConsignmentPackingSequence cPSConsignmentPackingSequence) {
this.cPSConsignmentPackingSequence = cPSConsignmentPackingSequence; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup10 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getQVRQuantityVariances() {
return qVRQuantityVariances;
}
public SegmentGroup10 setQVRQuantityVariances(List qVRQuantityVariances) {
this.qVRQuantityVariances = qVRQuantityVariances; return this;
}
public List getSegmentGroup11() {
return segmentGroup11;
}
public SegmentGroup10 setSegmentGroup11(List segmentGroup11) {
this.segmentGroup11 = segmentGroup11; return this;
}
public List getSegmentGroup17() {
return segmentGroup17;
}
public SegmentGroup10 setSegmentGroup17(List segmentGroup17) {
this.segmentGroup17 = segmentGroup17; return this;
}
}