org.milyn.edi.unedifact.d99b.COSTOR.SegmentGroup9 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.COSTOR;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.GIDGoodsItemDetails;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.HANHandlingInstructions;
import org.milyn.edi.unedifact.d99b.common.TMPTemperature;
import org.milyn.edi.unedifact.d99b.common.RNGRangeDetails;
import org.milyn.edi.unedifact.d99b.common.FTXFreeText;
import org.milyn.edi.unedifact.d99b.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d99b.common.MEAMeasurements;
import org.milyn.edi.unedifact.d99b.common.PCIPackageIdentification;
import org.milyn.edi.unedifact.d99b.common.DOCDocumentMessageDetails;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup9 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private GIDGoodsItemDetails gIDGoodsItemDetails;
private List hANHandlingInstructions;
private List tMPTemperature;
private List rNGRangeDetails;
private List fTXFreeText;
private List dTMDateTimePeriod;
private List segmentGroup10;
private List mEAMeasurements;
private List pCIPackageIdentification;
private List dOCDocumentMessageDetails;
private List segmentGroup11;
private List 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(hANHandlingInstructions != null && !hANHandlingInstructions.isEmpty()) {
for(HANHandlingInstructions hANHandlingInstructionsInst : hANHandlingInstructions) {
nodeWriter.write("HAN");
nodeWriter.write(delimiters.getField());
hANHandlingInstructionsInst.write(nodeWriter, delimiters);
}
}
if(tMPTemperature != null && !tMPTemperature.isEmpty()) {
for(TMPTemperature tMPTemperatureInst : tMPTemperature) {
nodeWriter.write("TMP");
nodeWriter.write(delimiters.getField());
tMPTemperatureInst.write(nodeWriter, delimiters);
}
}
if(rNGRangeDetails != null && !rNGRangeDetails.isEmpty()) {
for(RNGRangeDetails rNGRangeDetailsInst : rNGRangeDetails) {
nodeWriter.write("RNG");
nodeWriter.write(delimiters.getField());
rNGRangeDetailsInst.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(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
segmentGroup10Inst.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(segmentGroup11 != null && !segmentGroup11.isEmpty()) {
for(SegmentGroup11 segmentGroup11Inst : segmentGroup11) {
segmentGroup11Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup12 != null && !segmentGroup12.isEmpty()) {
for(SegmentGroup12 segmentGroup12Inst : segmentGroup12) {
segmentGroup12Inst.write(nodeWriter, delimiters);
}
}
}
public GIDGoodsItemDetails getGIDGoodsItemDetails() {
return gIDGoodsItemDetails;
}
public SegmentGroup9 setGIDGoodsItemDetails(GIDGoodsItemDetails gIDGoodsItemDetails) {
this.gIDGoodsItemDetails = gIDGoodsItemDetails; return this;
}
public List getHANHandlingInstructions() {
return hANHandlingInstructions;
}
public SegmentGroup9 setHANHandlingInstructions(List hANHandlingInstructions) {
this.hANHandlingInstructions = hANHandlingInstructions; return this;
}
public List getTMPTemperature() {
return tMPTemperature;
}
public SegmentGroup9 setTMPTemperature(List tMPTemperature) {
this.tMPTemperature = tMPTemperature; return this;
}
public List getRNGRangeDetails() {
return rNGRangeDetails;
}
public SegmentGroup9 setRNGRangeDetails(List rNGRangeDetails) {
this.rNGRangeDetails = rNGRangeDetails; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup9 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup9 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getSegmentGroup10() {
return segmentGroup10;
}
public SegmentGroup9 setSegmentGroup10(List segmentGroup10) {
this.segmentGroup10 = segmentGroup10; return this;
}
public List getMEAMeasurements() {
return mEAMeasurements;
}
public SegmentGroup9 setMEAMeasurements(List mEAMeasurements) {
this.mEAMeasurements = mEAMeasurements; return this;
}
public List getPCIPackageIdentification() {
return pCIPackageIdentification;
}
public SegmentGroup9 setPCIPackageIdentification(List pCIPackageIdentification) {
this.pCIPackageIdentification = pCIPackageIdentification; return this;
}
public List getDOCDocumentMessageDetails() {
return dOCDocumentMessageDetails;
}
public SegmentGroup9 setDOCDocumentMessageDetails(List dOCDocumentMessageDetails) {
this.dOCDocumentMessageDetails = dOCDocumentMessageDetails; return this;
}
public List getSegmentGroup11() {
return segmentGroup11;
}
public SegmentGroup9 setSegmentGroup11(List segmentGroup11) {
this.segmentGroup11 = segmentGroup11; return this;
}
public List getSegmentGroup12() {
return segmentGroup12;
}
public SegmentGroup9 setSegmentGroup12(List segmentGroup12) {
this.segmentGroup12 = segmentGroup12; return this;
}
}