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

org.virtuslab.edi.unedifact.d96a.CUSDEC.SegmentGroup21 Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.virtuslab.edi.unedifact.d96a.common.LINLineItem;    
import org.virtuslab.edi.unedifact.d96a.common.PIAAdditionalProductId;    
import org.virtuslab.edi.unedifact.d96a.common.QTYQuantity;    
import java.util.List;    
import org.virtuslab.edi.unedifact.d96a.common.PRIPriceDetails;    
import org.virtuslab.edi.unedifact.d96a.common.PCDPercentageDetails;    
import org.virtuslab.edi.unedifact.d96a.common.MEAMeasurements;    
import org.virtuslab.edi.unedifact.d96a.common.QVRQuantityVariances;    
import org.virtuslab.edi.unedifact.d96a.common.MOAMonetaryAmount;    
import org.virtuslab.edi.unedifact.d96a.common.NADNameAndAddress;    
import org.virtuslab.edi.unedifact.d96a.common.GIRRelatedIdentificationNumbers;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup21 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private LINLineItem lINLineItem;
    private PIAAdditionalProductId pIAAdditionalProductId;
    private QTYQuantity qTYQuantity;
    private List pRIPriceDetails;
    private PCDPercentageDetails pCDPercentageDetails;
    private List mEAMeasurements;
    private List qVRQuantityVariances;
    private List mOAMonetaryAmount;
    private List nADNameAndAddress;
    private List gIRRelatedIdentificationNumbers;
    private List segmentGroup22;
    private List segmentGroup23;
    private SegmentGroup25 segmentGroup25;
    private List segmentGroup26;
    private List segmentGroup27;
    private List segmentGroup28;

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

        if(lINLineItem != null) {
            nodeWriter.write("LIN");
            nodeWriter.write(delimiters.getField());
            lINLineItem.write(nodeWriter, delimiters);
        }
        if(pIAAdditionalProductId != null) {
            nodeWriter.write("PIA");
            nodeWriter.write(delimiters.getField());
            pIAAdditionalProductId.write(nodeWriter, delimiters);
        }
        if(qTYQuantity != null) {
            nodeWriter.write("QTY");
            nodeWriter.write(delimiters.getField());
            qTYQuantity.write(nodeWriter, delimiters);
        }
        if(pRIPriceDetails != null && !pRIPriceDetails.isEmpty()) {
            for(PRIPriceDetails pRIPriceDetailsInst : pRIPriceDetails) {
                nodeWriter.write("PRI");
                nodeWriter.write(delimiters.getField());
                pRIPriceDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(pCDPercentageDetails != null) {
            nodeWriter.write("PCD");
            nodeWriter.write(delimiters.getField());
            pCDPercentageDetails.write(nodeWriter, delimiters);
        }
        if(mEAMeasurements != null && !mEAMeasurements.isEmpty()) {
            for(MEAMeasurements mEAMeasurementsInst : mEAMeasurements) {
                nodeWriter.write("MEA");
                nodeWriter.write(delimiters.getField());
                mEAMeasurementsInst.write(nodeWriter, delimiters);
            }
        }
        if(qVRQuantityVariances != null && !qVRQuantityVariances.isEmpty()) {
            for(QVRQuantityVariances qVRQuantityVariancesInst : qVRQuantityVariances) {
                nodeWriter.write("QVR");
                nodeWriter.write(delimiters.getField());
                qVRQuantityVariancesInst.write(nodeWriter, delimiters);
            }
        }
        if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
            for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                mOAMonetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(nADNameAndAddress != null && !nADNameAndAddress.isEmpty()) {
            for(NADNameAndAddress nADNameAndAddressInst : nADNameAndAddress) {
                nodeWriter.write("NAD");
                nodeWriter.write(delimiters.getField());
                nADNameAndAddressInst.write(nodeWriter, delimiters);
            }
        }
        if(gIRRelatedIdentificationNumbers != null && !gIRRelatedIdentificationNumbers.isEmpty()) {
            for(GIRRelatedIdentificationNumbers gIRRelatedIdentificationNumbersInst : gIRRelatedIdentificationNumbers) {
                nodeWriter.write("GIR");
                nodeWriter.write(delimiters.getField());
                gIRRelatedIdentificationNumbersInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup22 != null && !segmentGroup22.isEmpty()) {
            for(SegmentGroup22 segmentGroup22Inst : segmentGroup22) {
                segmentGroup22Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup23 != null && !segmentGroup23.isEmpty()) {
            for(SegmentGroup23 segmentGroup23Inst : segmentGroup23) {
                segmentGroup23Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup25 != null) {
            segmentGroup25.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);
            }
        }
        if(segmentGroup28 != null && !segmentGroup28.isEmpty()) {
            for(SegmentGroup28 segmentGroup28Inst : segmentGroup28) {
                segmentGroup28Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public LINLineItem getLINLineItem() {
        return lINLineItem;
    }

    public SegmentGroup21 setLINLineItem(LINLineItem lINLineItem) {
        this.lINLineItem = lINLineItem;  return this;
    }

    public PIAAdditionalProductId getPIAAdditionalProductId() {
        return pIAAdditionalProductId;
    }

    public SegmentGroup21 setPIAAdditionalProductId(PIAAdditionalProductId pIAAdditionalProductId) {
        this.pIAAdditionalProductId = pIAAdditionalProductId;  return this;
    }

    public QTYQuantity getQTYQuantity() {
        return qTYQuantity;
    }

    public SegmentGroup21 setQTYQuantity(QTYQuantity qTYQuantity) {
        this.qTYQuantity = qTYQuantity;  return this;
    }

    public List getPRIPriceDetails() {
        return pRIPriceDetails;
    }

    public SegmentGroup21 setPRIPriceDetails(List pRIPriceDetails) {
        this.pRIPriceDetails = pRIPriceDetails;  return this;
    }

    public PCDPercentageDetails getPCDPercentageDetails() {
        return pCDPercentageDetails;
    }

    public SegmentGroup21 setPCDPercentageDetails(PCDPercentageDetails pCDPercentageDetails) {
        this.pCDPercentageDetails = pCDPercentageDetails;  return this;
    }

    public List getMEAMeasurements() {
        return mEAMeasurements;
    }

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

    public List getQVRQuantityVariances() {
        return qVRQuantityVariances;
    }

    public SegmentGroup21 setQVRQuantityVariances(List qVRQuantityVariances) {
        this.qVRQuantityVariances = qVRQuantityVariances;  return this;
    }

    public List getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

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

    public List getNADNameAndAddress() {
        return nADNameAndAddress;
    }

    public SegmentGroup21 setNADNameAndAddress(List nADNameAndAddress) {
        this.nADNameAndAddress = nADNameAndAddress;  return this;
    }

    public List getGIRRelatedIdentificationNumbers() {
        return gIRRelatedIdentificationNumbers;
    }

    public SegmentGroup21 setGIRRelatedIdentificationNumbers(List gIRRelatedIdentificationNumbers) {
        this.gIRRelatedIdentificationNumbers = gIRRelatedIdentificationNumbers;  return this;
    }

    public List getSegmentGroup22() {
        return segmentGroup22;
    }

    public SegmentGroup21 setSegmentGroup22(List segmentGroup22) {
        this.segmentGroup22 = segmentGroup22;  return this;
    }

    public List getSegmentGroup23() {
        return segmentGroup23;
    }

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

    public SegmentGroup25 getSegmentGroup25() {
        return segmentGroup25;
    }

    public SegmentGroup21 setSegmentGroup25(SegmentGroup25 segmentGroup25) {
        this.segmentGroup25 = segmentGroup25;  return this;
    }

    public List getSegmentGroup26() {
        return segmentGroup26;
    }

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

    public List getSegmentGroup27() {
        return segmentGroup27;
    }

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

    public List getSegmentGroup28() {
        return segmentGroup28;
    }

    public SegmentGroup21 setSegmentGroup28(List segmentGroup28) {
        this.segmentGroup28 = segmentGroup28;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy