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

org.milyn.edi.unedifact.d06b.COPARN.SegmentGroup13 Maven / Gradle / Ivy

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

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.Reference;    
import org.milyn.edi.unedifact.d06b.common.NumberOfUnits;    
import org.milyn.edi.unedifact.d06b.common.TransportMovementDetails;    
import org.milyn.edi.unedifact.d06b.common.DateTimePeriod;    
import org.milyn.edi.unedifact.d06b.common.TransportServiceRequirements;    
import org.milyn.edi.unedifact.d06b.common.PlaceLocationIdentification;    
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.FreeText;    
import org.milyn.edi.unedifact.d06b.common.PercentageDetails;    
import org.milyn.edi.unedifact.d06b.common.MonetaryAmount;    
import org.milyn.edi.unedifact.d06b.common.GovernmentalRequirements;    
import org.milyn.edi.unedifact.d06b.common.AttachedEquipment;    
import org.milyn.edi.unedifact.d06b.common.ComponentDetails;    
import org.milyn.edi.unedifact.d06b.common.HandlingInstructions;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup13 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private EquipmentDetails equipmentDetails;
    private List reference;
    private NumberOfUnits numberOfUnits;
    private List transportMovementDetails;
    private List dateTimePeriod;
    private List transportServiceRequirements;
    private List placeLocationIdentification;
    private List measurements;
    private List dimensions;
    private List segmentGroup14;
    private List sealNumber;
    private List freeText;
    private List percentageDetails;
    private List segmentGroup15;
    private List monetaryAmount;
    private List governmentalRequirements;
    private AttachedEquipment attachedEquipment;
    private ComponentDetails componentDetails;
    private List handlingInstructions;
    private List segmentGroup17;
    private List segmentGroup18;
    private List segmentGroup20;

    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(reference != null && !reference.isEmpty()) {
            for(Reference referenceInst : reference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                referenceInst.write(nodeWriter, delimiters);
            }
        }
        if(numberOfUnits != null) {
            nodeWriter.write("EQN");
            nodeWriter.write(delimiters.getField());
            numberOfUnits.write(nodeWriter, delimiters);
        }
        if(transportMovementDetails != null && !transportMovementDetails.isEmpty()) {
            for(TransportMovementDetails transportMovementDetailsInst : transportMovementDetails) {
                nodeWriter.write("TMD");
                nodeWriter.write(delimiters.getField());
                transportMovementDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
            for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(transportServiceRequirements != null && !transportServiceRequirements.isEmpty()) {
            for(TransportServiceRequirements transportServiceRequirementsInst : transportServiceRequirements) {
                nodeWriter.write("TSR");
                nodeWriter.write(delimiters.getField());
                transportServiceRequirementsInst.write(nodeWriter, delimiters);
            }
        }
        if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
            for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
                nodeWriter.write("LOC");
                nodeWriter.write(delimiters.getField());
                placeLocationIdentificationInst.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(segmentGroup14 != null && !segmentGroup14.isEmpty()) {
            for(SegmentGroup14 segmentGroup14Inst : segmentGroup14) {
                segmentGroup14Inst.write(nodeWriter, delimiters);
            }
        }
        if(sealNumber != null && !sealNumber.isEmpty()) {
            for(SealNumber sealNumberInst : sealNumber) {
                nodeWriter.write("SEL");
                nodeWriter.write(delimiters.getField());
                sealNumberInst.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(segmentGroup15 != null && !segmentGroup15.isEmpty()) {
            for(SegmentGroup15 segmentGroup15Inst : segmentGroup15) {
                segmentGroup15Inst.write(nodeWriter, delimiters);
            }
        }
        if(monetaryAmount != null && !monetaryAmount.isEmpty()) {
            for(MonetaryAmount monetaryAmountInst : monetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                monetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(governmentalRequirements != null && !governmentalRequirements.isEmpty()) {
            for(GovernmentalRequirements governmentalRequirementsInst : governmentalRequirements) {
                nodeWriter.write("GOR");
                nodeWriter.write(delimiters.getField());
                governmentalRequirementsInst.write(nodeWriter, delimiters);
            }
        }
        if(attachedEquipment != null) {
            nodeWriter.write("EQA");
            nodeWriter.write(delimiters.getField());
            attachedEquipment.write(nodeWriter, delimiters);
        }
        if(componentDetails != null) {
            nodeWriter.write("COD");
            nodeWriter.write(delimiters.getField());
            componentDetails.write(nodeWriter, delimiters);
        }
        if(handlingInstructions != null && !handlingInstructions.isEmpty()) {
            for(HandlingInstructions handlingInstructionsInst : handlingInstructions) {
                nodeWriter.write("HAN");
                nodeWriter.write(delimiters.getField());
                handlingInstructionsInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup17 != null && !segmentGroup17.isEmpty()) {
            for(SegmentGroup17 segmentGroup17Inst : segmentGroup17) {
                segmentGroup17Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup18 != null && !segmentGroup18.isEmpty()) {
            for(SegmentGroup18 segmentGroup18Inst : segmentGroup18) {
                segmentGroup18Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup20 != null && !segmentGroup20.isEmpty()) {
            for(SegmentGroup20 segmentGroup20Inst : segmentGroup20) {
                segmentGroup20Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public EquipmentDetails getEquipmentDetails() {
        return equipmentDetails;
    }

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

    public List getReference() {
        return reference;
    }

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

    public NumberOfUnits getNumberOfUnits() {
        return numberOfUnits;
    }

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

    public List getTransportMovementDetails() {
        return transportMovementDetails;
    }

    public SegmentGroup13 setTransportMovementDetails(List transportMovementDetails) {
        this.transportMovementDetails = transportMovementDetails;  return this;
    }

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

    public SegmentGroup13 setDateTimePeriod(List dateTimePeriod) {
        this.dateTimePeriod = dateTimePeriod;  return this;
    }

    public List getTransportServiceRequirements() {
        return transportServiceRequirements;
    }

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

    public List getPlaceLocationIdentification() {
        return placeLocationIdentification;
    }

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

    public List getMeasurements() {
        return measurements;
    }

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

    public List getDimensions() {
        return dimensions;
    }

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

    public List getSegmentGroup14() {
        return segmentGroup14;
    }

    public SegmentGroup13 setSegmentGroup14(List segmentGroup14) {
        this.segmentGroup14 = segmentGroup14;  return this;
    }

    public List getSealNumber() {
        return sealNumber;
    }

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

    public List getFreeText() {
        return freeText;
    }

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

    public List getPercentageDetails() {
        return percentageDetails;
    }

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

    public List getSegmentGroup15() {
        return segmentGroup15;
    }

    public SegmentGroup13 setSegmentGroup15(List segmentGroup15) {
        this.segmentGroup15 = segmentGroup15;  return this;
    }

    public List getMonetaryAmount() {
        return monetaryAmount;
    }

    public SegmentGroup13 setMonetaryAmount(List monetaryAmount) {
        this.monetaryAmount = monetaryAmount;  return this;
    }

    public List getGovernmentalRequirements() {
        return governmentalRequirements;
    }

    public SegmentGroup13 setGovernmentalRequirements(List governmentalRequirements) {
        this.governmentalRequirements = governmentalRequirements;  return this;
    }

    public AttachedEquipment getAttachedEquipment() {
        return attachedEquipment;
    }

    public SegmentGroup13 setAttachedEquipment(AttachedEquipment attachedEquipment) {
        this.attachedEquipment = attachedEquipment;  return this;
    }

    public ComponentDetails getComponentDetails() {
        return componentDetails;
    }

    public SegmentGroup13 setComponentDetails(ComponentDetails componentDetails) {
        this.componentDetails = componentDetails;  return this;
    }

    public List getHandlingInstructions() {
        return handlingInstructions;
    }

    public SegmentGroup13 setHandlingInstructions(List handlingInstructions) {
        this.handlingInstructions = handlingInstructions;  return this;
    }

    public List getSegmentGroup17() {
        return segmentGroup17;
    }

    public SegmentGroup13 setSegmentGroup17(List segmentGroup17) {
        this.segmentGroup17 = segmentGroup17;  return this;
    }

    public List getSegmentGroup18() {
        return segmentGroup18;
    }

    public SegmentGroup13 setSegmentGroup18(List segmentGroup18) {
        this.segmentGroup18 = segmentGroup18;  return this;
    }

    public List getSegmentGroup20() {
        return segmentGroup20;
    }

    public SegmentGroup13 setSegmentGroup20(List segmentGroup20) {
        this.segmentGroup20 = segmentGroup20;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy