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

org.milyn.edi.unedifact.d07a.CNTCND.SegmentGroup20 Maven / Gradle / Ivy

There is a newer version: 1.7.1.0
Show newest version
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d07a.CNTCND;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d07a.common.FSQFormulaSequence;    
import java.util.List;    
import org.milyn.edi.unedifact.d07a.common.RTERateDetails;    
import org.milyn.edi.unedifact.d07a.common.PCDPercentageDetails;    
import org.milyn.edi.unedifact.d07a.common.MEAMeasurements;    
import org.milyn.edi.unedifact.d07a.common.MOAMonetaryAmount;    
import org.milyn.edi.unedifact.d07a.common.RFFReference;    
import org.milyn.edi.unedifact.d07a.common.DTMDateTimePeriod;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup20 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private FSQFormulaSequence fSQFormulaSequence;
    private List rTERateDetails;
    private List pCDPercentageDetails;
    private List mEAMeasurements;
    private List mOAMonetaryAmount;
    private List rFFReference;
    private List dTMDateTimePeriod;
    private List segmentGroup21;

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

        if(fSQFormulaSequence != null) {
            nodeWriter.write("FSQ");
            nodeWriter.write(delimiters.getField());
            fSQFormulaSequence.write(nodeWriter, delimiters);
        }
        if(rTERateDetails != null && !rTERateDetails.isEmpty()) {
            for(RTERateDetails rTERateDetailsInst : rTERateDetails) {
                nodeWriter.write("RTE");
                nodeWriter.write(delimiters.getField());
                rTERateDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(pCDPercentageDetails != null && !pCDPercentageDetails.isEmpty()) {
            for(PCDPercentageDetails pCDPercentageDetailsInst : pCDPercentageDetails) {
                nodeWriter.write("PCD");
                nodeWriter.write(delimiters.getField());
                pCDPercentageDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(mEAMeasurements != null && !mEAMeasurements.isEmpty()) {
            for(MEAMeasurements mEAMeasurementsInst : mEAMeasurements) {
                nodeWriter.write("MEA");
                nodeWriter.write(delimiters.getField());
                mEAMeasurementsInst.write(nodeWriter, delimiters);
            }
        }
        if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
            for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                mOAMonetaryAmountInst.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(segmentGroup21 != null && !segmentGroup21.isEmpty()) {
            for(SegmentGroup21 segmentGroup21Inst : segmentGroup21) {
                segmentGroup21Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public FSQFormulaSequence getFSQFormulaSequence() {
        return fSQFormulaSequence;
    }

    public SegmentGroup20 setFSQFormulaSequence(FSQFormulaSequence fSQFormulaSequence) {
        this.fSQFormulaSequence = fSQFormulaSequence;  return this;
    }

    public List getRTERateDetails() {
        return rTERateDetails;
    }

    public SegmentGroup20 setRTERateDetails(List rTERateDetails) {
        this.rTERateDetails = rTERateDetails;  return this;
    }

    public List getPCDPercentageDetails() {
        return pCDPercentageDetails;
    }

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

    public List getMEAMeasurements() {
        return mEAMeasurements;
    }

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

    public List getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

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

    public List getRFFReference() {
        return rFFReference;
    }

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

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public List getSegmentGroup21() {
        return segmentGroup21;
    }

    public SegmentGroup20 setSegmentGroup21(List segmentGroup21) {
        this.segmentGroup21 = segmentGroup21;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy