org.milyn.edi.unedifact.d05a.COSTOR.SegmentGroup12 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.COSTOR;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.GIDGoodsItemDetails;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.HANHandlingInstructions;
import org.milyn.edi.unedifact.d05a.common.FTXFreeText;
import org.milyn.edi.unedifact.d05a.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d05a.common.MEAMeasurements;
import org.milyn.edi.unedifact.d05a.common.PCIPackageIdentification;
import org.milyn.edi.unedifact.d05a.common.DOCDocumentMessageDetails;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup12 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private GIDGoodsItemDetails gIDGoodsItemDetails;
private List hANHandlingInstructions;
private List segmentGroup13;
private List fTXFreeText;
private List dTMDateTimePeriod;
private List segmentGroup14;
private List mEAMeasurements;
private List pCIPackageIdentification;
private List dOCDocumentMessageDetails;
private List segmentGroup15;
private List segmentGroup16;
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(hANHandlingInstructions != null && !hANHandlingInstructions.isEmpty()) {
for(HANHandlingInstructions hANHandlingInstructionsInst : hANHandlingInstructions) {
nodeWriter.write("HAN");
nodeWriter.write(delimiters.getField());
hANHandlingInstructionsInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup13 != null && !segmentGroup13.isEmpty()) {
for(SegmentGroup13 segmentGroup13Inst : segmentGroup13) {
segmentGroup13Inst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup14 != null && !segmentGroup14.isEmpty()) {
for(SegmentGroup14 segmentGroup14Inst : segmentGroup14) {
segmentGroup14Inst.write(nodeWriter, delimiters);
}
}
if(mEAMeasurements != null && !mEAMeasurements.isEmpty()) {
for(MEAMeasurements mEAMeasurementsInst : mEAMeasurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
mEAMeasurementsInst.write(nodeWriter, delimiters);
}
}
if(pCIPackageIdentification != null && !pCIPackageIdentification.isEmpty()) {
for(PCIPackageIdentification pCIPackageIdentificationInst : pCIPackageIdentification) {
nodeWriter.write("PCI");
nodeWriter.write(delimiters.getField());
pCIPackageIdentificationInst.write(nodeWriter, delimiters);
}
}
if(dOCDocumentMessageDetails != null && !dOCDocumentMessageDetails.isEmpty()) {
for(DOCDocumentMessageDetails dOCDocumentMessageDetailsInst : dOCDocumentMessageDetails) {
nodeWriter.write("DOC");
nodeWriter.write(delimiters.getField());
dOCDocumentMessageDetailsInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup15 != null && !segmentGroup15.isEmpty()) {
for(SegmentGroup15 segmentGroup15Inst : segmentGroup15) {
segmentGroup15Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup16 != null && !segmentGroup16.isEmpty()) {
for(SegmentGroup16 segmentGroup16Inst : segmentGroup16) {
segmentGroup16Inst.write(nodeWriter, delimiters);
}
}
}
public GIDGoodsItemDetails getGIDGoodsItemDetails() {
return gIDGoodsItemDetails;
}
public SegmentGroup12 setGIDGoodsItemDetails(GIDGoodsItemDetails gIDGoodsItemDetails) {
this.gIDGoodsItemDetails = gIDGoodsItemDetails; return this;
}
public List getHANHandlingInstructions() {
return hANHandlingInstructions;
}
public SegmentGroup12 setHANHandlingInstructions(List hANHandlingInstructions) {
this.hANHandlingInstructions = hANHandlingInstructions; return this;
}
public List getSegmentGroup13() {
return segmentGroup13;
}
public SegmentGroup12 setSegmentGroup13(List segmentGroup13) {
this.segmentGroup13 = segmentGroup13; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup12 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup12 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getSegmentGroup14() {
return segmentGroup14;
}
public SegmentGroup12 setSegmentGroup14(List segmentGroup14) {
this.segmentGroup14 = segmentGroup14; return this;
}
public List getMEAMeasurements() {
return mEAMeasurements;
}
public SegmentGroup12 setMEAMeasurements(List mEAMeasurements) {
this.mEAMeasurements = mEAMeasurements; return this;
}
public List getPCIPackageIdentification() {
return pCIPackageIdentification;
}
public SegmentGroup12 setPCIPackageIdentification(List pCIPackageIdentification) {
this.pCIPackageIdentification = pCIPackageIdentification; return this;
}
public List getDOCDocumentMessageDetails() {
return dOCDocumentMessageDetails;
}
public SegmentGroup12 setDOCDocumentMessageDetails(List dOCDocumentMessageDetails) {
this.dOCDocumentMessageDetails = dOCDocumentMessageDetails; return this;
}
public List getSegmentGroup15() {
return segmentGroup15;
}
public SegmentGroup12 setSegmentGroup15(List segmentGroup15) {
this.segmentGroup15 = segmentGroup15; return this;
}
public List getSegmentGroup16() {
return segmentGroup16;
}
public SegmentGroup12 setSegmentGroup16(List segmentGroup16) {
this.segmentGroup16 = segmentGroup16; return this;
}
}