org.milyn.edi.unedifact.d05a.CUSDEC.SegmentGroup30 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.CUSDEC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.CSTCustomsStatusOfGoods;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.FTXFreeText;
import org.milyn.edi.unedifact.d05a.common.LOCPlaceLocationIdentification;
import org.milyn.edi.unedifact.d05a.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d05a.common.MEAMeasurements;
import org.milyn.edi.unedifact.d05a.common.NADNameAndAddress;
import org.milyn.edi.unedifact.d05a.common.TDTTransportInformation;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup30 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private CSTCustomsStatusOfGoods cSTCustomsStatusOfGoods;
private List fTXFreeText;
private List lOCPlaceLocationIdentification;
private List dTMDateTimePeriod;
private List mEAMeasurements;
private List nADNameAndAddress;
private List tDTTransportInformation;
private List segmentGroup31;
private List segmentGroup33;
private List segmentGroup35;
private List segmentGroup37;
private SegmentGroup38 segmentGroup38;
private SegmentGroup39 segmentGroup39;
private List segmentGroup40;
private List segmentGroup41;
private SegmentGroup42 segmentGroup42;
private List segmentGroup44;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(cSTCustomsStatusOfGoods != null) {
nodeWriter.write("CST");
nodeWriter.write(delimiters.getField());
cSTCustomsStatusOfGoods.write(nodeWriter, delimiters);
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(lOCPlaceLocationIdentification != null && !lOCPlaceLocationIdentification.isEmpty()) {
for(LOCPlaceLocationIdentification lOCPlaceLocationIdentificationInst : lOCPlaceLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
lOCPlaceLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(mEAMeasurements != null && !mEAMeasurements.isEmpty()) {
for(MEAMeasurements mEAMeasurementsInst : mEAMeasurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
mEAMeasurementsInst.write(nodeWriter, delimiters);
}
}
if(nADNameAndAddress != null && !nADNameAndAddress.isEmpty()) {
for(NADNameAndAddress nADNameAndAddressInst : nADNameAndAddress) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nADNameAndAddressInst.write(nodeWriter, delimiters);
}
}
if(tDTTransportInformation != null && !tDTTransportInformation.isEmpty()) {
for(TDTTransportInformation tDTTransportInformationInst : tDTTransportInformation) {
nodeWriter.write("TDT");
nodeWriter.write(delimiters.getField());
tDTTransportInformationInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup31 != null && !segmentGroup31.isEmpty()) {
for(SegmentGroup31 segmentGroup31Inst : segmentGroup31) {
segmentGroup31Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup33 != null && !segmentGroup33.isEmpty()) {
for(SegmentGroup33 segmentGroup33Inst : segmentGroup33) {
segmentGroup33Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup35 != null && !segmentGroup35.isEmpty()) {
for(SegmentGroup35 segmentGroup35Inst : segmentGroup35) {
segmentGroup35Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup37 != null && !segmentGroup37.isEmpty()) {
for(SegmentGroup37 segmentGroup37Inst : segmentGroup37) {
segmentGroup37Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup38 != null) {
segmentGroup38.write(nodeWriter, delimiters);
}
if(segmentGroup39 != null) {
segmentGroup39.write(nodeWriter, delimiters);
}
if(segmentGroup40 != null && !segmentGroup40.isEmpty()) {
for(SegmentGroup40 segmentGroup40Inst : segmentGroup40) {
segmentGroup40Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup41 != null && !segmentGroup41.isEmpty()) {
for(SegmentGroup41 segmentGroup41Inst : segmentGroup41) {
segmentGroup41Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup42 != null) {
segmentGroup42.write(nodeWriter, delimiters);
}
if(segmentGroup44 != null && !segmentGroup44.isEmpty()) {
for(SegmentGroup44 segmentGroup44Inst : segmentGroup44) {
segmentGroup44Inst.write(nodeWriter, delimiters);
}
}
}
public CSTCustomsStatusOfGoods getCSTCustomsStatusOfGoods() {
return cSTCustomsStatusOfGoods;
}
public SegmentGroup30 setCSTCustomsStatusOfGoods(CSTCustomsStatusOfGoods cSTCustomsStatusOfGoods) {
this.cSTCustomsStatusOfGoods = cSTCustomsStatusOfGoods; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup30 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getLOCPlaceLocationIdentification() {
return lOCPlaceLocationIdentification;
}
public SegmentGroup30 setLOCPlaceLocationIdentification(List lOCPlaceLocationIdentification) {
this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup30 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getMEAMeasurements() {
return mEAMeasurements;
}
public SegmentGroup30 setMEAMeasurements(List mEAMeasurements) {
this.mEAMeasurements = mEAMeasurements; return this;
}
public List getNADNameAndAddress() {
return nADNameAndAddress;
}
public SegmentGroup30 setNADNameAndAddress(List nADNameAndAddress) {
this.nADNameAndAddress = nADNameAndAddress; return this;
}
public List getTDTTransportInformation() {
return tDTTransportInformation;
}
public SegmentGroup30 setTDTTransportInformation(List tDTTransportInformation) {
this.tDTTransportInformation = tDTTransportInformation; return this;
}
public List getSegmentGroup31() {
return segmentGroup31;
}
public SegmentGroup30 setSegmentGroup31(List segmentGroup31) {
this.segmentGroup31 = segmentGroup31; return this;
}
public List getSegmentGroup33() {
return segmentGroup33;
}
public SegmentGroup30 setSegmentGroup33(List segmentGroup33) {
this.segmentGroup33 = segmentGroup33; return this;
}
public List getSegmentGroup35() {
return segmentGroup35;
}
public SegmentGroup30 setSegmentGroup35(List segmentGroup35) {
this.segmentGroup35 = segmentGroup35; return this;
}
public List getSegmentGroup37() {
return segmentGroup37;
}
public SegmentGroup30 setSegmentGroup37(List segmentGroup37) {
this.segmentGroup37 = segmentGroup37; return this;
}
public SegmentGroup38 getSegmentGroup38() {
return segmentGroup38;
}
public SegmentGroup30 setSegmentGroup38(SegmentGroup38 segmentGroup38) {
this.segmentGroup38 = segmentGroup38; return this;
}
public SegmentGroup39 getSegmentGroup39() {
return segmentGroup39;
}
public SegmentGroup30 setSegmentGroup39(SegmentGroup39 segmentGroup39) {
this.segmentGroup39 = segmentGroup39; return this;
}
public List getSegmentGroup40() {
return segmentGroup40;
}
public SegmentGroup30 setSegmentGroup40(List segmentGroup40) {
this.segmentGroup40 = segmentGroup40; return this;
}
public List getSegmentGroup41() {
return segmentGroup41;
}
public SegmentGroup30 setSegmentGroup41(List segmentGroup41) {
this.segmentGroup41 = segmentGroup41; return this;
}
public SegmentGroup42 getSegmentGroup42() {
return segmentGroup42;
}
public SegmentGroup30 setSegmentGroup42(SegmentGroup42 segmentGroup42) {
this.segmentGroup42 = segmentGroup42; return this;
}
public List getSegmentGroup44() {
return segmentGroup44;
}
public SegmentGroup30 setSegmentGroup44(List segmentGroup44) {
this.segmentGroup44 = segmentGroup44; return this;
}
}