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

org.virtuslab.edi.unedifact.d96a.IFTFCC.SegmentGroup42 Maven / Gradle / Ivy

The newest version!
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.virtuslab.edi.unedifact.d96a.IFTFCC;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.virtuslab.edi.unedifact.d96a.common.EQDEquipmentDetails;    
import java.util.List;    
import org.virtuslab.edi.unedifact.d96a.common.TCCTransportChargeRateCalculations;    
import org.virtuslab.edi.unedifact.d96a.common.EQNNumberOfUnits;    
import org.virtuslab.edi.unedifact.d96a.common.TMDTransportMovementDetails;    
import org.virtuslab.edi.unedifact.d96a.common.MEAMeasurements;    
import org.virtuslab.edi.unedifact.d96a.common.DIMDimensions;    
import org.virtuslab.edi.unedifact.d96a.common.SELSealNumber;    
import org.virtuslab.edi.unedifact.d96a.common.TPLTransportPlacement;    
import org.virtuslab.edi.unedifact.d96a.common.FTXFreeText;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup42 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private EQDEquipmentDetails eQDEquipmentDetails;
    private List tCCTransportChargeRateCalculations;
    private EQNNumberOfUnits eQNNumberOfUnits;
    private TMDTransportMovementDetails tMDTransportMovementDetails;
    private List mEAMeasurements;
    private List dIMDimensions;
    private List sELSealNumber;
    private List tPLTransportPlacement;
    private List fTXFreeText;
    private List segmentGroup43;
    private List segmentGroup44;
    private List segmentGroup45;

    public void write(Writer writer, Delimiters delimiters) throws IOException {
        
        Writer nodeWriter = writer;

        if(eQDEquipmentDetails != null) {
            nodeWriter.write("EQD");
            nodeWriter.write(delimiters.getField());
            eQDEquipmentDetails.write(nodeWriter, delimiters);
        }
        if(tCCTransportChargeRateCalculations != null && !tCCTransportChargeRateCalculations.isEmpty()) {
            for(TCCTransportChargeRateCalculations tCCTransportChargeRateCalculationsInst : tCCTransportChargeRateCalculations) {
                nodeWriter.write("TCC");
                nodeWriter.write(delimiters.getField());
                tCCTransportChargeRateCalculationsInst.write(nodeWriter, delimiters);
            }
        }
        if(eQNNumberOfUnits != null) {
            nodeWriter.write("EQN");
            nodeWriter.write(delimiters.getField());
            eQNNumberOfUnits.write(nodeWriter, delimiters);
        }
        if(tMDTransportMovementDetails != null) {
            nodeWriter.write("TMD");
            nodeWriter.write(delimiters.getField());
            tMDTransportMovementDetails.write(nodeWriter, delimiters);
        }
        if(mEAMeasurements != null && !mEAMeasurements.isEmpty()) {
            for(MEAMeasurements mEAMeasurementsInst : mEAMeasurements) {
                nodeWriter.write("MEA");
                nodeWriter.write(delimiters.getField());
                mEAMeasurementsInst.write(nodeWriter, delimiters);
            }
        }
        if(dIMDimensions != null && !dIMDimensions.isEmpty()) {
            for(DIMDimensions dIMDimensionsInst : dIMDimensions) {
                nodeWriter.write("DIM");
                nodeWriter.write(delimiters.getField());
                dIMDimensionsInst.write(nodeWriter, delimiters);
            }
        }
        if(sELSealNumber != null && !sELSealNumber.isEmpty()) {
            for(SELSealNumber sELSealNumberInst : sELSealNumber) {
                nodeWriter.write("SEL");
                nodeWriter.write(delimiters.getField());
                sELSealNumberInst.write(nodeWriter, delimiters);
            }
        }
        if(tPLTransportPlacement != null && !tPLTransportPlacement.isEmpty()) {
            for(TPLTransportPlacement tPLTransportPlacementInst : tPLTransportPlacement) {
                nodeWriter.write("TPL");
                nodeWriter.write(delimiters.getField());
                tPLTransportPlacementInst.write(nodeWriter, delimiters);
            }
        }
        if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
            for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                fTXFreeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup43 != null && !segmentGroup43.isEmpty()) {
            for(SegmentGroup43 segmentGroup43Inst : segmentGroup43) {
                segmentGroup43Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup44 != null && !segmentGroup44.isEmpty()) {
            for(SegmentGroup44 segmentGroup44Inst : segmentGroup44) {
                segmentGroup44Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup45 != null && !segmentGroup45.isEmpty()) {
            for(SegmentGroup45 segmentGroup45Inst : segmentGroup45) {
                segmentGroup45Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public EQDEquipmentDetails getEQDEquipmentDetails() {
        return eQDEquipmentDetails;
    }

    public SegmentGroup42 setEQDEquipmentDetails(EQDEquipmentDetails eQDEquipmentDetails) {
        this.eQDEquipmentDetails = eQDEquipmentDetails;  return this;
    }

    public List getTCCTransportChargeRateCalculations() {
        return tCCTransportChargeRateCalculations;
    }

    public SegmentGroup42 setTCCTransportChargeRateCalculations(List tCCTransportChargeRateCalculations) {
        this.tCCTransportChargeRateCalculations = tCCTransportChargeRateCalculations;  return this;
    }

    public EQNNumberOfUnits getEQNNumberOfUnits() {
        return eQNNumberOfUnits;
    }

    public SegmentGroup42 setEQNNumberOfUnits(EQNNumberOfUnits eQNNumberOfUnits) {
        this.eQNNumberOfUnits = eQNNumberOfUnits;  return this;
    }

    public TMDTransportMovementDetails getTMDTransportMovementDetails() {
        return tMDTransportMovementDetails;
    }

    public SegmentGroup42 setTMDTransportMovementDetails(TMDTransportMovementDetails tMDTransportMovementDetails) {
        this.tMDTransportMovementDetails = tMDTransportMovementDetails;  return this;
    }

    public List getMEAMeasurements() {
        return mEAMeasurements;
    }

    public SegmentGroup42 setMEAMeasurements(List mEAMeasurements) {
        this.mEAMeasurements = mEAMeasurements;  return this;
    }

    public List getDIMDimensions() {
        return dIMDimensions;
    }

    public SegmentGroup42 setDIMDimensions(List dIMDimensions) {
        this.dIMDimensions = dIMDimensions;  return this;
    }

    public List getSELSealNumber() {
        return sELSealNumber;
    }

    public SegmentGroup42 setSELSealNumber(List sELSealNumber) {
        this.sELSealNumber = sELSealNumber;  return this;
    }

    public List getTPLTransportPlacement() {
        return tPLTransportPlacement;
    }

    public SegmentGroup42 setTPLTransportPlacement(List tPLTransportPlacement) {
        this.tPLTransportPlacement = tPLTransportPlacement;  return this;
    }

    public List getFTXFreeText() {
        return fTXFreeText;
    }

    public SegmentGroup42 setFTXFreeText(List fTXFreeText) {
        this.fTXFreeText = fTXFreeText;  return this;
    }

    public List getSegmentGroup43() {
        return segmentGroup43;
    }

    public SegmentGroup42 setSegmentGroup43(List segmentGroup43) {
        this.segmentGroup43 = segmentGroup43;  return this;
    }

    public List getSegmentGroup44() {
        return segmentGroup44;
    }

    public SegmentGroup42 setSegmentGroup44(List segmentGroup44) {
        this.segmentGroup44 = segmentGroup44;  return this;
    }

    public List getSegmentGroup45() {
        return segmentGroup45;
    }

    public SegmentGroup42 setSegmentGroup45(List segmentGroup45) {
        this.segmentGroup45 = segmentGroup45;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy