org.milyn.edi.unedifact.d99b.IFCSUM.SegmentGroup38 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.IFCSUM;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.DetailsOfTransport;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.DateTimePeriod;
import org.milyn.edi.unedifact.d99b.common.TransportServiceRequirements;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup38 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private DetailsOfTransport detailsOfTransport;
private List dateTimePeriod;
private List transportServiceRequirements;
private List segmentGroup39;
private List segmentGroup40;
private List segmentGroup41;
private List segmentGroup42;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(detailsOfTransport != null) {
nodeWriter.write("TDT");
nodeWriter.write(delimiters.getField());
detailsOfTransport.write(nodeWriter, delimiters);
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(transportServiceRequirements != null && !transportServiceRequirements.isEmpty()) {
for(TransportServiceRequirements transportServiceRequirementsInst : transportServiceRequirements) {
nodeWriter.write("TSR");
nodeWriter.write(delimiters.getField());
transportServiceRequirementsInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup39 != null && !segmentGroup39.isEmpty()) {
for(SegmentGroup39 segmentGroup39Inst : segmentGroup39) {
segmentGroup39Inst.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.isEmpty()) {
for(SegmentGroup42 segmentGroup42Inst : segmentGroup42) {
segmentGroup42Inst.write(nodeWriter, delimiters);
}
}
}
public DetailsOfTransport getDetailsOfTransport() {
return detailsOfTransport;
}
public SegmentGroup38 setDetailsOfTransport(DetailsOfTransport detailsOfTransport) {
this.detailsOfTransport = detailsOfTransport; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup38 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getTransportServiceRequirements() {
return transportServiceRequirements;
}
public SegmentGroup38 setTransportServiceRequirements(List transportServiceRequirements) {
this.transportServiceRequirements = transportServiceRequirements; return this;
}
public List getSegmentGroup39() {
return segmentGroup39;
}
public SegmentGroup38 setSegmentGroup39(List segmentGroup39) {
this.segmentGroup39 = segmentGroup39; return this;
}
public List getSegmentGroup40() {
return segmentGroup40;
}
public SegmentGroup38 setSegmentGroup40(List segmentGroup40) {
this.segmentGroup40 = segmentGroup40; return this;
}
public List getSegmentGroup41() {
return segmentGroup41;
}
public SegmentGroup38 setSegmentGroup41(List segmentGroup41) {
this.segmentGroup41 = segmentGroup41; return this;
}
public List getSegmentGroup42() {
return segmentGroup42;
}
public SegmentGroup38 setSegmentGroup42(List segmentGroup42) {
this.segmentGroup42 = segmentGroup42; return this;
}
}