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

org.milyn.edi.unedifact.d99b.STLRPT.SegmentGroup7 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.STLRPT;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d99b.common.Currencies;    
import java.util.List;    
import org.milyn.edi.unedifact.d99b.common.MonetaryAmount;    
import org.milyn.edi.unedifact.d99b.common.QuantityVariances;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup7 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private Currencies currencies;
    private List monetaryAmount;
    private QuantityVariances quantityVariances;

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

        if(currencies != null) {
            nodeWriter.write("CUX");
            nodeWriter.write(delimiters.getField());
            currencies.write(nodeWriter, delimiters);
        }
        if(monetaryAmount != null && !monetaryAmount.isEmpty()) {
            for(MonetaryAmount monetaryAmountInst : monetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                monetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(quantityVariances != null) {
            nodeWriter.write("QVR");
            nodeWriter.write(delimiters.getField());
            quantityVariances.write(nodeWriter, delimiters);
        }
    }

    public Currencies getCurrencies() {
        return currencies;
    }

    public SegmentGroup7 setCurrencies(Currencies currencies) {
        this.currencies = currencies;  return this;
    }

    public List getMonetaryAmount() {
        return monetaryAmount;
    }

    public SegmentGroup7 setMonetaryAmount(List monetaryAmount) {
        this.monetaryAmount = monetaryAmount;  return this;
    }

    public QuantityVariances getQuantityVariances() {
        return quantityVariances;
    }

    public SegmentGroup7 setQuantityVariances(QuantityVariances quantityVariances) {
        this.quantityVariances = quantityVariances;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy