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

org.milyn.edi.unedifact.d02a.COACSU.SegmentGroup6 Maven / Gradle / Ivy

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

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.PCDPercentageDetails;    
import org.milyn.edi.unedifact.d02a.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d02a.common.FIIFinancialInstitutionInformation;    
import org.milyn.edi.unedifact.d02a.common.PAIPaymentInstructions;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup6 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private PYTPaymentTerms pYTPaymentTerms;
    private List mOAMonetaryAmount;
    private List pCDPercentageDetails;
    private List dTMDateTimePeriod;
    private FIIFinancialInstitutionInformation fIIFinancialInstitutionInformation;
    private List pAIPaymentInstructions;

    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(pCDPercentageDetails != null && !pCDPercentageDetails.isEmpty()) {
            for(PCDPercentageDetails pCDPercentageDetailsInst : pCDPercentageDetails) {
                nodeWriter.write("PCD");
                nodeWriter.write(delimiters.getField());
                pCDPercentageDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(fIIFinancialInstitutionInformation != null) {
            nodeWriter.write("FII");
            nodeWriter.write(delimiters.getField());
            fIIFinancialInstitutionInformation.write(nodeWriter, delimiters);
        }
        if(pAIPaymentInstructions != null && !pAIPaymentInstructions.isEmpty()) {
            for(PAIPaymentInstructions pAIPaymentInstructionsInst : pAIPaymentInstructions) {
                nodeWriter.write("PAI");
                nodeWriter.write(delimiters.getField());
                pAIPaymentInstructionsInst.write(nodeWriter, delimiters);
            }
        }
    }

    public PYTPaymentTerms getPYTPaymentTerms() {
        return pYTPaymentTerms;
    }

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

    public List getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

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

    public List getPCDPercentageDetails() {
        return pCDPercentageDetails;
    }

    public SegmentGroup6 setPCDPercentageDetails(List pCDPercentageDetails) {
        this.pCDPercentageDetails = pCDPercentageDetails;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

    public SegmentGroup6 setDTMDateTimePeriod(List dTMDateTimePeriod) {
        this.dTMDateTimePeriod = dTMDateTimePeriod;  return this;
    }

    public FIIFinancialInstitutionInformation getFIIFinancialInstitutionInformation() {
        return fIIFinancialInstitutionInformation;
    }

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

    public List getPAIPaymentInstructions() {
        return pAIPaymentInstructions;
    }

    public SegmentGroup6 setPAIPaymentInstructions(List pAIPaymentInstructions) {
        this.pAIPaymentInstructions = pAIPaymentInstructions;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy