org.milyn.edi.unedifact.d95b.IFTDGN.SegmentGroup5 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d95b.IFTDGN;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d95b.common.GIDGoodsItemDetails;
import java.util.List;
import org.milyn.edi.unedifact.d95b.common.FTXFreeText;
import org.milyn.edi.unedifact.d95b.common.PCIPackageIdentification;
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 GIDGoodsItemDetails gIDGoodsItemDetails;
private List fTXFreeText;
private PCIPackageIdentification pCIPackageIdentification;
private SegmentGroup6 segmentGroup6;
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(segmentGroup6 != null) {
segmentGroup6.write(nodeWriter, delimiters);
}
}
public GIDGoodsItemDetails getGIDGoodsItemDetails() {
return gIDGoodsItemDetails;
}
public SegmentGroup5 setGIDGoodsItemDetails(GIDGoodsItemDetails gIDGoodsItemDetails) {
this.gIDGoodsItemDetails = gIDGoodsItemDetails; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup5 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public PCIPackageIdentification getPCIPackageIdentification() {
return pCIPackageIdentification;
}
public SegmentGroup5 setPCIPackageIdentification(PCIPackageIdentification pCIPackageIdentification) {
this.pCIPackageIdentification = pCIPackageIdentification; return this;
}
public SegmentGroup6 getSegmentGroup6() {
return segmentGroup6;
}
public SegmentGroup5 setSegmentGroup6(SegmentGroup6 segmentGroup6) {
this.segmentGroup6 = segmentGroup6; return this;
}
}