org.milyn.edi.unedifact.d99a.IFTDGN.SegmentGroup10 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99a.IFTDGN;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99a.common.GIDGoodsItemDetails;
import java.util.List;
import org.milyn.edi.unedifact.d99a.common.FTXFreeText;
import org.milyn.edi.unedifact.d99a.common.PCIPackageIdentification;
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 GIDGoodsItemDetails gIDGoodsItemDetails;
private List fTXFreeText;
private PCIPackageIdentification pCIPackageIdentification;
private List segmentGroup11;
private SegmentGroup12 segmentGroup12;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(gIDGoodsItemDetails != null) {
nodeWriter.write("GID");
nodeWriter.write(delimiters.getField());
gIDGoodsItemDetails.write(nodeWriter, delimiters);
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(pCIPackageIdentification != null) {
nodeWriter.write("PCI");
nodeWriter.write(delimiters.getField());
pCIPackageIdentification.write(nodeWriter, delimiters);
}
if(segmentGroup11 != null && !segmentGroup11.isEmpty()) {
for(SegmentGroup11 segmentGroup11Inst : segmentGroup11) {
segmentGroup11Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup12 != null) {
segmentGroup12.write(nodeWriter, delimiters);
}
}
public GIDGoodsItemDetails getGIDGoodsItemDetails() {
return gIDGoodsItemDetails;
}
public SegmentGroup10 setGIDGoodsItemDetails(GIDGoodsItemDetails gIDGoodsItemDetails) {
this.gIDGoodsItemDetails = gIDGoodsItemDetails; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup10 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public PCIPackageIdentification getPCIPackageIdentification() {
return pCIPackageIdentification;
}
public SegmentGroup10 setPCIPackageIdentification(PCIPackageIdentification pCIPackageIdentification) {
this.pCIPackageIdentification = pCIPackageIdentification; 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;
}
}