org.milyn.edi.unedifact.d96a.IFTDGN.SegmentGroup10 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d96a.IFTDGN;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d96a.common.GoodsItemDetails;
import java.util.List;
import org.milyn.edi.unedifact.d96a.common.FreeText;
import org.milyn.edi.unedifact.d96a.common.PackageIdentification;
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 GoodsItemDetails goodsItemDetails;
private List freeText;
private PackageIdentification packageIdentification;
private List segmentGroup11;
private SegmentGroup12 segmentGroup12;
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 && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(packageIdentification != null) {
nodeWriter.write("PCI");
nodeWriter.write(delimiters.getField());
packageIdentification.write(nodeWriter, delimiters);
}
if(segmentGroup11 != null && !segmentGroup11.isEmpty()) {
for(SegmentGroup11 segmentGroup11Inst : segmentGroup11) {
segmentGroup11Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup12 != null) {
segmentGroup12.write(nodeWriter, delimiters);
}
}
public GoodsItemDetails getGoodsItemDetails() {
return goodsItemDetails;
}
public SegmentGroup10 setGoodsItemDetails(GoodsItemDetails goodsItemDetails) {
this.goodsItemDetails = goodsItemDetails; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup10 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public PackageIdentification getPackageIdentification() {
return packageIdentification;
}
public SegmentGroup10 setPackageIdentification(PackageIdentification packageIdentification) {
this.packageIdentification = packageIdentification; return this;
}
public List getSegmentGroup11() {
return segmentGroup11;
}
public SegmentGroup10 setSegmentGroup11(List segmentGroup11) {
this.segmentGroup11 = segmentGroup11; return this;
}
public SegmentGroup12 getSegmentGroup12() {
return segmentGroup12;
}
public SegmentGroup10 setSegmentGroup12(SegmentGroup12 segmentGroup12) {
this.segmentGroup12 = segmentGroup12; return this;
}
}