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

org.milyn.edi.unedifact.d98a.CHACCO.SegmentGroup5 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.d98a.CHACCO;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d98a.common.RELRelationship;    
import org.milyn.edi.unedifact.d98a.common.CPTAccountIdentification;    
import org.milyn.edi.unedifact.d98a.common.FIIFinancialInstitutionInformation;    
import org.milyn.edi.unedifact.d98a.common.PATPaymentTermsBasis;    
import org.milyn.edi.unedifact.d98a.common.PAIPaymentInstructions;    
import java.util.List;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup5 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private RELRelationship rELRelationship;
    private CPTAccountIdentification cPTAccountIdentification;
    private FIIFinancialInstitutionInformation fIIFinancialInstitutionInformation;
    private PATPaymentTermsBasis pATPaymentTermsBasis;
    private PAIPaymentInstructions pAIPaymentInstructions;
    private List segmentGroup6;

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

        if(rELRelationship != null) {
            nodeWriter.write("REL");
            nodeWriter.write(delimiters.getField());
            rELRelationship.write(nodeWriter, delimiters);
        }
        if(cPTAccountIdentification != null) {
            nodeWriter.write("CPT");
            nodeWriter.write(delimiters.getField());
            cPTAccountIdentification.write(nodeWriter, delimiters);
        }
        if(fIIFinancialInstitutionInformation != null) {
            nodeWriter.write("FII");
            nodeWriter.write(delimiters.getField());
            fIIFinancialInstitutionInformation.write(nodeWriter, delimiters);
        }
        if(pATPaymentTermsBasis != null) {
            nodeWriter.write("PAT");
            nodeWriter.write(delimiters.getField());
            pATPaymentTermsBasis.write(nodeWriter, delimiters);
        }
        if(pAIPaymentInstructions != null) {
            nodeWriter.write("PAI");
            nodeWriter.write(delimiters.getField());
            pAIPaymentInstructions.write(nodeWriter, delimiters);
        }
        if(segmentGroup6 != null && !segmentGroup6.isEmpty()) {
            for(SegmentGroup6 segmentGroup6Inst : segmentGroup6) {
                segmentGroup6Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public RELRelationship getRELRelationship() {
        return rELRelationship;
    }

    public SegmentGroup5 setRELRelationship(RELRelationship rELRelationship) {
        this.rELRelationship = rELRelationship;  return this;
    }

    public CPTAccountIdentification getCPTAccountIdentification() {
        return cPTAccountIdentification;
    }

    public SegmentGroup5 setCPTAccountIdentification(CPTAccountIdentification cPTAccountIdentification) {
        this.cPTAccountIdentification = cPTAccountIdentification;  return this;
    }

    public FIIFinancialInstitutionInformation getFIIFinancialInstitutionInformation() {
        return fIIFinancialInstitutionInformation;
    }

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

    public PATPaymentTermsBasis getPATPaymentTermsBasis() {
        return pATPaymentTermsBasis;
    }

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

    public PAIPaymentInstructions getPAIPaymentInstructions() {
        return pAIPaymentInstructions;
    }

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

    public List getSegmentGroup6() {
        return segmentGroup6;
    }

    public SegmentGroup5 setSegmentGroup6(List segmentGroup6) {
        this.segmentGroup6 = segmentGroup6;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy