org.milyn.edi.unedifact.d98a.IFTMIN.SegmentGroup37 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.IFTMIN;
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.Reference;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup37 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 reference;
private List segmentGroup38;
private List segmentGroup39;
private List segmentGroup41;
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(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup38 != null && !segmentGroup38.isEmpty()) {
for(SegmentGroup38 segmentGroup38Inst : segmentGroup38) {
segmentGroup38Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup39 != null && !segmentGroup39.isEmpty()) {
for(SegmentGroup39 segmentGroup39Inst : segmentGroup39) {
segmentGroup39Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup41 != null && !segmentGroup41.isEmpty()) {
for(SegmentGroup41 segmentGroup41Inst : segmentGroup41) {
segmentGroup41Inst.write(nodeWriter, delimiters);
}
}
}
public EquipmentDetails getEquipmentDetails() {
return equipmentDetails;
}
public SegmentGroup37 setEquipmentDetails(EquipmentDetails equipmentDetails) {
this.equipmentDetails = equipmentDetails; return this;
}
public NumberOfUnits getNumberOfUnits() {
return numberOfUnits;
}
public SegmentGroup37 setNumberOfUnits(NumberOfUnits numberOfUnits) {
this.numberOfUnits = numberOfUnits; return this;
}
public TransportMovementDetails getTransportMovementDetails() {
return transportMovementDetails;
}
public SegmentGroup37 setTransportMovementDetails(TransportMovementDetails transportMovementDetails) {
this.transportMovementDetails = transportMovementDetails; return this;
}
public List getMeasurements() {
return measurements;
}
public SegmentGroup37 setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getDimensions() {
return dimensions;
}
public SegmentGroup37 setDimensions(List dimensions) {
this.dimensions = dimensions; return this;
}
public List getSealNumber() {
return sealNumber;
}
public SegmentGroup37 setSealNumber(List sealNumber) {
this.sealNumber = sealNumber; return this;
}
public List getTransportPlacement() {
return transportPlacement;
}
public SegmentGroup37 setTransportPlacement(List transportPlacement) {
this.transportPlacement = transportPlacement; return this;
}
public HandlingInstructions getHandlingInstructions() {
return handlingInstructions;
}
public SegmentGroup37 setHandlingInstructions(HandlingInstructions handlingInstructions) {
this.handlingInstructions = handlingInstructions; return this;
}
public Temperature getTemperature() {
return temperature;
}
public SegmentGroup37 setTemperature(Temperature temperature) {
this.temperature = temperature; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup37 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup37 setReference(List reference) {
this.reference = reference; return this;
}
public List getSegmentGroup38() {
return segmentGroup38;
}
public SegmentGroup37 setSegmentGroup38(List segmentGroup38) {
this.segmentGroup38 = segmentGroup38; return this;
}
public List getSegmentGroup39() {
return segmentGroup39;
}
public SegmentGroup37 setSegmentGroup39(List segmentGroup39) {
this.segmentGroup39 = segmentGroup39; return this;
}
public List getSegmentGroup41() {
return segmentGroup41;
}
public SegmentGroup37 setSegmentGroup41(List segmentGroup41) {
this.segmentGroup41 = segmentGroup41; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy