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

org.milyn.edi.unedifact.d03b.CONITT.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.d03b.CONITT;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d03b.common.ItemDescription;    
import org.milyn.edi.unedifact.d03b.common.Quantity;    
import org.milyn.edi.unedifact.d03b.common.MonetaryAmount;    
import org.milyn.edi.unedifact.d03b.common.PriceDetails;    
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 ItemDescription itemDescription;
    private Quantity quantity;
    private MonetaryAmount monetaryAmount;
    private PriceDetails priceDetails;

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

        if(itemDescription != null) {
            nodeWriter.write("IMD");
            nodeWriter.write(delimiters.getField());
            itemDescription.write(nodeWriter, delimiters);
        }
        if(quantity != null) {
            nodeWriter.write("QTY");
            nodeWriter.write(delimiters.getField());
            quantity.write(nodeWriter, delimiters);
        }
        if(monetaryAmount != null) {
            nodeWriter.write("MOA");
            nodeWriter.write(delimiters.getField());
            monetaryAmount.write(nodeWriter, delimiters);
        }
        if(priceDetails != null) {
            nodeWriter.write("PRI");
            nodeWriter.write(delimiters.getField());
            priceDetails.write(nodeWriter, delimiters);
        }
    }

    public ItemDescription getItemDescription() {
        return itemDescription;
    }

    public SegmentGroup34 setItemDescription(ItemDescription itemDescription) {
        this.itemDescription = itemDescription;  return this;
    }

    public Quantity getQuantity() {
        return quantity;
    }

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

    public MonetaryAmount getMonetaryAmount() {
        return monetaryAmount;
    }

    public SegmentGroup34 setMonetaryAmount(MonetaryAmount monetaryAmount) {
        this.monetaryAmount = monetaryAmount;  return this;
    }

    public PriceDetails getPriceDetails() {
        return priceDetails;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy