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

org.milyn.edi.unedifact.d96a.IFCSUM.SegmentGroup56 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.IFCSUM;

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.SealNumber;    
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 SegmentGroup56 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 segmentGroup57;
    private List segmentGroup58;
    private List segmentGroup59;

    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(segmentGroup57 != null && !segmentGroup57.isEmpty()) {
            for(SegmentGroup57 segmentGroup57Inst : segmentGroup57) {
                segmentGroup57Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup58 != null && !segmentGroup58.isEmpty()) {
            for(SegmentGroup58 segmentGroup58Inst : segmentGroup58) {
                segmentGroup58Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup59 != null && !segmentGroup59.isEmpty()) {
            for(SegmentGroup59 segmentGroup59Inst : segmentGroup59) {
                segmentGroup59Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public EquipmentDetails getEquipmentDetails() {
        return equipmentDetails;
    }

    public SegmentGroup56 setEquipmentDetails(EquipmentDetails equipmentDetails) {
        this.equipmentDetails = equipmentDetails;  return this;
    }

    public NumberOfUnits getNumberOfUnits() {
        return numberOfUnits;
    }

    public SegmentGroup56 setNumberOfUnits(NumberOfUnits numberOfUnits) {
        this.numberOfUnits = numberOfUnits;  return this;
    }

    public TransportMovementDetails getTransportMovementDetails() {
        return transportMovementDetails;
    }

    public SegmentGroup56 setTransportMovementDetails(TransportMovementDetails transportMovementDetails) {
        this.transportMovementDetails = transportMovementDetails;  return this;
    }

    public List getMeasurements() {
        return measurements;
    }

    public SegmentGroup56 setMeasurements(List measurements) {
        this.measurements = measurements;  return this;
    }

    public List getDimensions() {
        return dimensions;
    }

    public SegmentGroup56 setDimensions(List dimensions) {
        this.dimensions = dimensions;  return this;
    }

    public List getSealNumber() {
        return sealNumber;
    }

    public SegmentGroup56 setSealNumber(List sealNumber) {
        this.sealNumber = sealNumber;  return this;
    }

    public List getTransportPlacement() {
        return transportPlacement;
    }

    public SegmentGroup56 setTransportPlacement(List transportPlacement) {
        this.transportPlacement = transportPlacement;  return this;
    }

    public HandlingInstructions getHandlingInstructions() {
        return handlingInstructions;
    }

    public SegmentGroup56 setHandlingInstructions(HandlingInstructions handlingInstructions) {
        this.handlingInstructions = handlingInstructions;  return this;
    }

    public Temperature getTemperature() {
        return temperature;
    }

    public SegmentGroup56 setTemperature(Temperature temperature) {
        this.temperature = temperature;  return this;
    }

    public List getFreeText() {
        return freeText;
    }

    public SegmentGroup56 setFreeText(List freeText) {
        this.freeText = freeText;  return this;
    }

    public List getSegmentGroup57() {
        return segmentGroup57;
    }

    public SegmentGroup56 setSegmentGroup57(List segmentGroup57) {
        this.segmentGroup57 = segmentGroup57;  return this;
    }

    public List getSegmentGroup58() {
        return segmentGroup58;
    }

    public SegmentGroup56 setSegmentGroup58(List segmentGroup58) {
        this.segmentGroup58 = segmentGroup58;  return this;
    }

    public List getSegmentGroup59() {
        return segmentGroup59;
    }

    public SegmentGroup56 setSegmentGroup59(List segmentGroup59) {
        this.segmentGroup59 = segmentGroup59;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy