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

org.milyn.edi.unedifact.d16a.GOVCBR.SegmentGroup62 Maven / Gradle / Ivy

/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d16a.GOVCBR;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d16a.common.GEIProcessingInformation;    
import java.util.List;    
import org.milyn.edi.unedifact.d16a.common.MOAMonetaryAmount;    
import org.milyn.edi.unedifact.d16a.common.PYTPaymentTerms;    
import org.milyn.edi.unedifact.d16a.common.CUXCurrencies;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup62 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private GEIProcessingInformation gEIProcessingInformation;
    private List mOAMonetaryAmount;
    private List pYTPaymentTerms;
    private CUXCurrencies cUXCurrencies;
    private SegmentGroup63 segmentGroup63;

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

        if(gEIProcessingInformation != null) {
            nodeWriter.write("GEI");
            nodeWriter.write(delimiters.getField());
            gEIProcessingInformation.write(nodeWriter, delimiters);
        }
        if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
            for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                mOAMonetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(pYTPaymentTerms != null && !pYTPaymentTerms.isEmpty()) {
            for(PYTPaymentTerms pYTPaymentTermsInst : pYTPaymentTerms) {
                nodeWriter.write("PYT");
                nodeWriter.write(delimiters.getField());
                pYTPaymentTermsInst.write(nodeWriter, delimiters);
            }
        }
        if(cUXCurrencies != null) {
            nodeWriter.write("CUX");
            nodeWriter.write(delimiters.getField());
            cUXCurrencies.write(nodeWriter, delimiters);
        }
        if(segmentGroup63 != null) {
            segmentGroup63.write(nodeWriter, delimiters);
        }
    }

    public GEIProcessingInformation getGEIProcessingInformation() {
        return gEIProcessingInformation;
    }

    public SegmentGroup62 setGEIProcessingInformation(GEIProcessingInformation gEIProcessingInformation) {
        this.gEIProcessingInformation = gEIProcessingInformation;  return this;
    }

    public List getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

    public SegmentGroup62 setMOAMonetaryAmount(List mOAMonetaryAmount) {
        this.mOAMonetaryAmount = mOAMonetaryAmount;  return this;
    }

    public List getPYTPaymentTerms() {
        return pYTPaymentTerms;
    }

    public SegmentGroup62 setPYTPaymentTerms(List pYTPaymentTerms) {
        this.pYTPaymentTerms = pYTPaymentTerms;  return this;
    }

    public CUXCurrencies getCUXCurrencies() {
        return cUXCurrencies;
    }

    public SegmentGroup62 setCUXCurrencies(CUXCurrencies cUXCurrencies) {
        this.cUXCurrencies = cUXCurrencies;  return this;
    }

    public SegmentGroup63 getSegmentGroup63() {
        return segmentGroup63;
    }

    public SegmentGroup62 setSegmentGroup63(SegmentGroup63 segmentGroup63) {
        this.segmentGroup63 = segmentGroup63;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy