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

org.milyn.edi.unedifact.d99a.CONPVA.SegmentGroup12 Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d99a.common.APRAdditionalPriceInformation;    
import java.util.List;    
import org.milyn.edi.unedifact.d99a.common.RFFReference;    
import org.milyn.edi.unedifact.d99a.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d99a.common.MOAMonetaryAmount;    
import org.milyn.edi.unedifact.d99a.common.TAXDutyTaxFeeDetails;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup12 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private APRAdditionalPriceInformation aPRAdditionalPriceInformation;
    private List rFFReference;
    private List dTMDateTimePeriod;
    private List mOAMonetaryAmount;
    private List tAXDutyTaxFeeDetails;

    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(rFFReference != null && !rFFReference.isEmpty()) {
            for(RFFReference rFFReferenceInst : rFFReference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                rFFReferenceInst.write(nodeWriter, delimiters);
            }
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
            for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                mOAMonetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(tAXDutyTaxFeeDetails != null && !tAXDutyTaxFeeDetails.isEmpty()) {
            for(TAXDutyTaxFeeDetails tAXDutyTaxFeeDetailsInst : tAXDutyTaxFeeDetails) {
                nodeWriter.write("TAX");
                nodeWriter.write(delimiters.getField());
                tAXDutyTaxFeeDetailsInst.write(nodeWriter, delimiters);
            }
        }
    }

    public APRAdditionalPriceInformation getAPRAdditionalPriceInformation() {
        return aPRAdditionalPriceInformation;
    }

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

    public List getRFFReference() {
        return rFFReference;
    }

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

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public List getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

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

    public List getTAXDutyTaxFeeDetails() {
        return tAXDutyTaxFeeDetails;
    }

    public SegmentGroup12 setTAXDutyTaxFeeDetails(List tAXDutyTaxFeeDetails) {
        this.tAXDutyTaxFeeDetails = tAXDutyTaxFeeDetails;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy