org.milyn.edi.unedifact.d07a.IFCSUM.SegmentGroup56 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d07a.IFCSUM;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d07a.common.PCIPackageIdentification;
import org.milyn.edi.unedifact.d07a.common.RFFReference;
import org.milyn.edi.unedifact.d07a.common.DTMDateTimePeriod;
import java.util.List;
import org.milyn.edi.unedifact.d07a.common.GINGoodsIdentityNumber;
import org.milyn.edi.unedifact.d07a.common.MEAMeasurements;
import org.milyn.edi.unedifact.d07a.common.DIMDimensions;
import org.milyn.edi.unedifact.d07a.common.FTXFreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup56 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PCIPackageIdentification pCIPackageIdentification;
private RFFReference rFFReference;
private DTMDateTimePeriod dTMDateTimePeriod;
private List gINGoodsIdentityNumber;
private List mEAMeasurements;
private DIMDimensions dIMDimensions;
private List fTXFreeText;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(pCIPackageIdentification != null) {
nodeWriter.write("PCI");
nodeWriter.write(delimiters.getField());
pCIPackageIdentification.write(nodeWriter, delimiters);
}
if(rFFReference != null) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReference.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriod.write(nodeWriter, delimiters);
}
if(gINGoodsIdentityNumber != null && !gINGoodsIdentityNumber.isEmpty()) {
for(GINGoodsIdentityNumber gINGoodsIdentityNumberInst : gINGoodsIdentityNumber) {
nodeWriter.write("GIN");
nodeWriter.write(delimiters.getField());
gINGoodsIdentityNumberInst.write(nodeWriter, delimiters);
}
}
if(mEAMeasurements != null && !mEAMeasurements.isEmpty()) {
for(MEAMeasurements mEAMeasurementsInst : mEAMeasurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
mEAMeasurementsInst.write(nodeWriter, delimiters);
}
}
if(dIMDimensions != null) {
nodeWriter.write("DIM");
nodeWriter.write(delimiters.getField());
dIMDimensions.write(nodeWriter, delimiters);
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
}
public PCIPackageIdentification getPCIPackageIdentification() {
return pCIPackageIdentification;
}
public SegmentGroup56 setPCIPackageIdentification(PCIPackageIdentification pCIPackageIdentification) {
this.pCIPackageIdentification = pCIPackageIdentification; return this;
}
public RFFReference getRFFReference() {
return rFFReference;
}
public SegmentGroup56 setRFFReference(RFFReference rFFReference) {
this.rFFReference = rFFReference; return this;
}
public DTMDateTimePeriod getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup56 setDTMDateTimePeriod(DTMDateTimePeriod dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getGINGoodsIdentityNumber() {
return gINGoodsIdentityNumber;
}
public SegmentGroup56 setGINGoodsIdentityNumber(List gINGoodsIdentityNumber) {
this.gINGoodsIdentityNumber = gINGoodsIdentityNumber; return this;
}
public List getMEAMeasurements() {
return mEAMeasurements;
}
public SegmentGroup56 setMEAMeasurements(List mEAMeasurements) {
this.mEAMeasurements = mEAMeasurements; return this;
}
public DIMDimensions getDIMDimensions() {
return dIMDimensions;
}
public SegmentGroup56 setDIMDimensions(DIMDimensions dIMDimensions) {
this.dIMDimensions = dIMDimensions; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup56 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
}