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

org.milyn.edi.unedifact.d05a.IFTFCC.SegmentGroup24 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.d05a.IFTFCC;

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

public class SegmentGroup24 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private EQDEquipmentDetails eQDEquipmentDetails;
    private List tCCChargeRateCalculations;
    private EQNNumberOfUnits eQNNumberOfUnits;
    private TMDTransportMovementDetails tMDTransportMovementDetails;
    private List mEAMeasurements;
    private List dIMDimensions;
    private List sELSealNumber;
    private List tPLTransportPlacement;
    private List fTXFreeText;
    private List segmentGroup25;
    private List segmentGroup26;
    private List segmentGroup27;

    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(tCCChargeRateCalculations != null && !tCCChargeRateCalculations.isEmpty()) {
            for(TCCChargeRateCalculations tCCChargeRateCalculationsInst : tCCChargeRateCalculations) {
                nodeWriter.write("TCC");
                nodeWriter.write(delimiters.getField());
                tCCChargeRateCalculationsInst.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(segmentGroup25 != null && !segmentGroup25.isEmpty()) {
            for(SegmentGroup25 segmentGroup25Inst : segmentGroup25) {
                segmentGroup25Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup26 != null && !segmentGroup26.isEmpty()) {
            for(SegmentGroup26 segmentGroup26Inst : segmentGroup26) {
                segmentGroup26Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup27 != null && !segmentGroup27.isEmpty()) {
            for(SegmentGroup27 segmentGroup27Inst : segmentGroup27) {
                segmentGroup27Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public EQDEquipmentDetails getEQDEquipmentDetails() {
        return eQDEquipmentDetails;
    }

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

    public List getTCCChargeRateCalculations() {
        return tCCChargeRateCalculations;
    }

    public SegmentGroup24 setTCCChargeRateCalculations(List tCCChargeRateCalculations) {
        this.tCCChargeRateCalculations = tCCChargeRateCalculations;  return this;
    }

    public EQNNumberOfUnits getEQNNumberOfUnits() {
        return eQNNumberOfUnits;
    }

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

    public TMDTransportMovementDetails getTMDTransportMovementDetails() {
        return tMDTransportMovementDetails;
    }

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

    public List getMEAMeasurements() {
        return mEAMeasurements;
    }

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

    public List getDIMDimensions() {
        return dIMDimensions;
    }

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

    public List getSELSealNumber() {
        return sELSealNumber;
    }

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

    public List getTPLTransportPlacement() {
        return tPLTransportPlacement;
    }

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

    public List getFTXFreeText() {
        return fTXFreeText;
    }

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

    public List getSegmentGroup25() {
        return segmentGroup25;
    }

    public SegmentGroup24 setSegmentGroup25(List segmentGroup25) {
        this.segmentGroup25 = segmentGroup25;  return this;
    }

    public List getSegmentGroup26() {
        return segmentGroup26;
    }

    public SegmentGroup24 setSegmentGroup26(List segmentGroup26) {
        this.segmentGroup26 = segmentGroup26;  return this;
    }

    public List getSegmentGroup27() {
        return segmentGroup27;
    }

    public SegmentGroup24 setSegmentGroup27(List segmentGroup27) {
        this.segmentGroup27 = segmentGroup27;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy