org.milyn.edi.unedifact.d96a.IFTFCC.SegmentGroup42 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d96a.IFTFCC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d96a.common.EquipmentDetails;
import java.util.List;
import org.milyn.edi.unedifact.d96a.common.TransportChargeRateCalculations;
import org.milyn.edi.unedifact.d96a.common.NumberOfUnits;
import org.milyn.edi.unedifact.d96a.common.TransportMovementDetails;
import org.milyn.edi.unedifact.d96a.common.Measurements;
import org.milyn.edi.unedifact.d96a.common.Dimensions;
import org.milyn.edi.unedifact.d96a.common.SealNumber;
import org.milyn.edi.unedifact.d96a.common.TransportPlacement;
import org.milyn.edi.unedifact.d96a.common.FreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup42 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private EquipmentDetails equipmentDetails;
private List transportChargeRateCalculations;
private NumberOfUnits numberOfUnits;
private TransportMovementDetails transportMovementDetails;
private List measurements;
private List dimensions;
private List sealNumber;
private List transportPlacement;
private List freeText;
private List segmentGroup43;
private List segmentGroup44;
private List segmentGroup45;
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(transportChargeRateCalculations != null && !transportChargeRateCalculations.isEmpty()) {
for(TransportChargeRateCalculations transportChargeRateCalculationsInst : transportChargeRateCalculations) {
nodeWriter.write("TCC");
nodeWriter.write(delimiters.getField());
transportChargeRateCalculationsInst.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(sealNumber != null && !sealNumber.isEmpty()) {
for(SealNumber sealNumberInst : sealNumber) {
nodeWriter.write("SEL");
nodeWriter.write(delimiters.getField());
sealNumberInst.write(nodeWriter, delimiters);
}
}
if(transportPlacement != null && !transportPlacement.isEmpty()) {
for(TransportPlacement transportPlacementInst : transportPlacement) {
nodeWriter.write("TPL");
nodeWriter.write(delimiters.getField());
transportPlacementInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup43 != null && !segmentGroup43.isEmpty()) {
for(SegmentGroup43 segmentGroup43Inst : segmentGroup43) {
segmentGroup43Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup44 != null && !segmentGroup44.isEmpty()) {
for(SegmentGroup44 segmentGroup44Inst : segmentGroup44) {
segmentGroup44Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup45 != null && !segmentGroup45.isEmpty()) {
for(SegmentGroup45 segmentGroup45Inst : segmentGroup45) {
segmentGroup45Inst.write(nodeWriter, delimiters);
}
}
}
public EquipmentDetails getEquipmentDetails() {
return equipmentDetails;
}
public SegmentGroup42 setEquipmentDetails(EquipmentDetails equipmentDetails) {
this.equipmentDetails = equipmentDetails; return this;
}
public List getTransportChargeRateCalculations() {
return transportChargeRateCalculations;
}
public SegmentGroup42 setTransportChargeRateCalculations(List transportChargeRateCalculations) {
this.transportChargeRateCalculations = transportChargeRateCalculations; return this;
}
public NumberOfUnits getNumberOfUnits() {
return numberOfUnits;
}
public SegmentGroup42 setNumberOfUnits(NumberOfUnits numberOfUnits) {
this.numberOfUnits = numberOfUnits; return this;
}
public TransportMovementDetails getTransportMovementDetails() {
return transportMovementDetails;
}
public SegmentGroup42 setTransportMovementDetails(TransportMovementDetails transportMovementDetails) {
this.transportMovementDetails = transportMovementDetails; return this;
}
public List getMeasurements() {
return measurements;
}
public SegmentGroup42 setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getDimensions() {
return dimensions;
}
public SegmentGroup42 setDimensions(List dimensions) {
this.dimensions = dimensions; return this;
}
public List getSealNumber() {
return sealNumber;
}
public SegmentGroup42 setSealNumber(List sealNumber) {
this.sealNumber = sealNumber; return this;
}
public List getTransportPlacement() {
return transportPlacement;
}
public SegmentGroup42 setTransportPlacement(List transportPlacement) {
this.transportPlacement = transportPlacement; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup42 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getSegmentGroup43() {
return segmentGroup43;
}
public SegmentGroup42 setSegmentGroup43(List segmentGroup43) {
this.segmentGroup43 = segmentGroup43; return this;
}
public List getSegmentGroup44() {
return segmentGroup44;
}
public SegmentGroup42 setSegmentGroup44(List segmentGroup44) {
this.segmentGroup44 = segmentGroup44; return this;
}
public List getSegmentGroup45() {
return segmentGroup45;
}
public SegmentGroup42 setSegmentGroup45(List segmentGroup45) {
this.segmentGroup45 = segmentGroup45; return this;
}
}