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

org.milyn.edi.unedifact.d97a.BOPBNK.SegmentGroup6 Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d97a.common.GIRRelatedIdentificationNumbers;    
import org.milyn.edi.unedifact.d97a.common.QTYQuantity;    
import org.milyn.edi.unedifact.d97a.common.PRIPriceDetails;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup6 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private GIRRelatedIdentificationNumbers gIRRelatedIdentificationNumbers;
    private QTYQuantity qTYQuantity;
    private PRIPriceDetails pRIPriceDetails;

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

        if(gIRRelatedIdentificationNumbers != null) {
            nodeWriter.write("GIR");
            nodeWriter.write(delimiters.getField());
            gIRRelatedIdentificationNumbers.write(nodeWriter, delimiters);
        }
        if(qTYQuantity != null) {
            nodeWriter.write("QTY");
            nodeWriter.write(delimiters.getField());
            qTYQuantity.write(nodeWriter, delimiters);
        }
        if(pRIPriceDetails != null) {
            nodeWriter.write("PRI");
            nodeWriter.write(delimiters.getField());
            pRIPriceDetails.write(nodeWriter, delimiters);
        }
    }

    public GIRRelatedIdentificationNumbers getGIRRelatedIdentificationNumbers() {
        return gIRRelatedIdentificationNumbers;
    }

    public SegmentGroup6 setGIRRelatedIdentificationNumbers(GIRRelatedIdentificationNumbers gIRRelatedIdentificationNumbers) {
        this.gIRRelatedIdentificationNumbers = gIRRelatedIdentificationNumbers;  return this;
    }

    public QTYQuantity getQTYQuantity() {
        return qTYQuantity;
    }

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

    public PRIPriceDetails getPRIPriceDetails() {
        return pRIPriceDetails;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy