org.milyn.edi.unedifact.d06b.IFTSAI.SegmentGroup4 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.IFTSAI;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.TransportInformation;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.DateTimePeriod;
import org.milyn.edi.unedifact.d06b.common.TransportServiceRequirements;
import org.milyn.edi.unedifact.d06b.common.Reference;
import org.milyn.edi.unedifact.d06b.common.FreeText;
import org.milyn.edi.unedifact.d06b.common.EquipmentDetails;
import org.milyn.edi.unedifact.d06b.common.Quantity;
import org.milyn.edi.unedifact.d06b.common.Measurements;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup4 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private TransportInformation transportInformation;
private List dateTimePeriod;
private List transportServiceRequirements;
private List reference;
private List freeText;
private List equipmentDetails;
private List quantity;
private List measurements;
private List segmentGroup5;
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(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(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(equipmentDetails != null && !equipmentDetails.isEmpty()) {
for(EquipmentDetails equipmentDetailsInst : equipmentDetails) {
nodeWriter.write("EQD");
nodeWriter.write(delimiters.getField());
equipmentDetailsInst.write(nodeWriter, delimiters);
}
}
if(quantity != null && !quantity.isEmpty()) {
for(Quantity quantityInst : quantity) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
quantityInst.write(nodeWriter, delimiters);
}
}
if(measurements != null && !measurements.isEmpty()) {
for(Measurements measurementsInst : measurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
measurementsInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup5 != null && !segmentGroup5.isEmpty()) {
for(SegmentGroup5 segmentGroup5Inst : segmentGroup5) {
segmentGroup5Inst.write(nodeWriter, delimiters);
}
}
}
public TransportInformation getTransportInformation() {
return transportInformation;
}
public SegmentGroup4 setTransportInformation(TransportInformation transportInformation) {
this.transportInformation = transportInformation; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup4 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getTransportServiceRequirements() {
return transportServiceRequirements;
}
public SegmentGroup4 setTransportServiceRequirements(List transportServiceRequirements) {
this.transportServiceRequirements = transportServiceRequirements; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup4 setReference(List reference) {
this.reference = reference; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup4 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getEquipmentDetails() {
return equipmentDetails;
}
public SegmentGroup4 setEquipmentDetails(List equipmentDetails) {
this.equipmentDetails = equipmentDetails; return this;
}
public List getQuantity() {
return quantity;
}
public SegmentGroup4 setQuantity(List quantity) {
this.quantity = quantity; return this;
}
public List getMeasurements() {
return measurements;
}
public SegmentGroup4 setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getSegmentGroup5() {
return segmentGroup5;
}
public SegmentGroup4 setSegmentGroup5(List segmentGroup5) {
this.segmentGroup5 = segmentGroup5; return this;
}
}