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

org.milyn.edi.unedifact.d99b.RECADV.SegmentGroup29 Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d99b.common.PCIPackageIdentification;    
import org.milyn.edi.unedifact.d99b.common.QTYQuantity;    
import org.milyn.edi.unedifact.d99b.common.QVRQuantityVariances;    
import java.util.List;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup29 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private PCIPackageIdentification pCIPackageIdentification;
    private QTYQuantity qTYQuantity;
    private QVRQuantityVariances qVRQuantityVariances;
    private List segmentGroup30;
    private List segmentGroup31;

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

        if(pCIPackageIdentification != null) {
            nodeWriter.write("PCI");
            nodeWriter.write(delimiters.getField());
            pCIPackageIdentification.write(nodeWriter, delimiters);
        }
        if(qTYQuantity != null) {
            nodeWriter.write("QTY");
            nodeWriter.write(delimiters.getField());
            qTYQuantity.write(nodeWriter, delimiters);
        }
        if(qVRQuantityVariances != null) {
            nodeWriter.write("QVR");
            nodeWriter.write(delimiters.getField());
            qVRQuantityVariances.write(nodeWriter, delimiters);
        }
        if(segmentGroup30 != null && !segmentGroup30.isEmpty()) {
            for(SegmentGroup30 segmentGroup30Inst : segmentGroup30) {
                segmentGroup30Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup31 != null && !segmentGroup31.isEmpty()) {
            for(SegmentGroup31 segmentGroup31Inst : segmentGroup31) {
                segmentGroup31Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public PCIPackageIdentification getPCIPackageIdentification() {
        return pCIPackageIdentification;
    }

    public SegmentGroup29 setPCIPackageIdentification(PCIPackageIdentification pCIPackageIdentification) {
        this.pCIPackageIdentification = pCIPackageIdentification;  return this;
    }

    public QTYQuantity getQTYQuantity() {
        return qTYQuantity;
    }

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

    public QVRQuantityVariances getQVRQuantityVariances() {
        return qVRQuantityVariances;
    }

    public SegmentGroup29 setQVRQuantityVariances(QVRQuantityVariances qVRQuantityVariances) {
        this.qVRQuantityVariances = qVRQuantityVariances;  return this;
    }

    public List getSegmentGroup30() {
        return segmentGroup30;
    }

    public SegmentGroup29 setSegmentGroup30(List segmentGroup30) {
        this.segmentGroup30 = segmentGroup30;  return this;
    }

    public List getSegmentGroup31() {
        return segmentGroup31;
    }

    public SegmentGroup29 setSegmentGroup31(List segmentGroup31) {
        this.segmentGroup31 = segmentGroup31;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy