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

org.virtuslab.edi.unedifact.d96a.CONTEN.SegmentGroup34 Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.virtuslab.edi.unedifact.d96a.common.IMDItemDescription;    
import org.virtuslab.edi.unedifact.d96a.common.QTYQuantity;    
import org.virtuslab.edi.unedifact.d96a.common.MOAMonetaryAmount;    
import org.virtuslab.edi.unedifact.d96a.common.PRIPriceDetails;    
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 IMDItemDescription iMDItemDescription;
    private QTYQuantity qTYQuantity;
    private MOAMonetaryAmount mOAMonetaryAmount;
    private PRIPriceDetails pRIPriceDetails;

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

        if(iMDItemDescription != null) {
            nodeWriter.write("IMD");
            nodeWriter.write(delimiters.getField());
            iMDItemDescription.write(nodeWriter, delimiters);
        }
        if(qTYQuantity != null) {
            nodeWriter.write("QTY");
            nodeWriter.write(delimiters.getField());
            qTYQuantity.write(nodeWriter, delimiters);
        }
        if(mOAMonetaryAmount != null) {
            nodeWriter.write("MOA");
            nodeWriter.write(delimiters.getField());
            mOAMonetaryAmount.write(nodeWriter, delimiters);
        }
        if(pRIPriceDetails != null) {
            nodeWriter.write("PRI");
            nodeWriter.write(delimiters.getField());
            pRIPriceDetails.write(nodeWriter, delimiters);
        }
    }

    public IMDItemDescription getIMDItemDescription() {
        return iMDItemDescription;
    }

    public SegmentGroup34 setIMDItemDescription(IMDItemDescription iMDItemDescription) {
        this.iMDItemDescription = iMDItemDescription;  return this;
    }

    public QTYQuantity getQTYQuantity() {
        return qTYQuantity;
    }

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

    public MOAMonetaryAmount getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

    public SegmentGroup34 setMOAMonetaryAmount(MOAMonetaryAmount mOAMonetaryAmount) {
        this.mOAMonetaryAmount = mOAMonetaryAmount;  return this;
    }

    public PRIPriceDetails getPRIPriceDetails() {
        return pRIPriceDetails;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy