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

org.virtuslab.edi.unedifact.d96a.QUOTES.SegmentGroup9 Maven / Gradle / Ivy

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

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

public class SegmentGroup9 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private APRAdditionalPriceInformation aPRAdditionalPriceInformation;
    private PRIPriceDetails pRIPriceDetails;
    private List qTYQuantity;
    private DTMDateTimePeriod dTMDateTimePeriod;
    private List mOAMonetaryAmount;
    private List rNGRangeDetails;

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

        if(aPRAdditionalPriceInformation != null) {
            nodeWriter.write("APR");
            nodeWriter.write(delimiters.getField());
            aPRAdditionalPriceInformation.write(nodeWriter, delimiters);
        }
        if(pRIPriceDetails != null) {
            nodeWriter.write("PRI");
            nodeWriter.write(delimiters.getField());
            pRIPriceDetails.write(nodeWriter, delimiters);
        }
        if(qTYQuantity != null && !qTYQuantity.isEmpty()) {
            for(QTYQuantity qTYQuantityInst : qTYQuantity) {
                nodeWriter.write("QTY");
                nodeWriter.write(delimiters.getField());
                qTYQuantityInst.write(nodeWriter, delimiters);
            }
        }
        if(dTMDateTimePeriod != null) {
            nodeWriter.write("DTM");
            nodeWriter.write(delimiters.getField());
            dTMDateTimePeriod.write(nodeWriter, delimiters);
        }
        if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
            for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                mOAMonetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(rNGRangeDetails != null && !rNGRangeDetails.isEmpty()) {
            for(RNGRangeDetails rNGRangeDetailsInst : rNGRangeDetails) {
                nodeWriter.write("RNG");
                nodeWriter.write(delimiters.getField());
                rNGRangeDetailsInst.write(nodeWriter, delimiters);
            }
        }
    }

    public APRAdditionalPriceInformation getAPRAdditionalPriceInformation() {
        return aPRAdditionalPriceInformation;
    }

    public SegmentGroup9 setAPRAdditionalPriceInformation(APRAdditionalPriceInformation aPRAdditionalPriceInformation) {
        this.aPRAdditionalPriceInformation = aPRAdditionalPriceInformation;  return this;
    }

    public PRIPriceDetails getPRIPriceDetails() {
        return pRIPriceDetails;
    }

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

    public List getQTYQuantity() {
        return qTYQuantity;
    }

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

    public DTMDateTimePeriod getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

    public SegmentGroup9 setDTMDateTimePeriod(DTMDateTimePeriod dTMDateTimePeriod) {
        this.dTMDateTimePeriod = dTMDateTimePeriod;  return this;
    }

    public List getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

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

    public List getRNGRangeDetails() {
        return rNGRangeDetails;
    }

    public SegmentGroup9 setRNGRangeDetails(List rNGRangeDetails) {
        this.rNGRangeDetails = rNGRangeDetails;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy