org.milyn.edi.unedifact.d05a.DESADV.SegmentGroup21 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.DESADV;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.SplitGoodsPlacement;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.Quantity;
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 SplitGoodsPlacement splitGoodsPlacement;
private List quantity;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(splitGoodsPlacement != null) {
nodeWriter.write("SGP");
nodeWriter.write(delimiters.getField());
splitGoodsPlacement.write(nodeWriter, delimiters);
}
if(quantity != null && !quantity.isEmpty()) {
for(Quantity quantityInst : quantity) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
quantityInst.write(nodeWriter, delimiters);
}
}
}
public SplitGoodsPlacement getSplitGoodsPlacement() {
return splitGoodsPlacement;
}
public SegmentGroup21 setSplitGoodsPlacement(SplitGoodsPlacement splitGoodsPlacement) {
this.splitGoodsPlacement = splitGoodsPlacement; return this;
}
public List getQuantity() {
return quantity;
}
public SegmentGroup21 setQuantity(List quantity) {
this.quantity = quantity; return this;
}
}