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

org.virtuslab.edi.unedifact.d96a.IFTRIN.SegmentGroup4 Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.virtuslab.edi.unedifact.d96a.common.TCCTransportChargeRateCalculations;    
import java.util.List;    
import org.virtuslab.edi.unedifact.d96a.common.EQNNumberOfUnits;    
import org.virtuslab.edi.unedifact.d96a.common.PCDPercentageDetails;    
import org.virtuslab.edi.unedifact.d96a.common.QTYQuantity;    
import org.virtuslab.edi.unedifact.d96a.common.PRIPriceDetails;    
import org.virtuslab.edi.unedifact.d96a.common.MOAMonetaryAmount;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup4 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private TCCTransportChargeRateCalculations tCCTransportChargeRateCalculations;
    private List eQNNumberOfUnits;
    private List pCDPercentageDetails;
    private List qTYQuantity;
    private List pRIPriceDetails;
    private List mOAMonetaryAmount;

    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(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(qTYQuantity != null && !qTYQuantity.isEmpty()) {
            for(QTYQuantity qTYQuantityInst : qTYQuantity) {
                nodeWriter.write("QTY");
                nodeWriter.write(delimiters.getField());
                qTYQuantityInst.write(nodeWriter, delimiters);
            }
        }
        if(pRIPriceDetails != null && !pRIPriceDetails.isEmpty()) {
            for(PRIPriceDetails pRIPriceDetailsInst : pRIPriceDetails) {
                nodeWriter.write("PRI");
                nodeWriter.write(delimiters.getField());
                pRIPriceDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
            for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                mOAMonetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
    }

    public TCCTransportChargeRateCalculations getTCCTransportChargeRateCalculations() {
        return tCCTransportChargeRateCalculations;
    }

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

    public List getEQNNumberOfUnits() {
        return eQNNumberOfUnits;
    }

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

    public List getPCDPercentageDetails() {
        return pCDPercentageDetails;
    }

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

    public List getQTYQuantity() {
        return qTYQuantity;
    }

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

    public List getPRIPriceDetails() {
        return pRIPriceDetails;
    }

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

    public List getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy