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

org.milyn.edi.unedifact.d02a.IFCSUM.SegmentGroup22 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.d02a.IFCSUM;

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

public class SegmentGroup22 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private EquipmentDetails equipmentDetails;
    private NumberOfUnits numberOfUnits;
    private TransportPlacement transportPlacement;
    private TransportMovementDetails transportMovementDetails;
    private List measurements;
    private List dimensions;
    private List sealNumber;
    private List nameAndAddress;
    private List placeLocationIdentification;
    private HandlingInstructions handlingInstructions;
    private Temperature temperature;
    private List freeText;
    private List reference;
    private List percentageDetails;
    private List segmentGroup23;
    private List segmentGroup24;

    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(transportPlacement != null) {
            nodeWriter.write("TPL");
            nodeWriter.write(delimiters.getField());
            transportPlacement.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(nameAndAddress != null && !nameAndAddress.isEmpty()) {
            for(NameAndAddress nameAndAddressInst : nameAndAddress) {
                nodeWriter.write("NAD");
                nodeWriter.write(delimiters.getField());
                nameAndAddressInst.write(nodeWriter, delimiters);
            }
        }
        if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
            for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
                nodeWriter.write("LOC");
                nodeWriter.write(delimiters.getField());
                placeLocationIdentificationInst.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(percentageDetails != null && !percentageDetails.isEmpty()) {
            for(PercentageDetails percentageDetailsInst : percentageDetails) {
                nodeWriter.write("PCD");
                nodeWriter.write(delimiters.getField());
                percentageDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup23 != null && !segmentGroup23.isEmpty()) {
            for(SegmentGroup23 segmentGroup23Inst : segmentGroup23) {
                segmentGroup23Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup24 != null && !segmentGroup24.isEmpty()) {
            for(SegmentGroup24 segmentGroup24Inst : segmentGroup24) {
                segmentGroup24Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public EquipmentDetails getEquipmentDetails() {
        return equipmentDetails;
    }

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

    public NumberOfUnits getNumberOfUnits() {
        return numberOfUnits;
    }

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

    public TransportPlacement getTransportPlacement() {
        return transportPlacement;
    }

    public SegmentGroup22 setTransportPlacement(TransportPlacement transportPlacement) {
        this.transportPlacement = transportPlacement;  return this;
    }

    public TransportMovementDetails getTransportMovementDetails() {
        return transportMovementDetails;
    }

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

    public List getMeasurements() {
        return measurements;
    }

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

    public List getDimensions() {
        return dimensions;
    }

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

    public List getSealNumber() {
        return sealNumber;
    }

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

    public List getNameAndAddress() {
        return nameAndAddress;
    }

    public SegmentGroup22 setNameAndAddress(List nameAndAddress) {
        this.nameAndAddress = nameAndAddress;  return this;
    }

    public List getPlaceLocationIdentification() {
        return placeLocationIdentification;
    }

    public SegmentGroup22 setPlaceLocationIdentification(List placeLocationIdentification) {
        this.placeLocationIdentification = placeLocationIdentification;  return this;
    }

    public HandlingInstructions getHandlingInstructions() {
        return handlingInstructions;
    }

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

    public Temperature getTemperature() {
        return temperature;
    }

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

    public List getFreeText() {
        return freeText;
    }

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

    public List getReference() {
        return reference;
    }

    public SegmentGroup22 setReference(List reference) {
        this.reference = reference;  return this;
    }

    public List getPercentageDetails() {
        return percentageDetails;
    }

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

    public List getSegmentGroup23() {
        return segmentGroup23;
    }

    public SegmentGroup22 setSegmentGroup23(List segmentGroup23) {
        this.segmentGroup23 = segmentGroup23;  return this;
    }

    public List getSegmentGroup24() {
        return segmentGroup24;
    }

    public SegmentGroup22 setSegmentGroup24(List segmentGroup24) {
        this.segmentGroup24 = segmentGroup24;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy