org.milyn.edi.unedifact.d96a.CUSDEC.SegmentGroup30 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d96a.CUSDEC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d96a.common.CustomsStatusOfGoods;
import java.util.List;
import org.milyn.edi.unedifact.d96a.common.FreeText;
import org.milyn.edi.unedifact.d96a.common.PlaceLocationIdentification;
import org.milyn.edi.unedifact.d96a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d96a.common.Measurements;
import org.milyn.edi.unedifact.d96a.common.NameAndAddress;
import org.milyn.edi.unedifact.d96a.common.DetailsOfTransport;
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 CustomsStatusOfGoods customsStatusOfGoods;
private List freeText;
private List placeLocationIdentification;
private List dateTimePeriod;
private List measurements;
private List nameAndAddress;
private List detailsOfTransport;
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(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(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 CustomsStatusOfGoods getCustomsStatusOfGoods() {
return customsStatusOfGoods;
}
public SegmentGroup30 setCustomsStatusOfGoods(CustomsStatusOfGoods customsStatusOfGoods) {
this.customsStatusOfGoods = customsStatusOfGoods; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup30 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup30 setPlaceLocationIdentification(List placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup30 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getMeasurements() {
return measurements;
}
public SegmentGroup30 setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getNameAndAddress() {
return nameAndAddress;
}
public SegmentGroup30 setNameAndAddress(List nameAndAddress) {
this.nameAndAddress = nameAndAddress; return this;
}
public List getDetailsOfTransport() {
return detailsOfTransport;
}
public SegmentGroup30 setDetailsOfTransport(List detailsOfTransport) {
this.detailsOfTransport = detailsOfTransport; 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;
}
}