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

org.milyn.edi.unedifact.d94a.CONPVA.SegmentGroup22 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.d94a.CONPVA;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d94a.common.BIIBillItemIdentification;    
import org.milyn.edi.unedifact.d94a.common.RCSRequirementsAndConditions;    
import java.util.List;    
import org.milyn.edi.unedifact.d94a.common.QTYQuantity;    
import org.milyn.edi.unedifact.d94a.common.PRIPriceDetails;    
import org.milyn.edi.unedifact.d94a.common.MOAMonetaryAmount;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup22 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private BIIBillItemIdentification bIIBillItemIdentification;
    private RCSRequirementsAndConditions rCSRequirementsAndConditions;
    private List qTYQuantity;
    private PRIPriceDetails pRIPriceDetails;
    private List mOAMonetaryAmount;
    private List segmentGroup23;
    private List segmentGroup25;
    private List segmentGroup26;
    private List segmentGroup27;

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

        if(bIIBillItemIdentification != null) {
            nodeWriter.write("BII");
            nodeWriter.write(delimiters.getField());
            bIIBillItemIdentification.write(nodeWriter, delimiters);
        }
        if(rCSRequirementsAndConditions != null) {
            nodeWriter.write("RCS");
            nodeWriter.write(delimiters.getField());
            rCSRequirementsAndConditions.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) {
            nodeWriter.write("PRI");
            nodeWriter.write(delimiters.getField());
            pRIPriceDetails.write(nodeWriter, delimiters);
        }
        if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
            for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                mOAMonetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup23 != null && !segmentGroup23.isEmpty()) {
            for(SegmentGroup23 segmentGroup23Inst : segmentGroup23) {
                segmentGroup23Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup25 != null && !segmentGroup25.isEmpty()) {
            for(SegmentGroup25 segmentGroup25Inst : segmentGroup25) {
                segmentGroup25Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup26 != null && !segmentGroup26.isEmpty()) {
            for(SegmentGroup26 segmentGroup26Inst : segmentGroup26) {
                segmentGroup26Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup27 != null && !segmentGroup27.isEmpty()) {
            for(SegmentGroup27 segmentGroup27Inst : segmentGroup27) {
                segmentGroup27Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public BIIBillItemIdentification getBIIBillItemIdentification() {
        return bIIBillItemIdentification;
    }

    public SegmentGroup22 setBIIBillItemIdentification(BIIBillItemIdentification bIIBillItemIdentification) {
        this.bIIBillItemIdentification = bIIBillItemIdentification;  return this;
    }

    public RCSRequirementsAndConditions getRCSRequirementsAndConditions() {
        return rCSRequirementsAndConditions;
    }

    public SegmentGroup22 setRCSRequirementsAndConditions(RCSRequirementsAndConditions rCSRequirementsAndConditions) {
        this.rCSRequirementsAndConditions = rCSRequirementsAndConditions;  return this;
    }

    public List getQTYQuantity() {
        return qTYQuantity;
    }

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

    public PRIPriceDetails getPRIPriceDetails() {
        return pRIPriceDetails;
    }

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

    public List getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

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

    public List getSegmentGroup23() {
        return segmentGroup23;
    }

    public SegmentGroup22 setSegmentGroup23(List segmentGroup23) {
        this.segmentGroup23 = segmentGroup23;  return this;
    }

    public List getSegmentGroup25() {
        return segmentGroup25;
    }

    public SegmentGroup22 setSegmentGroup25(List segmentGroup25) {
        this.segmentGroup25 = segmentGroup25;  return this;
    }

    public List getSegmentGroup26() {
        return segmentGroup26;
    }

    public SegmentGroup22 setSegmentGroup26(List segmentGroup26) {
        this.segmentGroup26 = segmentGroup26;  return this;
    }

    public List getSegmentGroup27() {
        return segmentGroup27;
    }

    public SegmentGroup22 setSegmentGroup27(List segmentGroup27) {
        this.segmentGroup27 = segmentGroup27;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy