org.milyn.edi.unedifact.d99b.COARRI.SegmentGroup6 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.COARRI;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.EQDEquipmentDetails;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.RFFReference;
import org.milyn.edi.unedifact.d99b.common.GDSNatureOfCargo;
import org.milyn.edi.unedifact.d99b.common.TMDTransportMovementDetails;
import org.milyn.edi.unedifact.d99b.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d99b.common.MEAMeasurements;
import org.milyn.edi.unedifact.d99b.common.DIMDimensions;
import org.milyn.edi.unedifact.d99b.common.TMPTemperature;
import org.milyn.edi.unedifact.d99b.common.RNGRangeDetails;
import org.milyn.edi.unedifact.d99b.common.SELSealNumber;
import org.milyn.edi.unedifact.d99b.common.FTXFreeText;
import org.milyn.edi.unedifact.d99b.common.PCDPercentageDetails;
import org.milyn.edi.unedifact.d99b.common.EQAAttachedEquipment;
import org.milyn.edi.unedifact.d99b.common.PIAAdditionalProductId;
import org.milyn.edi.unedifact.d99b.common.CODComponentDetails;
import org.milyn.edi.unedifact.d99b.common.HANHandlingInstructions;
import org.milyn.edi.unedifact.d99b.common.NADNameAndAddress;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup6 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private EQDEquipmentDetails eQDEquipmentDetails;
private List rFFReference;
private List gDSNatureOfCargo;
private List tMDTransportMovementDetails;
private List dTMDateTimePeriod;
private List segmentGroup7;
private List mEAMeasurements;
private List dIMDimensions;
private List tMPTemperature;
private List rNGRangeDetails;
private List sELSealNumber;
private List fTXFreeText;
private List pCDPercentageDetails;
private List segmentGroup8;
private List eQAAttachedEquipment;
private List pIAAdditionalProductId;
private CODComponentDetails cODComponentDetails;
private List hANHandlingInstructions;
private List segmentGroup10;
private SegmentGroup11 segmentGroup11;
private List nADNameAndAddress;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(eQDEquipmentDetails != null) {
nodeWriter.write("EQD");
nodeWriter.write(delimiters.getField());
eQDEquipmentDetails.write(nodeWriter, delimiters);
}
if(rFFReference != null && !rFFReference.isEmpty()) {
for(RFFReference rFFReferenceInst : rFFReference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReferenceInst.write(nodeWriter, delimiters);
}
}
if(gDSNatureOfCargo != null && !gDSNatureOfCargo.isEmpty()) {
for(GDSNatureOfCargo gDSNatureOfCargoInst : gDSNatureOfCargo) {
nodeWriter.write("GDS");
nodeWriter.write(delimiters.getField());
gDSNatureOfCargoInst.write(nodeWriter, delimiters);
}
}
if(tMDTransportMovementDetails != null && !tMDTransportMovementDetails.isEmpty()) {
for(TMDTransportMovementDetails tMDTransportMovementDetailsInst : tMDTransportMovementDetails) {
nodeWriter.write("TMD");
nodeWriter.write(delimiters.getField());
tMDTransportMovementDetailsInst.write(nodeWriter, delimiters);
}
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
segmentGroup7Inst.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 && !dIMDimensions.isEmpty()) {
for(DIMDimensions dIMDimensionsInst : dIMDimensions) {
nodeWriter.write("DIM");
nodeWriter.write(delimiters.getField());
dIMDimensionsInst.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(sELSealNumber != null && !sELSealNumber.isEmpty()) {
for(SELSealNumber sELSealNumberInst : sELSealNumber) {
nodeWriter.write("SEL");
nodeWriter.write(delimiters.getField());
sELSealNumberInst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(pCDPercentageDetails != null && !pCDPercentageDetails.isEmpty()) {
for(PCDPercentageDetails pCDPercentageDetailsInst : pCDPercentageDetails) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
pCDPercentageDetailsInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
segmentGroup8Inst.write(nodeWriter, delimiters);
}
}
if(eQAAttachedEquipment != null && !eQAAttachedEquipment.isEmpty()) {
for(EQAAttachedEquipment eQAAttachedEquipmentInst : eQAAttachedEquipment) {
nodeWriter.write("EQA");
nodeWriter.write(delimiters.getField());
eQAAttachedEquipmentInst.write(nodeWriter, delimiters);
}
}
if(pIAAdditionalProductId != null && !pIAAdditionalProductId.isEmpty()) {
for(PIAAdditionalProductId pIAAdditionalProductIdInst : pIAAdditionalProductId) {
nodeWriter.write("PIA");
nodeWriter.write(delimiters.getField());
pIAAdditionalProductIdInst.write(nodeWriter, delimiters);
}
}
if(cODComponentDetails != null) {
nodeWriter.write("COD");
nodeWriter.write(delimiters.getField());
cODComponentDetails.write(nodeWriter, delimiters);
}
if(hANHandlingInstructions != null && !hANHandlingInstructions.isEmpty()) {
for(HANHandlingInstructions hANHandlingInstructionsInst : hANHandlingInstructions) {
nodeWriter.write("HAN");
nodeWriter.write(delimiters.getField());
hANHandlingInstructionsInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
segmentGroup10Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup11 != null) {
segmentGroup11.write(nodeWriter, delimiters);
}
if(nADNameAndAddress != null && !nADNameAndAddress.isEmpty()) {
for(NADNameAndAddress nADNameAndAddressInst : nADNameAndAddress) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nADNameAndAddressInst.write(nodeWriter, delimiters);
}
}
}
public EQDEquipmentDetails getEQDEquipmentDetails() {
return eQDEquipmentDetails;
}
public SegmentGroup6 setEQDEquipmentDetails(EQDEquipmentDetails eQDEquipmentDetails) {
this.eQDEquipmentDetails = eQDEquipmentDetails; return this;
}
public List getRFFReference() {
return rFFReference;
}
public SegmentGroup6 setRFFReference(List rFFReference) {
this.rFFReference = rFFReference; return this;
}
public List getGDSNatureOfCargo() {
return gDSNatureOfCargo;
}
public SegmentGroup6 setGDSNatureOfCargo(List gDSNatureOfCargo) {
this.gDSNatureOfCargo = gDSNatureOfCargo; return this;
}
public List getTMDTransportMovementDetails() {
return tMDTransportMovementDetails;
}
public SegmentGroup6 setTMDTransportMovementDetails(List tMDTransportMovementDetails) {
this.tMDTransportMovementDetails = tMDTransportMovementDetails; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup6 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getSegmentGroup7() {
return segmentGroup7;
}
public SegmentGroup6 setSegmentGroup7(List segmentGroup7) {
this.segmentGroup7 = segmentGroup7; return this;
}
public List getMEAMeasurements() {
return mEAMeasurements;
}
public SegmentGroup6 setMEAMeasurements(List mEAMeasurements) {
this.mEAMeasurements = mEAMeasurements; return this;
}
public List getDIMDimensions() {
return dIMDimensions;
}
public SegmentGroup6 setDIMDimensions(List dIMDimensions) {
this.dIMDimensions = dIMDimensions; return this;
}
public List getTMPTemperature() {
return tMPTemperature;
}
public SegmentGroup6 setTMPTemperature(List tMPTemperature) {
this.tMPTemperature = tMPTemperature; return this;
}
public List getRNGRangeDetails() {
return rNGRangeDetails;
}
public SegmentGroup6 setRNGRangeDetails(List rNGRangeDetails) {
this.rNGRangeDetails = rNGRangeDetails; return this;
}
public List getSELSealNumber() {
return sELSealNumber;
}
public SegmentGroup6 setSELSealNumber(List sELSealNumber) {
this.sELSealNumber = sELSealNumber; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup6 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getPCDPercentageDetails() {
return pCDPercentageDetails;
}
public SegmentGroup6 setPCDPercentageDetails(List pCDPercentageDetails) {
this.pCDPercentageDetails = pCDPercentageDetails; return this;
}
public List getSegmentGroup8() {
return segmentGroup8;
}
public SegmentGroup6 setSegmentGroup8(List segmentGroup8) {
this.segmentGroup8 = segmentGroup8; return this;
}
public List getEQAAttachedEquipment() {
return eQAAttachedEquipment;
}
public SegmentGroup6 setEQAAttachedEquipment(List eQAAttachedEquipment) {
this.eQAAttachedEquipment = eQAAttachedEquipment; return this;
}
public List getPIAAdditionalProductId() {
return pIAAdditionalProductId;
}
public SegmentGroup6 setPIAAdditionalProductId(List pIAAdditionalProductId) {
this.pIAAdditionalProductId = pIAAdditionalProductId; return this;
}
public CODComponentDetails getCODComponentDetails() {
return cODComponentDetails;
}
public SegmentGroup6 setCODComponentDetails(CODComponentDetails cODComponentDetails) {
this.cODComponentDetails = cODComponentDetails; return this;
}
public List getHANHandlingInstructions() {
return hANHandlingInstructions;
}
public SegmentGroup6 setHANHandlingInstructions(List hANHandlingInstructions) {
this.hANHandlingInstructions = hANHandlingInstructions; return this;
}
public List getSegmentGroup10() {
return segmentGroup10;
}
public SegmentGroup6 setSegmentGroup10(List segmentGroup10) {
this.segmentGroup10 = segmentGroup10; return this;
}
public SegmentGroup11 getSegmentGroup11() {
return segmentGroup11;
}
public SegmentGroup6 setSegmentGroup11(SegmentGroup11 segmentGroup11) {
this.segmentGroup11 = segmentGroup11; return this;
}
public List getNADNameAndAddress() {
return nADNameAndAddress;
}
public SegmentGroup6 setNADNameAndAddress(List nADNameAndAddress) {
this.nADNameAndAddress = nADNameAndAddress; return this;
}
}