org.milyn.edi.unedifact.d99b.IFTMBP.SegmentGroup29 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.IFTMBP;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.EquipmentDetails;
import org.milyn.edi.unedifact.d99b.common.NumberOfUnits;
import org.milyn.edi.unedifact.d99b.common.TransportMovementDetails;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.Measurements;
import org.milyn.edi.unedifact.d99b.common.Dimensions;
import org.milyn.edi.unedifact.d99b.common.TransportPlacement;
import org.milyn.edi.unedifact.d99b.common.HandlingInstructions;
import org.milyn.edi.unedifact.d99b.common.Temperature;
import org.milyn.edi.unedifact.d99b.common.FreeText;
import org.milyn.edi.unedifact.d99b.common.Reference;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup29 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 List transportPlacement;
private HandlingInstructions handlingInstructions;
private Temperature temperature;
private List freeText;
private List reference;
private List segmentGroup30;
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(transportPlacement != null && !transportPlacement.isEmpty()) {
for(TransportPlacement transportPlacementInst : transportPlacement) {
nodeWriter.write("TPL");
nodeWriter.write(delimiters.getField());
transportPlacementInst.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(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(segmentGroup30 != null && !segmentGroup30.isEmpty()) {
for(SegmentGroup30 segmentGroup30Inst : segmentGroup30) {
segmentGroup30Inst.write(nodeWriter, delimiters);
}
}
}
public EquipmentDetails getEquipmentDetails() {
return equipmentDetails;
}
public SegmentGroup29 setEquipmentDetails(EquipmentDetails equipmentDetails) {
this.equipmentDetails = equipmentDetails; return this;
}
public NumberOfUnits getNumberOfUnits() {
return numberOfUnits;
}
public SegmentGroup29 setNumberOfUnits(NumberOfUnits numberOfUnits) {
this.numberOfUnits = numberOfUnits; return this;
}
public TransportMovementDetails getTransportMovementDetails() {
return transportMovementDetails;
}
public SegmentGroup29 setTransportMovementDetails(TransportMovementDetails transportMovementDetails) {
this.transportMovementDetails = transportMovementDetails; return this;
}
public List getMeasurements() {
return measurements;
}
public SegmentGroup29 setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getDimensions() {
return dimensions;
}
public SegmentGroup29 setDimensions(List dimensions) {
this.dimensions = dimensions; return this;
}
public List getTransportPlacement() {
return transportPlacement;
}
public SegmentGroup29 setTransportPlacement(List transportPlacement) {
this.transportPlacement = transportPlacement; return this;
}
public HandlingInstructions getHandlingInstructions() {
return handlingInstructions;
}
public SegmentGroup29 setHandlingInstructions(HandlingInstructions handlingInstructions) {
this.handlingInstructions = handlingInstructions; return this;
}
public Temperature getTemperature() {
return temperature;
}
public SegmentGroup29 setTemperature(Temperature temperature) {
this.temperature = temperature; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup29 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup29 setReference(List reference) {
this.reference = reference; return this;
}
public List getSegmentGroup30() {
return segmentGroup30;
}
public SegmentGroup29 setSegmentGroup30(List segmentGroup30) {
this.segmentGroup30 = segmentGroup30; return this;
}
}