org.milyn.edi.unedifact.d98a.CODENO.SegmentGroup5 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.CODENO;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d98a.common.GoodsItemDetails;
import java.util.List;
import org.milyn.edi.unedifact.d98a.common.SplitGoodsPlacement;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup5 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private GoodsItemDetails goodsItemDetails;
private List segmentGroup6;
private List splitGoodsPlacement;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(goodsItemDetails != null) {
nodeWriter.write("GID");
nodeWriter.write(delimiters.getField());
goodsItemDetails.write(nodeWriter, delimiters);
}
if(segmentGroup6 != null && !segmentGroup6.isEmpty()) {
for(SegmentGroup6 segmentGroup6Inst : segmentGroup6) {
segmentGroup6Inst.write(nodeWriter, delimiters);
}
}
if(splitGoodsPlacement != null && !splitGoodsPlacement.isEmpty()) {
for(SplitGoodsPlacement splitGoodsPlacementInst : splitGoodsPlacement) {
nodeWriter.write("SGP");
nodeWriter.write(delimiters.getField());
splitGoodsPlacementInst.write(nodeWriter, delimiters);
}
}
}
public GoodsItemDetails getGoodsItemDetails() {
return goodsItemDetails;
}
public SegmentGroup5 setGoodsItemDetails(GoodsItemDetails goodsItemDetails) {
this.goodsItemDetails = goodsItemDetails; return this;
}
public List getSegmentGroup6() {
return segmentGroup6;
}
public SegmentGroup5 setSegmentGroup6(List segmentGroup6) {
this.segmentGroup6 = segmentGroup6; return this;
}
public List getSplitGoodsPlacement() {
return splitGoodsPlacement;
}
public SegmentGroup5 setSplitGoodsPlacement(List splitGoodsPlacement) {
this.splitGoodsPlacement = splitGoodsPlacement; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy