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

org.milyn.edi.unedifact.d99b.RECADV.SegmentGroup29 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.d99b.RECADV;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d99b.common.PackageIdentification;    
import org.milyn.edi.unedifact.d99b.common.Quantity;    
import org.milyn.edi.unedifact.d99b.common.QuantityVariances;    
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 PackageIdentification packageIdentification;
    private Quantity quantity;
    private QuantityVariances quantityVariances;
    private List segmentGroup30;
    private List segmentGroup31;

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

        if(packageIdentification != null) {
            nodeWriter.write("PCI");
            nodeWriter.write(delimiters.getField());
            packageIdentification.write(nodeWriter, delimiters);
        }
        if(quantity != null) {
            nodeWriter.write("QTY");
            nodeWriter.write(delimiters.getField());
            quantity.write(nodeWriter, delimiters);
        }
        if(quantityVariances != null) {
            nodeWriter.write("QVR");
            nodeWriter.write(delimiters.getField());
            quantityVariances.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 PackageIdentification getPackageIdentification() {
        return packageIdentification;
    }

    public SegmentGroup29 setPackageIdentification(PackageIdentification packageIdentification) {
        this.packageIdentification = packageIdentification;  return this;
    }

    public Quantity getQuantity() {
        return quantity;
    }

    public SegmentGroup29 setQuantity(Quantity quantity) {
        this.quantity = quantity;  return this;
    }

    public QuantityVariances getQuantityVariances() {
        return quantityVariances;
    }

    public SegmentGroup29 setQuantityVariances(QuantityVariances quantityVariances) {
        this.quantityVariances = quantityVariances;  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