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

org.milyn.edi.unedifact.d06b.CNTCND.SegmentGroup8 Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d06b.common.SequenceDetails;    
import org.milyn.edi.unedifact.d06b.common.NameAndAddress;    
import java.util.List;    
import org.milyn.edi.unedifact.d06b.common.ProcessingInformation;    
import org.milyn.edi.unedifact.d06b.common.FinancialInstitutionInformation;    
import org.milyn.edi.unedifact.d06b.common.FreeText;    
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 SequenceDetails sequenceDetails;
    private NameAndAddress nameAndAddress;
    private List processingInformation;
    private List financialInstitutionInformation;
    private List freeText;
    private List segmentGroup9;
    private List segmentGroup10;
    private List segmentGroup11;

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

        if(sequenceDetails != null) {
            nodeWriter.write("SEQ");
            nodeWriter.write(delimiters.getField());
            sequenceDetails.write(nodeWriter, delimiters);
        }
        if(nameAndAddress != null) {
            nodeWriter.write("NAD");
            nodeWriter.write(delimiters.getField());
            nameAndAddress.write(nodeWriter, delimiters);
        }
        if(processingInformation != null && !processingInformation.isEmpty()) {
            for(ProcessingInformation processingInformationInst : processingInformation) {
                nodeWriter.write("GEI");
                nodeWriter.write(delimiters.getField());
                processingInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(financialInstitutionInformation != null && !financialInstitutionInformation.isEmpty()) {
            for(FinancialInstitutionInformation financialInstitutionInformationInst : financialInstitutionInformation) {
                nodeWriter.write("FII");
                nodeWriter.write(delimiters.getField());
                financialInstitutionInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(freeText != null && !freeText.isEmpty()) {
            for(FreeText freeTextInst : freeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                freeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup9 != null && !segmentGroup9.isEmpty()) {
            for(SegmentGroup9 segmentGroup9Inst : segmentGroup9) {
                segmentGroup9Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
            for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
                segmentGroup10Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup11 != null && !segmentGroup11.isEmpty()) {
            for(SegmentGroup11 segmentGroup11Inst : segmentGroup11) {
                segmentGroup11Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public SequenceDetails getSequenceDetails() {
        return sequenceDetails;
    }

    public SegmentGroup8 setSequenceDetails(SequenceDetails sequenceDetails) {
        this.sequenceDetails = sequenceDetails;  return this;
    }

    public NameAndAddress getNameAndAddress() {
        return nameAndAddress;
    }

    public SegmentGroup8 setNameAndAddress(NameAndAddress nameAndAddress) {
        this.nameAndAddress = nameAndAddress;  return this;
    }

    public List getProcessingInformation() {
        return processingInformation;
    }

    public SegmentGroup8 setProcessingInformation(List processingInformation) {
        this.processingInformation = processingInformation;  return this;
    }

    public List getFinancialInstitutionInformation() {
        return financialInstitutionInformation;
    }

    public SegmentGroup8 setFinancialInstitutionInformation(List financialInstitutionInformation) {
        this.financialInstitutionInformation = financialInstitutionInformation;  return this;
    }

    public List getFreeText() {
        return freeText;
    }

    public SegmentGroup8 setFreeText(List freeText) {
        this.freeText = freeText;  return this;
    }

    public List getSegmentGroup9() {
        return segmentGroup9;
    }

    public SegmentGroup8 setSegmentGroup9(List segmentGroup9) {
        this.segmentGroup9 = segmentGroup9;  return this;
    }

    public List getSegmentGroup10() {
        return segmentGroup10;
    }

    public SegmentGroup8 setSegmentGroup10(List segmentGroup10) {
        this.segmentGroup10 = segmentGroup10;  return this;
    }

    public List getSegmentGroup11() {
        return segmentGroup11;
    }

    public SegmentGroup8 setSegmentGroup11(List segmentGroup11) {
        this.segmentGroup11 = segmentGroup11;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy