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

org.milyn.edi.unedifact.d97a.IFTCCA.SegmentGroup18 Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d97a.common.TCCTransportChargeRateCalculations;    
import java.util.List;    
import org.milyn.edi.unedifact.d97a.common.PRIPriceDetails;    
import org.milyn.edi.unedifact.d97a.common.EQNNumberOfUnits;    
import org.milyn.edi.unedifact.d97a.common.PCDPercentageDetails;    
import org.milyn.edi.unedifact.d97a.common.MOAMonetaryAmount;    
import org.milyn.edi.unedifact.d97a.common.QTYQuantity;    
import org.milyn.edi.unedifact.d97a.common.LOCPlaceLocationIdentification;    
import org.milyn.edi.unedifact.d97a.common.RFFReference;    
import org.milyn.edi.unedifact.d97a.common.MEAMeasurements;    
import org.milyn.edi.unedifact.d97a.common.CUXCurrencies;    
import org.milyn.edi.unedifact.d97a.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d97a.common.FTXFreeText;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup18 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private TCCTransportChargeRateCalculations tCCTransportChargeRateCalculations;
    private List pRIPriceDetails;
    private List eQNNumberOfUnits;
    private List pCDPercentageDetails;
    private List mOAMonetaryAmount;
    private List qTYQuantity;
    private List lOCPlaceLocationIdentification;
    private List rFFReference;
    private List mEAMeasurements;
    private List cUXCurrencies;
    private List dTMDateTimePeriod;
    private List fTXFreeText;

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

        if(tCCTransportChargeRateCalculations != null) {
            nodeWriter.write("TCC");
            nodeWriter.write(delimiters.getField());
            tCCTransportChargeRateCalculations.write(nodeWriter, delimiters);
        }
        if(pRIPriceDetails != null && !pRIPriceDetails.isEmpty()) {
            for(PRIPriceDetails pRIPriceDetailsInst : pRIPriceDetails) {
                nodeWriter.write("PRI");
                nodeWriter.write(delimiters.getField());
                pRIPriceDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(eQNNumberOfUnits != null && !eQNNumberOfUnits.isEmpty()) {
            for(EQNNumberOfUnits eQNNumberOfUnitsInst : eQNNumberOfUnits) {
                nodeWriter.write("EQN");
                nodeWriter.write(delimiters.getField());
                eQNNumberOfUnitsInst.write(nodeWriter, delimiters);
            }
        }
        if(pCDPercentageDetails != null && !pCDPercentageDetails.isEmpty()) {
            for(PCDPercentageDetails pCDPercentageDetailsInst : pCDPercentageDetails) {
                nodeWriter.write("PCD");
                nodeWriter.write(delimiters.getField());
                pCDPercentageDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
            for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                mOAMonetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(qTYQuantity != null && !qTYQuantity.isEmpty()) {
            for(QTYQuantity qTYQuantityInst : qTYQuantity) {
                nodeWriter.write("QTY");
                nodeWriter.write(delimiters.getField());
                qTYQuantityInst.write(nodeWriter, delimiters);
            }
        }
        if(lOCPlaceLocationIdentification != null && !lOCPlaceLocationIdentification.isEmpty()) {
            for(LOCPlaceLocationIdentification lOCPlaceLocationIdentificationInst : lOCPlaceLocationIdentification) {
                nodeWriter.write("LOC");
                nodeWriter.write(delimiters.getField());
                lOCPlaceLocationIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(rFFReference != null && !rFFReference.isEmpty()) {
            for(RFFReference rFFReferenceInst : rFFReference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                rFFReferenceInst.write(nodeWriter, delimiters);
            }
        }
        if(mEAMeasurements != null && !mEAMeasurements.isEmpty()) {
            for(MEAMeasurements mEAMeasurementsInst : mEAMeasurements) {
                nodeWriter.write("MEA");
                nodeWriter.write(delimiters.getField());
                mEAMeasurementsInst.write(nodeWriter, delimiters);
            }
        }
        if(cUXCurrencies != null && !cUXCurrencies.isEmpty()) {
            for(CUXCurrencies cUXCurrenciesInst : cUXCurrencies) {
                nodeWriter.write("CUX");
                nodeWriter.write(delimiters.getField());
                cUXCurrenciesInst.write(nodeWriter, delimiters);
            }
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
            for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                fTXFreeTextInst.write(nodeWriter, delimiters);
            }
        }
    }

    public TCCTransportChargeRateCalculations getTCCTransportChargeRateCalculations() {
        return tCCTransportChargeRateCalculations;
    }

    public SegmentGroup18 setTCCTransportChargeRateCalculations(TCCTransportChargeRateCalculations tCCTransportChargeRateCalculations) {
        this.tCCTransportChargeRateCalculations = tCCTransportChargeRateCalculations;  return this;
    }

    public List getPRIPriceDetails() {
        return pRIPriceDetails;
    }

    public SegmentGroup18 setPRIPriceDetails(List pRIPriceDetails) {
        this.pRIPriceDetails = pRIPriceDetails;  return this;
    }

    public List getEQNNumberOfUnits() {
        return eQNNumberOfUnits;
    }

    public SegmentGroup18 setEQNNumberOfUnits(List eQNNumberOfUnits) {
        this.eQNNumberOfUnits = eQNNumberOfUnits;  return this;
    }

    public List getPCDPercentageDetails() {
        return pCDPercentageDetails;
    }

    public SegmentGroup18 setPCDPercentageDetails(List pCDPercentageDetails) {
        this.pCDPercentageDetails = pCDPercentageDetails;  return this;
    }

    public List getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

    public SegmentGroup18 setMOAMonetaryAmount(List mOAMonetaryAmount) {
        this.mOAMonetaryAmount = mOAMonetaryAmount;  return this;
    }

    public List getQTYQuantity() {
        return qTYQuantity;
    }

    public SegmentGroup18 setQTYQuantity(List qTYQuantity) {
        this.qTYQuantity = qTYQuantity;  return this;
    }

    public List getLOCPlaceLocationIdentification() {
        return lOCPlaceLocationIdentification;
    }

    public SegmentGroup18 setLOCPlaceLocationIdentification(List lOCPlaceLocationIdentification) {
        this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification;  return this;
    }

    public List getRFFReference() {
        return rFFReference;
    }

    public SegmentGroup18 setRFFReference(List rFFReference) {
        this.rFFReference = rFFReference;  return this;
    }

    public List getMEAMeasurements() {
        return mEAMeasurements;
    }

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

    public List getCUXCurrencies() {
        return cUXCurrencies;
    }

    public SegmentGroup18 setCUXCurrencies(List cUXCurrencies) {
        this.cUXCurrencies = cUXCurrencies;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

    public SegmentGroup18 setDTMDateTimePeriod(List dTMDateTimePeriod) {
        this.dTMDateTimePeriod = dTMDateTimePeriod;  return this;
    }

    public List getFTXFreeText() {
        return fTXFreeText;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy