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

org.milyn.edi.unedifact.d13a.IFTMAN.SegmentGroup30 Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d13a.common.TCCChargeRateCalculations;    
import org.milyn.edi.unedifact.d13a.common.CUXCurrencies;    
import org.milyn.edi.unedifact.d13a.common.PRIPriceDetails;    
import org.milyn.edi.unedifact.d13a.common.EQNNumberOfUnits;    
import org.milyn.edi.unedifact.d13a.common.PCDPercentageDetails;    
import java.util.List;    
import org.milyn.edi.unedifact.d13a.common.MOAMonetaryAmount;    
import org.milyn.edi.unedifact.d13a.common.QTYQuantity;    
import org.milyn.edi.unedifact.d13a.common.LOCPlaceLocationIdentification;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup30 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private TCCChargeRateCalculations tCCChargeRateCalculations;
    private CUXCurrencies cUXCurrencies;
    private PRIPriceDetails pRIPriceDetails;
    private EQNNumberOfUnits eQNNumberOfUnits;
    private PCDPercentageDetails pCDPercentageDetails;
    private List mOAMonetaryAmount;
    private List qTYQuantity;
    private List lOCPlaceLocationIdentification;

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

        if(tCCChargeRateCalculations != null) {
            nodeWriter.write("TCC");
            nodeWriter.write(delimiters.getField());
            tCCChargeRateCalculations.write(nodeWriter, delimiters);
        }
        if(cUXCurrencies != null) {
            nodeWriter.write("CUX");
            nodeWriter.write(delimiters.getField());
            cUXCurrencies.write(nodeWriter, delimiters);
        }
        if(pRIPriceDetails != null) {
            nodeWriter.write("PRI");
            nodeWriter.write(delimiters.getField());
            pRIPriceDetails.write(nodeWriter, delimiters);
        }
        if(eQNNumberOfUnits != null) {
            nodeWriter.write("EQN");
            nodeWriter.write(delimiters.getField());
            eQNNumberOfUnits.write(nodeWriter, delimiters);
        }
        if(pCDPercentageDetails != null) {
            nodeWriter.write("PCD");
            nodeWriter.write(delimiters.getField());
            pCDPercentageDetails.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);
            }
        }
    }

    public TCCChargeRateCalculations getTCCChargeRateCalculations() {
        return tCCChargeRateCalculations;
    }

    public SegmentGroup30 setTCCChargeRateCalculations(TCCChargeRateCalculations tCCChargeRateCalculations) {
        this.tCCChargeRateCalculations = tCCChargeRateCalculations;  return this;
    }

    public CUXCurrencies getCUXCurrencies() {
        return cUXCurrencies;
    }

    public SegmentGroup30 setCUXCurrencies(CUXCurrencies cUXCurrencies) {
        this.cUXCurrencies = cUXCurrencies;  return this;
    }

    public PRIPriceDetails getPRIPriceDetails() {
        return pRIPriceDetails;
    }

    public SegmentGroup30 setPRIPriceDetails(PRIPriceDetails pRIPriceDetails) {
        this.pRIPriceDetails = pRIPriceDetails;  return this;
    }

    public EQNNumberOfUnits getEQNNumberOfUnits() {
        return eQNNumberOfUnits;
    }

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

    public PCDPercentageDetails getPCDPercentageDetails() {
        return pCDPercentageDetails;
    }

    public SegmentGroup30 setPCDPercentageDetails(PCDPercentageDetails pCDPercentageDetails) {
        this.pCDPercentageDetails = pCDPercentageDetails;  return this;
    }

    public List getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

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

    public List getQTYQuantity() {
        return qTYQuantity;
    }

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

    public List getLOCPlaceLocationIdentification() {
        return lOCPlaceLocationIdentification;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy