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

org.milyn.edi.unedifact.d99b.INVOIC.SegmentGroup35 Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d99b.common.NADNameAndAddress;    
import java.util.List;    
import org.milyn.edi.unedifact.d99b.common.LOCPlaceLocationIdentification;    
import org.milyn.edi.unedifact.d99b.common.FIIFinancialInstitutionInformation;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup35 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private NADNameAndAddress nADNameAndAddress;
    private List lOCPlaceLocationIdentification;
    private List fIIFinancialInstitutionInformation;
    private List segmentGroup36;
    private List segmentGroup37;
    private List segmentGroup38;

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

        if(nADNameAndAddress != null) {
            nodeWriter.write("NAD");
            nodeWriter.write(delimiters.getField());
            nADNameAndAddress.write(nodeWriter, delimiters);
        }
        if(lOCPlaceLocationIdentification != null && !lOCPlaceLocationIdentification.isEmpty()) {
            for(LOCPlaceLocationIdentification lOCPlaceLocationIdentificationInst : lOCPlaceLocationIdentification) {
                nodeWriter.write("LOC");
                nodeWriter.write(delimiters.getField());
                lOCPlaceLocationIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(fIIFinancialInstitutionInformation != null && !fIIFinancialInstitutionInformation.isEmpty()) {
            for(FIIFinancialInstitutionInformation fIIFinancialInstitutionInformationInst : fIIFinancialInstitutionInformation) {
                nodeWriter.write("FII");
                nodeWriter.write(delimiters.getField());
                fIIFinancialInstitutionInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup36 != null && !segmentGroup36.isEmpty()) {
            for(SegmentGroup36 segmentGroup36Inst : segmentGroup36) {
                segmentGroup36Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup37 != null && !segmentGroup37.isEmpty()) {
            for(SegmentGroup37 segmentGroup37Inst : segmentGroup37) {
                segmentGroup37Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup38 != null && !segmentGroup38.isEmpty()) {
            for(SegmentGroup38 segmentGroup38Inst : segmentGroup38) {
                segmentGroup38Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public NADNameAndAddress getNADNameAndAddress() {
        return nADNameAndAddress;
    }

    public SegmentGroup35 setNADNameAndAddress(NADNameAndAddress nADNameAndAddress) {
        this.nADNameAndAddress = nADNameAndAddress;  return this;
    }

    public List getLOCPlaceLocationIdentification() {
        return lOCPlaceLocationIdentification;
    }

    public SegmentGroup35 setLOCPlaceLocationIdentification(List lOCPlaceLocationIdentification) {
        this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification;  return this;
    }

    public List getFIIFinancialInstitutionInformation() {
        return fIIFinancialInstitutionInformation;
    }

    public SegmentGroup35 setFIIFinancialInstitutionInformation(List fIIFinancialInstitutionInformation) {
        this.fIIFinancialInstitutionInformation = fIIFinancialInstitutionInformation;  return this;
    }

    public List getSegmentGroup36() {
        return segmentGroup36;
    }

    public SegmentGroup35 setSegmentGroup36(List segmentGroup36) {
        this.segmentGroup36 = segmentGroup36;  return this;
    }

    public List getSegmentGroup37() {
        return segmentGroup37;
    }

    public SegmentGroup35 setSegmentGroup37(List segmentGroup37) {
        this.segmentGroup37 = segmentGroup37;  return this;
    }

    public List getSegmentGroup38() {
        return segmentGroup38;
    }

    public SegmentGroup35 setSegmentGroup38(List segmentGroup38) {
        this.segmentGroup38 = segmentGroup38;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy