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

org.milyn.edi.unedifact.d09b.MEDPID.SegmentGroup2 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.d09b.MEDPID;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d09b.common.GEIProcessingInformation;    
import org.milyn.edi.unedifact.d09b.common.PNAPartyIdentification;    
import java.util.List;    
import org.milyn.edi.unedifact.d09b.common.ADRAddress;    
import org.milyn.edi.unedifact.d09b.common.RFFReference;    
import org.milyn.edi.unedifact.d09b.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d09b.common.IHCPersonCharacteristic;    
import org.milyn.edi.unedifact.d09b.common.NATNationality;    
import org.milyn.edi.unedifact.d09b.common.FTXFreeText;    
import org.milyn.edi.unedifact.d09b.common.LANLanguage;    
import org.milyn.edi.unedifact.d09b.common.HANHandlingInstructions;    
import org.milyn.edi.unedifact.d09b.common.LOCPlaceLocationIdentification;    
import org.milyn.edi.unedifact.d09b.common.FIIFinancialInstitutionInformation;    
import org.milyn.edi.unedifact.d09b.common.CTAContactInformation;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup2 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private GEIProcessingInformation gEIProcessingInformation;
    private PNAPartyIdentification pNAPartyIdentification;
    private List aDRAddress;
    private List rFFReference;
    private List dTMDateTimePeriod;
    private List iHCPersonCharacteristic;
    private List nATNationality;
    private List fTXFreeText;
    private List lANLanguage;
    private List hANHandlingInstructions;
    private List lOCPlaceLocationIdentification;
    private List fIIFinancialInstitutionInformation;
    private List cTAContactInformation;
    private List segmentGroup3;
    private List segmentGroup4;
    private List segmentGroup5;

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

        if(gEIProcessingInformation != null) {
            nodeWriter.write("GEI");
            nodeWriter.write(delimiters.getField());
            gEIProcessingInformation.write(nodeWriter, delimiters);
        }
        if(pNAPartyIdentification != null) {
            nodeWriter.write("PNA");
            nodeWriter.write(delimiters.getField());
            pNAPartyIdentification.write(nodeWriter, delimiters);
        }
        if(aDRAddress != null && !aDRAddress.isEmpty()) {
            for(ADRAddress aDRAddressInst : aDRAddress) {
                nodeWriter.write("ADR");
                nodeWriter.write(delimiters.getField());
                aDRAddressInst.write(nodeWriter, delimiters);
            }
        }
        if(rFFReference != null && !rFFReference.isEmpty()) {
            for(RFFReference rFFReferenceInst : rFFReference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                rFFReferenceInst.write(nodeWriter, delimiters);
            }
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(iHCPersonCharacteristic != null && !iHCPersonCharacteristic.isEmpty()) {
            for(IHCPersonCharacteristic iHCPersonCharacteristicInst : iHCPersonCharacteristic) {
                nodeWriter.write("IHC");
                nodeWriter.write(delimiters.getField());
                iHCPersonCharacteristicInst.write(nodeWriter, delimiters);
            }
        }
        if(nATNationality != null && !nATNationality.isEmpty()) {
            for(NATNationality nATNationalityInst : nATNationality) {
                nodeWriter.write("NAT");
                nodeWriter.write(delimiters.getField());
                nATNationalityInst.write(nodeWriter, delimiters);
            }
        }
        if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
            for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                fTXFreeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(lANLanguage != null && !lANLanguage.isEmpty()) {
            for(LANLanguage lANLanguageInst : lANLanguage) {
                nodeWriter.write("LAN");
                nodeWriter.write(delimiters.getField());
                lANLanguageInst.write(nodeWriter, delimiters);
            }
        }
        if(hANHandlingInstructions != null && !hANHandlingInstructions.isEmpty()) {
            for(HANHandlingInstructions hANHandlingInstructionsInst : hANHandlingInstructions) {
                nodeWriter.write("HAN");
                nodeWriter.write(delimiters.getField());
                hANHandlingInstructionsInst.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(cTAContactInformation != null && !cTAContactInformation.isEmpty()) {
            for(CTAContactInformation cTAContactInformationInst : cTAContactInformation) {
                nodeWriter.write("CTA");
                nodeWriter.write(delimiters.getField());
                cTAContactInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup3 != null && !segmentGroup3.isEmpty()) {
            for(SegmentGroup3 segmentGroup3Inst : segmentGroup3) {
                segmentGroup3Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup4 != null && !segmentGroup4.isEmpty()) {
            for(SegmentGroup4 segmentGroup4Inst : segmentGroup4) {
                segmentGroup4Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup5 != null && !segmentGroup5.isEmpty()) {
            for(SegmentGroup5 segmentGroup5Inst : segmentGroup5) {
                segmentGroup5Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public GEIProcessingInformation getGEIProcessingInformation() {
        return gEIProcessingInformation;
    }

    public SegmentGroup2 setGEIProcessingInformation(GEIProcessingInformation gEIProcessingInformation) {
        this.gEIProcessingInformation = gEIProcessingInformation;  return this;
    }

    public PNAPartyIdentification getPNAPartyIdentification() {
        return pNAPartyIdentification;
    }

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

    public List getADRAddress() {
        return aDRAddress;
    }

    public SegmentGroup2 setADRAddress(List aDRAddress) {
        this.aDRAddress = aDRAddress;  return this;
    }

    public List getRFFReference() {
        return rFFReference;
    }

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

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public List getIHCPersonCharacteristic() {
        return iHCPersonCharacteristic;
    }

    public SegmentGroup2 setIHCPersonCharacteristic(List iHCPersonCharacteristic) {
        this.iHCPersonCharacteristic = iHCPersonCharacteristic;  return this;
    }

    public List getNATNationality() {
        return nATNationality;
    }

    public SegmentGroup2 setNATNationality(List nATNationality) {
        this.nATNationality = nATNationality;  return this;
    }

    public List getFTXFreeText() {
        return fTXFreeText;
    }

    public SegmentGroup2 setFTXFreeText(List fTXFreeText) {
        this.fTXFreeText = fTXFreeText;  return this;
    }

    public List getLANLanguage() {
        return lANLanguage;
    }

    public SegmentGroup2 setLANLanguage(List lANLanguage) {
        this.lANLanguage = lANLanguage;  return this;
    }

    public List getHANHandlingInstructions() {
        return hANHandlingInstructions;
    }

    public SegmentGroup2 setHANHandlingInstructions(List hANHandlingInstructions) {
        this.hANHandlingInstructions = hANHandlingInstructions;  return this;
    }

    public List getLOCPlaceLocationIdentification() {
        return lOCPlaceLocationIdentification;
    }

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

    public List getFIIFinancialInstitutionInformation() {
        return fIIFinancialInstitutionInformation;
    }

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

    public List getCTAContactInformation() {
        return cTAContactInformation;
    }

    public SegmentGroup2 setCTAContactInformation(List cTAContactInformation) {
        this.cTAContactInformation = cTAContactInformation;  return this;
    }

    public List getSegmentGroup3() {
        return segmentGroup3;
    }

    public SegmentGroup2 setSegmentGroup3(List segmentGroup3) {
        this.segmentGroup3 = segmentGroup3;  return this;
    }

    public List getSegmentGroup4() {
        return segmentGroup4;
    }

    public SegmentGroup2 setSegmentGroup4(List segmentGroup4) {
        this.segmentGroup4 = segmentGroup4;  return this;
    }

    public List getSegmentGroup5() {
        return segmentGroup5;
    }

    public SegmentGroup2 setSegmentGroup5(List segmentGroup5) {
        this.segmentGroup5 = segmentGroup5;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy