org.milyn.edi.unedifact.d05a.CUSREP.SegmentGroup8 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.CUSREP;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.TransportInformation;
import org.milyn.edi.unedifact.d05a.common.TransportPlacement;
import org.milyn.edi.unedifact.d05a.common.DateTimePeriod;
import java.util.List;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup8 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private TransportInformation transportInformation;
private TransportPlacement transportPlacement;
private DateTimePeriod dateTimePeriod;
private List segmentGroup9;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(transportInformation != null) {
nodeWriter.write("TDT");
nodeWriter.write(delimiters.getField());
transportInformation.write(nodeWriter, delimiters);
}
if(transportPlacement != null) {
nodeWriter.write("TPL");
nodeWriter.write(delimiters.getField());
transportPlacement.write(nodeWriter, delimiters);
}
if(dateTimePeriod != null) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriod.write(nodeWriter, delimiters);
}
if(segmentGroup9 != null && !segmentGroup9.isEmpty()) {
for(SegmentGroup9 segmentGroup9Inst : segmentGroup9) {
segmentGroup9Inst.write(nodeWriter, delimiters);
}
}
}
public TransportInformation getTransportInformation() {
return transportInformation;
}
public SegmentGroup8 setTransportInformation(TransportInformation transportInformation) {
this.transportInformation = transportInformation; return this;
}
public TransportPlacement getTransportPlacement() {
return transportPlacement;
}
public SegmentGroup8 setTransportPlacement(TransportPlacement transportPlacement) {
this.transportPlacement = transportPlacement; return this;
}
public DateTimePeriod getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup8 setDateTimePeriod(DateTimePeriod dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getSegmentGroup9() {
return segmentGroup9;
}
public SegmentGroup8 setSegmentGroup9(List segmentGroup9) {
this.segmentGroup9 = segmentGroup9; return this;
}
}