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

org.virtuslab.edi.unedifact.d96a.PARTIN.SegmentGroup10 Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.virtuslab.edi.unedifact.d96a.common.PAIPaymentInstructions;    
import org.virtuslab.edi.unedifact.d96a.common.PATPaymentTermsBasis;    
import java.util.List;    
import org.virtuslab.edi.unedifact.d96a.common.CUXCurrencies;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup10 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private PAIPaymentInstructions pAIPaymentInstructions;
    private PATPaymentTermsBasis pATPaymentTermsBasis;
    private List cUXCurrencies;

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

        if(pAIPaymentInstructions != null) {
            nodeWriter.write("PAI");
            nodeWriter.write(delimiters.getField());
            pAIPaymentInstructions.write(nodeWriter, delimiters);
        }
        if(pATPaymentTermsBasis != null) {
            nodeWriter.write("PAT");
            nodeWriter.write(delimiters.getField());
            pATPaymentTermsBasis.write(nodeWriter, delimiters);
        }
        if(cUXCurrencies != null && !cUXCurrencies.isEmpty()) {
            for(CUXCurrencies cUXCurrenciesInst : cUXCurrencies) {
                nodeWriter.write("CUX");
                nodeWriter.write(delimiters.getField());
                cUXCurrenciesInst.write(nodeWriter, delimiters);
            }
        }
    }

    public PAIPaymentInstructions getPAIPaymentInstructions() {
        return pAIPaymentInstructions;
    }

    public SegmentGroup10 setPAIPaymentInstructions(PAIPaymentInstructions pAIPaymentInstructions) {
        this.pAIPaymentInstructions = pAIPaymentInstructions;  return this;
    }

    public PATPaymentTermsBasis getPATPaymentTermsBasis() {
        return pATPaymentTermsBasis;
    }

    public SegmentGroup10 setPATPaymentTermsBasis(PATPaymentTermsBasis pATPaymentTermsBasis) {
        this.pATPaymentTermsBasis = pATPaymentTermsBasis;  return this;
    }

    public List getCUXCurrencies() {
        return cUXCurrencies;
    }

    public SegmentGroup10 setCUXCurrencies(List cUXCurrencies) {
        this.cUXCurrencies = cUXCurrencies;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy