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

org.milyn.edi.unedifact.d98a.BOPBNK.SegmentGroup6 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.d98a.BOPBNK;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d98a.common.RelatedIdentificationNumbers;    
import org.milyn.edi.unedifact.d98a.common.Quantity;    
import org.milyn.edi.unedifact.d98a.common.PriceDetails;    
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 RelatedIdentificationNumbers relatedIdentificationNumbers;
    private Quantity quantity;
    private PriceDetails priceDetails;

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

        if(relatedIdentificationNumbers != null) {
            nodeWriter.write("GIR");
            nodeWriter.write(delimiters.getField());
            relatedIdentificationNumbers.write(nodeWriter, delimiters);
        }
        if(quantity != null) {
            nodeWriter.write("QTY");
            nodeWriter.write(delimiters.getField());
            quantity.write(nodeWriter, delimiters);
        }
        if(priceDetails != null) {
            nodeWriter.write("PRI");
            nodeWriter.write(delimiters.getField());
            priceDetails.write(nodeWriter, delimiters);
        }
    }

    public RelatedIdentificationNumbers getRelatedIdentificationNumbers() {
        return relatedIdentificationNumbers;
    }

    public SegmentGroup6 setRelatedIdentificationNumbers(RelatedIdentificationNumbers relatedIdentificationNumbers) {
        this.relatedIdentificationNumbers = relatedIdentificationNumbers;  return this;
    }

    public Quantity getQuantity() {
        return quantity;
    }

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

    public PriceDetails getPriceDetails() {
        return priceDetails;
    }

    public SegmentGroup6 setPriceDetails(PriceDetails priceDetails) {
        this.priceDetails = priceDetails;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy