All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.milyn.edi.unedifact.d96a.IFTMBP.SegmentGroup29 Maven / Gradle / Ivy

There is a newer version: 1.7.1.0
Show newest version
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d96a.IFTMBP;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d96a.common.EquipmentDetails;    
import org.milyn.edi.unedifact.d96a.common.NumberOfUnits;    
import org.milyn.edi.unedifact.d96a.common.TransportMovementDetails;    
import java.util.List;    
import org.milyn.edi.unedifact.d96a.common.Measurements;    
import org.milyn.edi.unedifact.d96a.common.Dimensions;    
import org.milyn.edi.unedifact.d96a.common.TransportPlacement;    
import org.milyn.edi.unedifact.d96a.common.HandlingInstructions;    
import org.milyn.edi.unedifact.d96a.common.Temperature;    
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 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 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(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 getSegmentGroup30() {
        return segmentGroup30;
    }

    public SegmentGroup29 setSegmentGroup30(List segmentGroup30) {
        this.segmentGroup30 = segmentGroup30;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy