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

org.milyn.edi.unedifact.d02a.ICSOLI.SegmentGroup8 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.d02a.ICSOLI;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d02a.common.PYTPaymentTerms;    
import java.util.List;    
import org.milyn.edi.unedifact.d02a.common.MOAMonetaryAmount;    
import org.milyn.edi.unedifact.d02a.common.PNAPartyIdentification;    
import org.milyn.edi.unedifact.d02a.common.FIIFinancialInstitutionInformation;    
import org.milyn.edi.unedifact.d02a.common.ATTAttribute;    
import org.milyn.edi.unedifact.d02a.common.RFFReference;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup8 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private PYTPaymentTerms pYTPaymentTerms;
    private List mOAMonetaryAmount;
    private PNAPartyIdentification pNAPartyIdentification;
    private FIIFinancialInstitutionInformation fIIFinancialInstitutionInformation;
    private List aTTAttribute;
    private List rFFReference;

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

        if(pYTPaymentTerms != null) {
            nodeWriter.write("PYT");
            nodeWriter.write(delimiters.getField());
            pYTPaymentTerms.write(nodeWriter, delimiters);
        }
        if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
            for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                mOAMonetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(pNAPartyIdentification != null) {
            nodeWriter.write("PNA");
            nodeWriter.write(delimiters.getField());
            pNAPartyIdentification.write(nodeWriter, delimiters);
        }
        if(fIIFinancialInstitutionInformation != null) {
            nodeWriter.write("FII");
            nodeWriter.write(delimiters.getField());
            fIIFinancialInstitutionInformation.write(nodeWriter, delimiters);
        }
        if(aTTAttribute != null && !aTTAttribute.isEmpty()) {
            for(ATTAttribute aTTAttributeInst : aTTAttribute) {
                nodeWriter.write("ATT");
                nodeWriter.write(delimiters.getField());
                aTTAttributeInst.write(nodeWriter, delimiters);
            }
        }
        if(rFFReference != null && !rFFReference.isEmpty()) {
            for(RFFReference rFFReferenceInst : rFFReference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                rFFReferenceInst.write(nodeWriter, delimiters);
            }
        }
    }

    public PYTPaymentTerms getPYTPaymentTerms() {
        return pYTPaymentTerms;
    }

    public SegmentGroup8 setPYTPaymentTerms(PYTPaymentTerms pYTPaymentTerms) {
        this.pYTPaymentTerms = pYTPaymentTerms;  return this;
    }

    public List getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

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

    public PNAPartyIdentification getPNAPartyIdentification() {
        return pNAPartyIdentification;
    }

    public SegmentGroup8 setPNAPartyIdentification(PNAPartyIdentification pNAPartyIdentification) {
        this.pNAPartyIdentification = pNAPartyIdentification;  return this;
    }

    public FIIFinancialInstitutionInformation getFIIFinancialInstitutionInformation() {
        return fIIFinancialInstitutionInformation;
    }

    public SegmentGroup8 setFIIFinancialInstitutionInformation(FIIFinancialInstitutionInformation fIIFinancialInstitutionInformation) {
        this.fIIFinancialInstitutionInformation = fIIFinancialInstitutionInformation;  return this;
    }

    public List getATTAttribute() {
        return aTTAttribute;
    }

    public SegmentGroup8 setATTAttribute(List aTTAttribute) {
        this.aTTAttribute = aTTAttribute;  return this;
    }

    public List getRFFReference() {
        return rFFReference;
    }

    public SegmentGroup8 setRFFReference(List rFFReference) {
        this.rFFReference = rFFReference;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy