org.milyn.edi.unedifact.d98a.CUSPED.SegmentGroup15 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.CUSPED;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d98a.common.CustomsStatusOfGoods;
import java.util.List;
import org.milyn.edi.unedifact.d98a.common.FreeText;
import org.milyn.edi.unedifact.d98a.common.PlaceLocationIdentification;
import org.milyn.edi.unedifact.d98a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d98a.common.Measurements;
import org.milyn.edi.unedifact.d98a.common.NameAndAddress;
import org.milyn.edi.unedifact.d98a.common.DetailsOfTransport;
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 CustomsStatusOfGoods customsStatusOfGoods;
private List freeText;
private List placeLocationIdentification;
private List dateTimePeriod;
private List measurements;
private List nameAndAddress;
private List detailsOfTransport;
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(customsStatusOfGoods != null) {
nodeWriter.write("CST");
nodeWriter.write(delimiters.getField());
customsStatusOfGoods.write(nodeWriter, delimiters);
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
placeLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(measurements != null && !measurements.isEmpty()) {
for(Measurements measurementsInst : measurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
measurementsInst.write(nodeWriter, delimiters);
}
}
if(nameAndAddress != null && !nameAndAddress.isEmpty()) {
for(NameAndAddress nameAndAddressInst : nameAndAddress) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nameAndAddressInst.write(nodeWriter, delimiters);
}
}
if(detailsOfTransport != null && !detailsOfTransport.isEmpty()) {
for(DetailsOfTransport detailsOfTransportInst : detailsOfTransport) {
nodeWriter.write("TDT");
nodeWriter.write(delimiters.getField());
detailsOfTransportInst.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 CustomsStatusOfGoods getCustomsStatusOfGoods() {
return customsStatusOfGoods;
}
public SegmentGroup15 setCustomsStatusOfGoods(CustomsStatusOfGoods customsStatusOfGoods) {
this.customsStatusOfGoods = customsStatusOfGoods; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup15 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup15 setPlaceLocationIdentification(List placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup15 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getMeasurements() {
return measurements;
}
public SegmentGroup15 setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getNameAndAddress() {
return nameAndAddress;
}
public SegmentGroup15 setNameAndAddress(List nameAndAddress) {
this.nameAndAddress = nameAndAddress; return this;
}
public List getDetailsOfTransport() {
return detailsOfTransport;
}
public SegmentGroup15 setDetailsOfTransport(List detailsOfTransport) {
this.detailsOfTransport = detailsOfTransport; 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;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy