org.milyn.edi.unedifact.d05a.CUSPED.SegmentGroup15 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.CUSPED;
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 SegmentGroup15 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 segmentGroup16;
private List segmentGroup18;
private List segmentGroup20;
private List segmentGroup22;
private SegmentGroup23 segmentGroup23;
private SegmentGroup24 segmentGroup24;
private List segmentGroup25;
private List segmentGroup26;
private SegmentGroup27 segmentGroup27;
private List segmentGroup29;
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(segmentGroup16 != null && !segmentGroup16.isEmpty()) {
for(SegmentGroup16 segmentGroup16Inst : segmentGroup16) {
segmentGroup16Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup18 != null && !segmentGroup18.isEmpty()) {
for(SegmentGroup18 segmentGroup18Inst : segmentGroup18) {
segmentGroup18Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup20 != null && !segmentGroup20.isEmpty()) {
for(SegmentGroup20 segmentGroup20Inst : segmentGroup20) {
segmentGroup20Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup22 != null && !segmentGroup22.isEmpty()) {
for(SegmentGroup22 segmentGroup22Inst : segmentGroup22) {
segmentGroup22Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup23 != null) {
segmentGroup23.write(nodeWriter, delimiters);
}
if(segmentGroup24 != null) {
segmentGroup24.write(nodeWriter, delimiters);
}
if(segmentGroup25 != null && !segmentGroup25.isEmpty()) {
for(SegmentGroup25 segmentGroup25Inst : segmentGroup25) {
segmentGroup25Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup26 != null && !segmentGroup26.isEmpty()) {
for(SegmentGroup26 segmentGroup26Inst : segmentGroup26) {
segmentGroup26Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup27 != null) {
segmentGroup27.write(nodeWriter, delimiters);
}
if(segmentGroup29 != null && !segmentGroup29.isEmpty()) {
for(SegmentGroup29 segmentGroup29Inst : segmentGroup29) {
segmentGroup29Inst.write(nodeWriter, delimiters);
}
}
}
public CSTCustomsStatusOfGoods getCSTCustomsStatusOfGoods() {
return cSTCustomsStatusOfGoods;
}
public SegmentGroup15 setCSTCustomsStatusOfGoods(CSTCustomsStatusOfGoods cSTCustomsStatusOfGoods) {
this.cSTCustomsStatusOfGoods = cSTCustomsStatusOfGoods; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup15 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getLOCPlaceLocationIdentification() {
return lOCPlaceLocationIdentification;
}
public SegmentGroup15 setLOCPlaceLocationIdentification(List lOCPlaceLocationIdentification) {
this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup15 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getMEAMeasurements() {
return mEAMeasurements;
}
public SegmentGroup15 setMEAMeasurements(List mEAMeasurements) {
this.mEAMeasurements = mEAMeasurements; return this;
}
public List getNADNameAndAddress() {
return nADNameAndAddress;
}
public SegmentGroup15 setNADNameAndAddress(List nADNameAndAddress) {
this.nADNameAndAddress = nADNameAndAddress; return this;
}
public List getTDTTransportInformation() {
return tDTTransportInformation;
}
public SegmentGroup15 setTDTTransportInformation(List tDTTransportInformation) {
this.tDTTransportInformation = tDTTransportInformation; return this;
}
public List getSegmentGroup16() {
return segmentGroup16;
}
public SegmentGroup15 setSegmentGroup16(List segmentGroup16) {
this.segmentGroup16 = segmentGroup16; return this;
}
public List getSegmentGroup18() {
return segmentGroup18;
}
public SegmentGroup15 setSegmentGroup18(List segmentGroup18) {
this.segmentGroup18 = segmentGroup18; return this;
}
public List getSegmentGroup20() {
return segmentGroup20;
}
public SegmentGroup15 setSegmentGroup20(List segmentGroup20) {
this.segmentGroup20 = segmentGroup20; return this;
}
public List getSegmentGroup22() {
return segmentGroup22;
}
public SegmentGroup15 setSegmentGroup22(List segmentGroup22) {
this.segmentGroup22 = segmentGroup22; return this;
}
public SegmentGroup23 getSegmentGroup23() {
return segmentGroup23;
}
public SegmentGroup15 setSegmentGroup23(SegmentGroup23 segmentGroup23) {
this.segmentGroup23 = segmentGroup23; return this;
}
public SegmentGroup24 getSegmentGroup24() {
return segmentGroup24;
}
public SegmentGroup15 setSegmentGroup24(SegmentGroup24 segmentGroup24) {
this.segmentGroup24 = segmentGroup24; return this;
}
public List getSegmentGroup25() {
return segmentGroup25;
}
public SegmentGroup15 setSegmentGroup25(List segmentGroup25) {
this.segmentGroup25 = segmentGroup25; return this;
}
public List getSegmentGroup26() {
return segmentGroup26;
}
public SegmentGroup15 setSegmentGroup26(List segmentGroup26) {
this.segmentGroup26 = segmentGroup26; return this;
}
public SegmentGroup27 getSegmentGroup27() {
return segmentGroup27;
}
public SegmentGroup15 setSegmentGroup27(SegmentGroup27 segmentGroup27) {
this.segmentGroup27 = segmentGroup27; return this;
}
public List getSegmentGroup29() {
return segmentGroup29;
}
public SegmentGroup15 setSegmentGroup29(List segmentGroup29) {
this.segmentGroup29 = segmentGroup29; return this;
}
}