org.milyn.edi.unedifact.d07a.DESADV.SegmentGroup21 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d07a.DESADV;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d07a.common.SGPSplitGoodsPlacement;
import java.util.List;
import org.milyn.edi.unedifact.d07a.common.QTYQuantity;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup21 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private SGPSplitGoodsPlacement sGPSplitGoodsPlacement;
private List qTYQuantity;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(sGPSplitGoodsPlacement != null) {
nodeWriter.write("SGP");
nodeWriter.write(delimiters.getField());
sGPSplitGoodsPlacement.write(nodeWriter, delimiters);
}
if(qTYQuantity != null && !qTYQuantity.isEmpty()) {
for(QTYQuantity qTYQuantityInst : qTYQuantity) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
qTYQuantityInst.write(nodeWriter, delimiters);
}
}
}
public SGPSplitGoodsPlacement getSGPSplitGoodsPlacement() {
return sGPSplitGoodsPlacement;
}
public SegmentGroup21 setSGPSplitGoodsPlacement(SGPSplitGoodsPlacement sGPSplitGoodsPlacement) {
this.sGPSplitGoodsPlacement = sGPSplitGoodsPlacement; return this;
}
public List getQTYQuantity() {
return qTYQuantity;
}
public SegmentGroup21 setQTYQuantity(List qTYQuantity) {
this.qTYQuantity = qTYQuantity; return this;
}
}