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

org.milyn.edi.unedifact.d06b.IFCSUM.SegmentGroup71 Maven / Gradle / Ivy

/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d06b.IFCSUM;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d06b.common.EquipmentDetails;    
import org.milyn.edi.unedifact.d06b.common.NumberOfUnits;    
import org.milyn.edi.unedifact.d06b.common.TransportMovementDetails;    
import java.util.List;    
import org.milyn.edi.unedifact.d06b.common.Measurements;    
import org.milyn.edi.unedifact.d06b.common.Dimensions;    
import org.milyn.edi.unedifact.d06b.common.SealNumber;    
import org.milyn.edi.unedifact.d06b.common.TransportPlacement;    
import org.milyn.edi.unedifact.d06b.common.HandlingInstructions;    
import org.milyn.edi.unedifact.d06b.common.Temperature;    
import org.milyn.edi.unedifact.d06b.common.FreeText;    
import org.milyn.edi.unedifact.d06b.common.PercentageDetails;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup71 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 segmentGroup72;
    private List segmentGroup73;
    private List segmentGroup74;
    private List segmentGroup75;

    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(segmentGroup72 != null && !segmentGroup72.isEmpty()) {
            for(SegmentGroup72 segmentGroup72Inst : segmentGroup72) {
                segmentGroup72Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup73 != null && !segmentGroup73.isEmpty()) {
            for(SegmentGroup73 segmentGroup73Inst : segmentGroup73) {
                segmentGroup73Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup74 != null && !segmentGroup74.isEmpty()) {
            for(SegmentGroup74 segmentGroup74Inst : segmentGroup74) {
                segmentGroup74Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup75 != null && !segmentGroup75.isEmpty()) {
            for(SegmentGroup75 segmentGroup75Inst : segmentGroup75) {
                segmentGroup75Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public EquipmentDetails getEquipmentDetails() {
        return equipmentDetails;
    }

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

    public NumberOfUnits getNumberOfUnits() {
        return numberOfUnits;
    }

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

    public TransportMovementDetails getTransportMovementDetails() {
        return transportMovementDetails;
    }

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

    public List getMeasurements() {
        return measurements;
    }

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

    public List getDimensions() {
        return dimensions;
    }

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

    public List getSealNumber() {
        return sealNumber;
    }

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

    public List getTransportPlacement() {
        return transportPlacement;
    }

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

    public HandlingInstructions getHandlingInstructions() {
        return handlingInstructions;
    }

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

    public Temperature getTemperature() {
        return temperature;
    }

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

    public List getFreeText() {
        return freeText;
    }

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

    public List getPercentageDetails() {
        return percentageDetails;
    }

    public SegmentGroup71 setPercentageDetails(List percentageDetails) {
        this.percentageDetails = percentageDetails;  return this;
    }

    public List getSegmentGroup72() {
        return segmentGroup72;
    }

    public SegmentGroup71 setSegmentGroup72(List segmentGroup72) {
        this.segmentGroup72 = segmentGroup72;  return this;
    }

    public List getSegmentGroup73() {
        return segmentGroup73;
    }

    public SegmentGroup71 setSegmentGroup73(List segmentGroup73) {
        this.segmentGroup73 = segmentGroup73;  return this;
    }

    public List getSegmentGroup74() {
        return segmentGroup74;
    }

    public SegmentGroup71 setSegmentGroup74(List segmentGroup74) {
        this.segmentGroup74 = segmentGroup74;  return this;
    }

    public List getSegmentGroup75() {
        return segmentGroup75;
    }

    public SegmentGroup71 setSegmentGroup75(List segmentGroup75) {
        this.segmentGroup75 = segmentGroup75;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy