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

org.milyn.edi.unedifact.d99a.CNTCND.SegmentGroup28 Maven / Gradle / Ivy

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

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

public class SegmentGroup28 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 gISGeneralIndicator;
    private List qTYQuantity;

    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(gISGeneralIndicator != null && !gISGeneralIndicator.isEmpty()) {
            for(GISGeneralIndicator gISGeneralIndicatorInst : gISGeneralIndicator) {
                nodeWriter.write("GIS");
                nodeWriter.write(delimiters.getField());
                gISGeneralIndicatorInst.write(nodeWriter, delimiters);
            }
        }
        if(qTYQuantity != null && !qTYQuantity.isEmpty()) {
            for(QTYQuantity qTYQuantityInst : qTYQuantity) {
                nodeWriter.write("QTY");
                nodeWriter.write(delimiters.getField());
                qTYQuantityInst.write(nodeWriter, delimiters);
            }
        }
    }

    public FSQFormulaSequence getFSQFormulaSequence() {
        return fSQFormulaSequence;
    }

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

    public List getRTERateDetails() {
        return rTERateDetails;
    }

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

    public List getPCDPercentageDetails() {
        return pCDPercentageDetails;
    }

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

    public List getMEAMeasurements() {
        return mEAMeasurements;
    }

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

    public List getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

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

    public List getRFFReference() {
        return rFFReference;
    }

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

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public List getGISGeneralIndicator() {
        return gISGeneralIndicator;
    }

    public SegmentGroup28 setGISGeneralIndicator(List gISGeneralIndicator) {
        this.gISGeneralIndicator = gISGeneralIndicator;  return this;
    }

    public List getQTYQuantity() {
        return qTYQuantity;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy