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

org.milyn.edi.unedifact.d06b.CUSCAR.SegmentGroup5 Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d06b.common.EquipmentDetails;    
import java.util.List;    
import org.milyn.edi.unedifact.d06b.common.TransportServiceRequirements;    
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.NameAndAddress;    
import org.milyn.edi.unedifact.d06b.common.ProcessingInformation;    
import org.milyn.edi.unedifact.d06b.common.PlaceLocationIdentification;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup5 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private EquipmentDetails equipmentDetails;
    private List transportServiceRequirements;
    private List measurements;
    private List dimensions;
    private List sealNumber;
    private List nameAndAddress;
    private List processingInformation;
    private PlaceLocationIdentification placeLocationIdentification;
    private List segmentGroup6;

    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(transportServiceRequirements != null && !transportServiceRequirements.isEmpty()) {
            for(TransportServiceRequirements transportServiceRequirementsInst : transportServiceRequirements) {
                nodeWriter.write("TSR");
                nodeWriter.write(delimiters.getField());
                transportServiceRequirementsInst.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(processingInformation != null && !processingInformation.isEmpty()) {
            for(ProcessingInformation processingInformationInst : processingInformation) {
                nodeWriter.write("GEI");
                nodeWriter.write(delimiters.getField());
                processingInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(placeLocationIdentification != null) {
            nodeWriter.write("LOC");
            nodeWriter.write(delimiters.getField());
            placeLocationIdentification.write(nodeWriter, delimiters);
        }
        if(segmentGroup6 != null && !segmentGroup6.isEmpty()) {
            for(SegmentGroup6 segmentGroup6Inst : segmentGroup6) {
                segmentGroup6Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public EquipmentDetails getEquipmentDetails() {
        return equipmentDetails;
    }

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

    public List getTransportServiceRequirements() {
        return transportServiceRequirements;
    }

    public SegmentGroup5 setTransportServiceRequirements(List transportServiceRequirements) {
        this.transportServiceRequirements = transportServiceRequirements;  return this;
    }

    public List getMeasurements() {
        return measurements;
    }

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

    public List getDimensions() {
        return dimensions;
    }

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

    public List getSealNumber() {
        return sealNumber;
    }

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

    public List getNameAndAddress() {
        return nameAndAddress;
    }

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

    public List getProcessingInformation() {
        return processingInformation;
    }

    public SegmentGroup5 setProcessingInformation(List processingInformation) {
        this.processingInformation = processingInformation;  return this;
    }

    public PlaceLocationIdentification getPlaceLocationIdentification() {
        return placeLocationIdentification;
    }

    public SegmentGroup5 setPlaceLocationIdentification(PlaceLocationIdentification placeLocationIdentification) {
        this.placeLocationIdentification = placeLocationIdentification;  return this;
    }

    public List getSegmentGroup6() {
        return segmentGroup6;
    }

    public SegmentGroup5 setSegmentGroup6(List segmentGroup6) {
        this.segmentGroup6 = segmentGroup6;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy