org.milyn.edi.unedifact.d98a.IFCSUM.SegmentGroup60 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.IFCSUM;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d98a.common.EquipmentDetails;
import org.milyn.edi.unedifact.d98a.common.NumberOfUnits;
import org.milyn.edi.unedifact.d98a.common.TransportMovementDetails;
import java.util.List;
import org.milyn.edi.unedifact.d98a.common.Measurements;
import org.milyn.edi.unedifact.d98a.common.Dimensions;
import org.milyn.edi.unedifact.d98a.common.SealNumber;
import org.milyn.edi.unedifact.d98a.common.TransportPlacement;
import org.milyn.edi.unedifact.d98a.common.HandlingInstructions;
import org.milyn.edi.unedifact.d98a.common.Temperature;
import org.milyn.edi.unedifact.d98a.common.FreeText;
import org.milyn.edi.unedifact.d98a.common.PercentageDetails;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup60 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 sealNumber;
private List transportPlacement;
private HandlingInstructions handlingInstructions;
private Temperature temperature;
private List freeText;
private List percentageDetails;
private List segmentGroup61;
private List segmentGroup62;
private List segmentGroup63;
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(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(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(percentageDetails != null && !percentageDetails.isEmpty()) {
for(PercentageDetails percentageDetailsInst : percentageDetails) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
percentageDetailsInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup61 != null && !segmentGroup61.isEmpty()) {
for(SegmentGroup61 segmentGroup61Inst : segmentGroup61) {
segmentGroup61Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup62 != null && !segmentGroup62.isEmpty()) {
for(SegmentGroup62 segmentGroup62Inst : segmentGroup62) {
segmentGroup62Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup63 != null && !segmentGroup63.isEmpty()) {
for(SegmentGroup63 segmentGroup63Inst : segmentGroup63) {
segmentGroup63Inst.write(nodeWriter, delimiters);
}
}
}
public EquipmentDetails getEquipmentDetails() {
return equipmentDetails;
}
public SegmentGroup60 setEquipmentDetails(EquipmentDetails equipmentDetails) {
this.equipmentDetails = equipmentDetails; return this;
}
public NumberOfUnits getNumberOfUnits() {
return numberOfUnits;
}
public SegmentGroup60 setNumberOfUnits(NumberOfUnits numberOfUnits) {
this.numberOfUnits = numberOfUnits; return this;
}
public TransportMovementDetails getTransportMovementDetails() {
return transportMovementDetails;
}
public SegmentGroup60 setTransportMovementDetails(TransportMovementDetails transportMovementDetails) {
this.transportMovementDetails = transportMovementDetails; return this;
}
public List getMeasurements() {
return measurements;
}
public SegmentGroup60 setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getDimensions() {
return dimensions;
}
public SegmentGroup60 setDimensions(List dimensions) {
this.dimensions = dimensions; return this;
}
public List getSealNumber() {
return sealNumber;
}
public SegmentGroup60 setSealNumber(List sealNumber) {
this.sealNumber = sealNumber; return this;
}
public List getTransportPlacement() {
return transportPlacement;
}
public SegmentGroup60 setTransportPlacement(List transportPlacement) {
this.transportPlacement = transportPlacement; return this;
}
public HandlingInstructions getHandlingInstructions() {
return handlingInstructions;
}
public SegmentGroup60 setHandlingInstructions(HandlingInstructions handlingInstructions) {
this.handlingInstructions = handlingInstructions; return this;
}
public Temperature getTemperature() {
return temperature;
}
public SegmentGroup60 setTemperature(Temperature temperature) {
this.temperature = temperature; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup60 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getPercentageDetails() {
return percentageDetails;
}
public SegmentGroup60 setPercentageDetails(List percentageDetails) {
this.percentageDetails = percentageDetails; return this;
}
public List getSegmentGroup61() {
return segmentGroup61;
}
public SegmentGroup60 setSegmentGroup61(List segmentGroup61) {
this.segmentGroup61 = segmentGroup61; return this;
}
public List getSegmentGroup62() {
return segmentGroup62;
}
public SegmentGroup60 setSegmentGroup62(List segmentGroup62) {
this.segmentGroup62 = segmentGroup62; return this;
}
public List getSegmentGroup63() {
return segmentGroup63;
}
public SegmentGroup60 setSegmentGroup63(List segmentGroup63) {
this.segmentGroup63 = segmentGroup63; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy