org.milyn.edi.unedifact.d98a.IFTSTQ.SegmentGroup7 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.IFTSTQ;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d98a.common.GoodsItemDetails;
import org.milyn.edi.unedifact.d98a.common.FreeText;
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 SegmentGroup7 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private GoodsItemDetails goodsItemDetails;
private FreeText freeText;
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(freeText != null) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeText.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 SegmentGroup7 setGoodsItemDetails(GoodsItemDetails goodsItemDetails) {
this.goodsItemDetails = goodsItemDetails; return this;
}
public FreeText getFreeText() {
return freeText;
}
public SegmentGroup7 setFreeText(FreeText freeText) {
this.freeText = freeText; return this;
}
public List getSplitGoodsPlacement() {
return splitGoodsPlacement;
}
public SegmentGroup7 setSplitGoodsPlacement(List splitGoodsPlacement) {
this.splitGoodsPlacement = splitGoodsPlacement; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy