org.milyn.edi.unedifact.d05a.IFTMBC.SegmentGroup18 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.IFTMBC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.EquipmentDetails;
import org.milyn.edi.unedifact.d05a.common.NumberOfUnits;
import org.milyn.edi.unedifact.d05a.common.TransportMovementDetails;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.Measurements;
import org.milyn.edi.unedifact.d05a.common.Dimensions;
import org.milyn.edi.unedifact.d05a.common.HandlingInstructions;
import org.milyn.edi.unedifact.d05a.common.Temperature;
import org.milyn.edi.unedifact.d05a.common.RangeDetails;
import org.milyn.edi.unedifact.d05a.common.FreeText;
import org.milyn.edi.unedifact.d05a.common.Reference;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup18 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private EquipmentDetails equipmentDetails;
private NumberOfUnits numberOfUnits;
private TransportMovementDetails transportMovementDetails;
private List measurements;
private List dimensions;
private HandlingInstructions handlingInstructions;
private Temperature temperature;
private List rangeDetails;
private List freeText;
private List reference;
private List segmentGroup19;
private List segmentGroup20;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(equipmentDetails != null) {
nodeWriter.write("EQD");
nodeWriter.write(delimiters.getField());
equipmentDetails.write(nodeWriter, delimiters);
}
if(numberOfUnits != null) {
nodeWriter.write("EQN");
nodeWriter.write(delimiters.getField());
numberOfUnits.write(nodeWriter, delimiters);
}
if(transportMovementDetails != null) {
nodeWriter.write("TMD");
nodeWriter.write(delimiters.getField());
transportMovementDetails.write(nodeWriter, delimiters);
}
if(measurements != null && !measurements.isEmpty()) {
for(Measurements measurementsInst : measurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
measurementsInst.write(nodeWriter, delimiters);
}
}
if(dimensions != null && !dimensions.isEmpty()) {
for(Dimensions dimensionsInst : dimensions) {
nodeWriter.write("DIM");
nodeWriter.write(delimiters.getField());
dimensionsInst.write(nodeWriter, delimiters);
}
}
if(handlingInstructions != null) {
nodeWriter.write("HAN");
nodeWriter.write(delimiters.getField());
handlingInstructions.write(nodeWriter, delimiters);
}
if(temperature != null) {
nodeWriter.write("TMP");
nodeWriter.write(delimiters.getField());
temperature.write(nodeWriter, delimiters);
}
if(rangeDetails != null && !rangeDetails.isEmpty()) {
for(RangeDetails rangeDetailsInst : rangeDetails) {
nodeWriter.write("RNG");
nodeWriter.write(delimiters.getField());
rangeDetailsInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup19 != null && !segmentGroup19.isEmpty()) {
for(SegmentGroup19 segmentGroup19Inst : segmentGroup19) {
segmentGroup19Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup20 != null && !segmentGroup20.isEmpty()) {
for(SegmentGroup20 segmentGroup20Inst : segmentGroup20) {
segmentGroup20Inst.write(nodeWriter, delimiters);
}
}
}
public EquipmentDetails getEquipmentDetails() {
return equipmentDetails;
}
public SegmentGroup18 setEquipmentDetails(EquipmentDetails equipmentDetails) {
this.equipmentDetails = equipmentDetails; return this;
}
public NumberOfUnits getNumberOfUnits() {
return numberOfUnits;
}
public SegmentGroup18 setNumberOfUnits(NumberOfUnits numberOfUnits) {
this.numberOfUnits = numberOfUnits; return this;
}
public TransportMovementDetails getTransportMovementDetails() {
return transportMovementDetails;
}
public SegmentGroup18 setTransportMovementDetails(TransportMovementDetails transportMovementDetails) {
this.transportMovementDetails = transportMovementDetails; return this;
}
public List getMeasurements() {
return measurements;
}
public SegmentGroup18 setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getDimensions() {
return dimensions;
}
public SegmentGroup18 setDimensions(List dimensions) {
this.dimensions = dimensions; return this;
}
public HandlingInstructions getHandlingInstructions() {
return handlingInstructions;
}
public SegmentGroup18 setHandlingInstructions(HandlingInstructions handlingInstructions) {
this.handlingInstructions = handlingInstructions; return this;
}
public Temperature getTemperature() {
return temperature;
}
public SegmentGroup18 setTemperature(Temperature temperature) {
this.temperature = temperature; return this;
}
public List getRangeDetails() {
return rangeDetails;
}
public SegmentGroup18 setRangeDetails(List rangeDetails) {
this.rangeDetails = rangeDetails; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup18 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup18 setReference(List reference) {
this.reference = reference; return this;
}
public List getSegmentGroup19() {
return segmentGroup19;
}
public SegmentGroup18 setSegmentGroup19(List segmentGroup19) {
this.segmentGroup19 = segmentGroup19; return this;
}
public List getSegmentGroup20() {
return segmentGroup20;
}
public SegmentGroup18 setSegmentGroup20(List segmentGroup20) {
this.segmentGroup20 = segmentGroup20; return this;
}
}