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

org.milyn.edi.unedifact.d09b.RECADV.SegmentGroup34 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.d09b.RECADV;

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

public class SegmentGroup34 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private PCIPackageIdentification pCIPackageIdentification;
    private List qTYQuantity;
    private QVRQuantityVariances qVRQuantityVariances;
    private List segmentGroup35;
    private List segmentGroup36;
    private List segmentGroup38;

    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 && !qTYQuantity.isEmpty()) {
            for(QTYQuantity qTYQuantityInst : qTYQuantity) {
                nodeWriter.write("QTY");
                nodeWriter.write(delimiters.getField());
                qTYQuantityInst.write(nodeWriter, delimiters);
            }
        }
        if(qVRQuantityVariances != null) {
            nodeWriter.write("QVR");
            nodeWriter.write(delimiters.getField());
            qVRQuantityVariances.write(nodeWriter, delimiters);
        }
        if(segmentGroup35 != null && !segmentGroup35.isEmpty()) {
            for(SegmentGroup35 segmentGroup35Inst : segmentGroup35) {
                segmentGroup35Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup36 != null && !segmentGroup36.isEmpty()) {
            for(SegmentGroup36 segmentGroup36Inst : segmentGroup36) {
                segmentGroup36Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup38 != null && !segmentGroup38.isEmpty()) {
            for(SegmentGroup38 segmentGroup38Inst : segmentGroup38) {
                segmentGroup38Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public PCIPackageIdentification getPCIPackageIdentification() {
        return pCIPackageIdentification;
    }

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

    public List getQTYQuantity() {
        return qTYQuantity;
    }

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

    public QVRQuantityVariances getQVRQuantityVariances() {
        return qVRQuantityVariances;
    }

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

    public List getSegmentGroup35() {
        return segmentGroup35;
    }

    public SegmentGroup34 setSegmentGroup35(List segmentGroup35) {
        this.segmentGroup35 = segmentGroup35;  return this;
    }

    public List getSegmentGroup36() {
        return segmentGroup36;
    }

    public SegmentGroup34 setSegmentGroup36(List segmentGroup36) {
        this.segmentGroup36 = segmentGroup36;  return this;
    }

    public List getSegmentGroup38() {
        return segmentGroup38;
    }

    public SegmentGroup34 setSegmentGroup38(List segmentGroup38) {
        this.segmentGroup38 = segmentGroup38;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy