org.milyn.edi.unedifact.d02a.IFTFCC.SegmentGroup24 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.IFTFCC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.EquipmentDetails;
import java.util.List;
import org.milyn.edi.unedifact.d02a.common.ChargeRateCalculations;
import org.milyn.edi.unedifact.d02a.common.NumberOfUnits;
import org.milyn.edi.unedifact.d02a.common.TransportMovementDetails;
import org.milyn.edi.unedifact.d02a.common.Measurements;
import org.milyn.edi.unedifact.d02a.common.Dimensions;
import org.milyn.edi.unedifact.d02a.common.SealNumber;
import org.milyn.edi.unedifact.d02a.common.TransportPlacement;
import org.milyn.edi.unedifact.d02a.common.FreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup24 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private EquipmentDetails equipmentDetails;
private List chargeRateCalculations;
private NumberOfUnits numberOfUnits;
private TransportMovementDetails transportMovementDetails;
private List measurements;
private List dimensions;
private List sealNumber;
private List transportPlacement;
private List freeText;
private List segmentGroup25;
private List segmentGroup26;
private List segmentGroup27;
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(chargeRateCalculations != null && !chargeRateCalculations.isEmpty()) {
for(ChargeRateCalculations chargeRateCalculationsInst : chargeRateCalculations) {
nodeWriter.write("TCC");
nodeWriter.write(delimiters.getField());
chargeRateCalculationsInst.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(segmentGroup25 != null && !segmentGroup25.isEmpty()) {
for(SegmentGroup25 segmentGroup25Inst : segmentGroup25) {
segmentGroup25Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup26 != null && !segmentGroup26.isEmpty()) {
for(SegmentGroup26 segmentGroup26Inst : segmentGroup26) {
segmentGroup26Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup27 != null && !segmentGroup27.isEmpty()) {
for(SegmentGroup27 segmentGroup27Inst : segmentGroup27) {
segmentGroup27Inst.write(nodeWriter, delimiters);
}
}
}
public EquipmentDetails getEquipmentDetails() {
return equipmentDetails;
}
public SegmentGroup24 setEquipmentDetails(EquipmentDetails equipmentDetails) {
this.equipmentDetails = equipmentDetails; return this;
}
public List getChargeRateCalculations() {
return chargeRateCalculations;
}
public SegmentGroup24 setChargeRateCalculations(List chargeRateCalculations) {
this.chargeRateCalculations = chargeRateCalculations; return this;
}
public NumberOfUnits getNumberOfUnits() {
return numberOfUnits;
}
public SegmentGroup24 setNumberOfUnits(NumberOfUnits numberOfUnits) {
this.numberOfUnits = numberOfUnits; return this;
}
public TransportMovementDetails getTransportMovementDetails() {
return transportMovementDetails;
}
public SegmentGroup24 setTransportMovementDetails(TransportMovementDetails transportMovementDetails) {
this.transportMovementDetails = transportMovementDetails; return this;
}
public List getMeasurements() {
return measurements;
}
public SegmentGroup24 setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getDimensions() {
return dimensions;
}
public SegmentGroup24 setDimensions(List dimensions) {
this.dimensions = dimensions; return this;
}
public List getSealNumber() {
return sealNumber;
}
public SegmentGroup24 setSealNumber(List sealNumber) {
this.sealNumber = sealNumber; return this;
}
public List getTransportPlacement() {
return transportPlacement;
}
public SegmentGroup24 setTransportPlacement(List transportPlacement) {
this.transportPlacement = transportPlacement; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup24 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getSegmentGroup25() {
return segmentGroup25;
}
public SegmentGroup24 setSegmentGroup25(List segmentGroup25) {
this.segmentGroup25 = segmentGroup25; return this;
}
public List getSegmentGroup26() {
return segmentGroup26;
}
public SegmentGroup24 setSegmentGroup26(List segmentGroup26) {
this.segmentGroup26 = segmentGroup26; return this;
}
public List getSegmentGroup27() {
return segmentGroup27;
}
public SegmentGroup24 setSegmentGroup27(List segmentGroup27) {
this.segmentGroup27 = segmentGroup27; return this;
}
}