net.sourceforge.msscodefactory.cfinternet.v2_1.CFInternetSaxLoader.CFInternetSaxLoader.java Source code

Java tutorial

Introduction

Here is the source code for net.sourceforge.msscodefactory.cfinternet.v2_1.CFInternetSaxLoader.CFInternetSaxLoader.java

Source

// Description: Java 7 XML SAX Parser for CFInternet.

/*
 *   CF Internet template model
 *
 *   Copyright (c) 2014 Mark Sobkow
 *   
 *      Licensed under the Apache License, Version 2.0 (the "License");
 *      you may not use this file except in compliance with the License.
 *      You may obtain a copy of the License at
 *   
 *          http://www.apache.org/licenses/LICENSE-2.0
 *   
 *      Unless required by applicable law or agreed to in writing, software
 *      distributed under the License is distributed on an "AS IS" BASIS,
 *      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *      See the License for the specific language governing permissions and
 *      limitations under the License.
 *   
 * ***********************************************************************
 *
 *   Code manufactured by MSS Code Factory
 */

package net.sourceforge.msscodefactory.cfinternet.v2_1.CFInternetSaxLoader;

import java.io.File;
import java.lang.reflect.*;
import java.math.*;
import java.net.URL;
import java.sql.*;
import java.text.*;
import java.util.*;
import javax.naming.*;
import javax.sql.*;
import net.sourceforge.msscodefactory.cflib.v2_1.CFLib.*;
import org.apache.commons.codec.binary.Base64;
import org.xml.sax.*;
import net.sourceforge.msscodefactory.cfinternet.v2_1.CFInternet.*;
import net.sourceforge.msscodefactory.cfinternet.v2_1.CFInternetObj.*;

public class CFInternetSaxLoader extends CFLibXmlCoreSaxParser implements ContentHandler {

    // The namespace URI of the supported schema
    public final static String SCHEMA_XMLNS = "uri://net.sourceforge.msscodefactory.cfinternet.v2_1/cfinternetloader";

    // The source for loading the supported schema
    public final static String SCHEMA_URI = "xsd/1-21-structured.xsd";
    public final static String SCHEMA_ROOT_URI = "/xsd/1-21-structured.xsd";
    public final static String CFSECURITY_XMLNS = "uri://net.sourceforge.msscodefactory.cfinternet.v2_1/cfsecurityloader";
    public final static String CFSECURITY_URI = "xsd/1-21-structured.xsd";
    public final static String CFSECURITY_ROOT_URI = "xsd/1-21-structured.xsd";

    // The schema instance to load in to

    private ICFInternetSchemaObj schemaObj = null;
    // Loader behaviour configuration attributes

    public enum LoaderBehaviourEnum {
        Insert, Update, Replace
    };

    private LoaderBehaviourEnum auditActionLoaderBehaviour = LoaderBehaviourEnum.Insert;
    private LoaderBehaviourEnum clusterLoaderBehaviour = LoaderBehaviourEnum.Insert;
    private LoaderBehaviourEnum domainLoaderBehaviour = LoaderBehaviourEnum.Update;
    private LoaderBehaviourEnum domainBaseLoaderBehaviour = LoaderBehaviourEnum.Update;
    private LoaderBehaviourEnum hostNodeLoaderBehaviour = LoaderBehaviourEnum.Update;
    private LoaderBehaviourEnum iSOCountryLoaderBehaviour = LoaderBehaviourEnum.Update;
    private LoaderBehaviourEnum iSOCountryCurrencyLoaderBehaviour = LoaderBehaviourEnum.Insert;
    private LoaderBehaviourEnum iSOCountryLanguageLoaderBehaviour = LoaderBehaviourEnum.Insert;
    private LoaderBehaviourEnum iSOCurrencyLoaderBehaviour = LoaderBehaviourEnum.Update;
    private LoaderBehaviourEnum iSOLanguageLoaderBehaviour = LoaderBehaviourEnum.Update;
    private LoaderBehaviourEnum iSOTimezoneLoaderBehaviour = LoaderBehaviourEnum.Update;
    private LoaderBehaviourEnum majorVersionLoaderBehaviour = LoaderBehaviourEnum.Update;
    private LoaderBehaviourEnum mimeTypeLoaderBehaviour = LoaderBehaviourEnum.Update;
    private LoaderBehaviourEnum minorVersionLoaderBehaviour = LoaderBehaviourEnum.Update;
    private LoaderBehaviourEnum projectBaseLoaderBehaviour = LoaderBehaviourEnum.Update;
    private LoaderBehaviourEnum realProjectLoaderBehaviour = LoaderBehaviourEnum.Update;
    private LoaderBehaviourEnum secAppLoaderBehaviour = LoaderBehaviourEnum.Update;
    private LoaderBehaviourEnum secDeviceLoaderBehaviour = LoaderBehaviourEnum.Insert;
    private LoaderBehaviourEnum secFormLoaderBehaviour = LoaderBehaviourEnum.Update;
    private LoaderBehaviourEnum secGroupLoaderBehaviour = LoaderBehaviourEnum.Insert;
    private LoaderBehaviourEnum secGroupFormLoaderBehaviour = LoaderBehaviourEnum.Insert;
    private LoaderBehaviourEnum secGroupIncludeLoaderBehaviour = LoaderBehaviourEnum.Insert;
    private LoaderBehaviourEnum secGroupMemberLoaderBehaviour = LoaderBehaviourEnum.Insert;
    private LoaderBehaviourEnum secSessionLoaderBehaviour = LoaderBehaviourEnum.Insert;
    private LoaderBehaviourEnum secUserLoaderBehaviour = LoaderBehaviourEnum.Insert;
    private LoaderBehaviourEnum serviceLoaderBehaviour = LoaderBehaviourEnum.Update;
    private LoaderBehaviourEnum serviceTypeLoaderBehaviour = LoaderBehaviourEnum.Insert;
    private LoaderBehaviourEnum subProjectLoaderBehaviour = LoaderBehaviourEnum.Update;
    private LoaderBehaviourEnum tSecGroupLoaderBehaviour = LoaderBehaviourEnum.Insert;
    private LoaderBehaviourEnum tSecGroupIncludeLoaderBehaviour = LoaderBehaviourEnum.Insert;
    private LoaderBehaviourEnum tSecGroupMemberLoaderBehaviour = LoaderBehaviourEnum.Insert;
    private LoaderBehaviourEnum tenantLoaderBehaviour = LoaderBehaviourEnum.Insert;
    private LoaderBehaviourEnum tldLoaderBehaviour = LoaderBehaviourEnum.Update;
    private LoaderBehaviourEnum topDomainLoaderBehaviour = LoaderBehaviourEnum.Update;
    private LoaderBehaviourEnum topProjectLoaderBehaviour = LoaderBehaviourEnum.Update;
    private LoaderBehaviourEnum uRLProtocolLoaderBehaviour = LoaderBehaviourEnum.Update;
    private LoaderBehaviourEnum versionLoaderBehaviour = LoaderBehaviourEnum.Update;

    // Constructors

    public CFInternetSaxLoader() {
        super();
        setRootElementHandler(getSaxRootHandler());
        File file = new File(SCHEMA_URI);
        if (file.exists()) {
            addSchema(SCHEMA_URI);
        } else {
            URL url = getClass().getResource(SCHEMA_ROOT_URI);
            if (url != null) {
                addSchema(url.toString());
            }
        }
        file = new File(CFSECURITY_URI);
        if (file.exists()) {
            addSchema(CFSECURITY_URI);
        } else {
            URL url = getClass().getResource(CFSECURITY_ROOT_URI);
            if (url != null) {
                addSchema(url.toString());
            }
        }
        initParser();
    }

    public CFInternetSaxLoader(ICFLibMessageLog logger) {
        super(logger);
        setRootElementHandler(getSaxRootHandler());
        File file = new File(SCHEMA_URI);
        if (file.exists()) {
            addSchema(SCHEMA_URI);
        } else {
            URL url = getClass().getResource(SCHEMA_ROOT_URI);
            if (url != null) {
                addSchema(url.toString());
            }
        }
        file = new File(CFSECURITY_URI);
        if (file.exists()) {
            addSchema(CFSECURITY_URI);
        } else {
            URL url = getClass().getResource(CFSECURITY_ROOT_URI);
            if (url != null) {
                addSchema(url.toString());
            }
        }
        initParser();
    }

    // Element Handler instances

    private CFInternetSaxLoaderAuditActionHandler auditActionHandler = null;
    private CFInternetSaxLoaderClusterHandler clusterHandler = null;
    private CFInternetSaxLoaderDomainHandler domainHandler = null;
    private CFInternetSaxLoaderDomainBaseHandler domainBaseHandler = null;
    private CFInternetSaxLoaderHostNodeHandler hostNodeHandler = null;
    private CFInternetSaxLoaderISOCountryHandler iSOCountryHandler = null;
    private CFInternetSaxLoaderISOCountryCurrencyHandler iSOCountryCurrencyHandler = null;
    private CFInternetSaxLoaderISOCountryLanguageHandler iSOCountryLanguageHandler = null;
    private CFInternetSaxLoaderISOCurrencyHandler iSOCurrencyHandler = null;
    private CFInternetSaxLoaderISOLanguageHandler iSOLanguageHandler = null;
    private CFInternetSaxLoaderISOTimezoneHandler iSOTimezoneHandler = null;
    private CFInternetSaxLoaderMajorVersionHandler majorVersionHandler = null;
    private CFInternetSaxLoaderMimeTypeHandler mimeTypeHandler = null;
    private CFInternetSaxLoaderMinorVersionHandler minorVersionHandler = null;
    private CFInternetSaxLoaderProjectBaseHandler projectBaseHandler = null;
    private CFInternetSaxLoaderRealProjectHandler realProjectHandler = null;
    private CFInternetSaxLoaderSecAppHandler secAppHandler = null;
    private CFInternetSaxLoaderSecDeviceHandler secDeviceHandler = null;
    private CFInternetSaxLoaderSecFormHandler secFormHandler = null;
    private CFInternetSaxLoaderSecGroupHandler secGroupHandler = null;
    private CFInternetSaxLoaderSecGroupFormHandler secGroupFormHandler = null;
    private CFInternetSaxLoaderSecGroupIncludeHandler secGroupIncludeHandler = null;
    private CFInternetSaxLoaderSecGroupMemberHandler secGroupMemberHandler = null;
    private CFInternetSaxLoaderSecSessionHandler secSessionHandler = null;
    private CFInternetSaxLoaderSecUserHandler secUserHandler = null;
    private CFInternetSaxLoaderServiceHandler serviceHandler = null;
    private CFInternetSaxLoaderServiceTypeHandler serviceTypeHandler = null;
    private CFInternetSaxLoaderSubProjectHandler subProjectHandler = null;
    private CFInternetSaxLoaderTSecGroupHandler tSecGroupHandler = null;
    private CFInternetSaxLoaderTSecGroupIncludeHandler tSecGroupIncludeHandler = null;
    private CFInternetSaxLoaderTSecGroupMemberHandler tSecGroupMemberHandler = null;
    private CFInternetSaxLoaderTenantHandler tenantHandler = null;
    private CFInternetSaxLoaderTldHandler tldHandler = null;
    private CFInternetSaxLoaderTopDomainHandler topDomainHandler = null;
    private CFInternetSaxLoaderTopProjectHandler topProjectHandler = null;
    private CFInternetSaxLoaderURLProtocolHandler uRLProtocolHandler = null;
    private CFInternetSaxLoaderVersionHandler versionHandler = null;
    private CFInternetSaxRootHandler saxRootHandler = null;

    private CFInternetSaxDocHandler saxDocHandler = null;

    // Schema object accessors

    // SchemaObj accessors

    public ICFInternetSchemaObj getSchemaObj() {
        return (schemaObj);
    }

    public void setSchemaObj(ICFInternetSchemaObj value) {
        schemaObj = value;
    }

    // Element Handler Resolver Factories

    protected CFInternetSaxLoaderAuditActionHandler getAuditActionHandler() {
        if (auditActionHandler == null) {
            auditActionHandler = new CFInternetSaxLoaderAuditActionHandler(this);
        }
        return (auditActionHandler);
    }

    protected CFInternetSaxLoaderClusterHandler getClusterHandler() {
        if (clusterHandler == null) {
            clusterHandler = new CFInternetSaxLoaderClusterHandler(this);
            clusterHandler.addElementHandler("HostNode", getHostNodeHandler());
            clusterHandler.addElementHandler("Tenant", getTenantHandler());
            clusterHandler.addElementHandler("SecApp", getSecAppHandler());
            clusterHandler.addElementHandler("SecGroup", getSecGroupHandler());
        }
        return (clusterHandler);
    }

    protected CFInternetSaxLoaderDomainHandler getDomainHandler() {
        if (domainHandler == null) {
            domainHandler = new CFInternetSaxLoaderDomainHandler(this);
            domainHandler.addElementHandler("TopProject", getTopProjectHandler());
        }
        return (domainHandler);
    }

    protected CFInternetSaxLoaderDomainBaseHandler getDomainBaseHandler() {
        if (domainBaseHandler == null) {
            domainBaseHandler = new CFInternetSaxLoaderDomainBaseHandler(this);
        }
        return (domainBaseHandler);
    }

    protected CFInternetSaxLoaderHostNodeHandler getHostNodeHandler() {
        if (hostNodeHandler == null) {
            hostNodeHandler = new CFInternetSaxLoaderHostNodeHandler(this);
            hostNodeHandler.addElementHandler("Service", getServiceHandler());
        }
        return (hostNodeHandler);
    }

    protected CFInternetSaxLoaderISOCountryHandler getISOCountryHandler() {
        if (iSOCountryHandler == null) {
            iSOCountryHandler = new CFInternetSaxLoaderISOCountryHandler(this);
            iSOCountryHandler.addElementHandler("ISOCountryCurrency", getISOCountryCurrencyHandler());
            iSOCountryHandler.addElementHandler("ISOCountryLanguage", getISOCountryLanguageHandler());
        }
        return (iSOCountryHandler);
    }

    protected CFInternetSaxLoaderISOCountryCurrencyHandler getISOCountryCurrencyHandler() {
        if (iSOCountryCurrencyHandler == null) {
            iSOCountryCurrencyHandler = new CFInternetSaxLoaderISOCountryCurrencyHandler(this);
        }
        return (iSOCountryCurrencyHandler);
    }

    protected CFInternetSaxLoaderISOCountryLanguageHandler getISOCountryLanguageHandler() {
        if (iSOCountryLanguageHandler == null) {
            iSOCountryLanguageHandler = new CFInternetSaxLoaderISOCountryLanguageHandler(this);
        }
        return (iSOCountryLanguageHandler);
    }

    protected CFInternetSaxLoaderISOCurrencyHandler getISOCurrencyHandler() {
        if (iSOCurrencyHandler == null) {
            iSOCurrencyHandler = new CFInternetSaxLoaderISOCurrencyHandler(this);
        }
        return (iSOCurrencyHandler);
    }

    protected CFInternetSaxLoaderISOLanguageHandler getISOLanguageHandler() {
        if (iSOLanguageHandler == null) {
            iSOLanguageHandler = new CFInternetSaxLoaderISOLanguageHandler(this);
        }
        return (iSOLanguageHandler);
    }

    protected CFInternetSaxLoaderISOTimezoneHandler getISOTimezoneHandler() {
        if (iSOTimezoneHandler == null) {
            iSOTimezoneHandler = new CFInternetSaxLoaderISOTimezoneHandler(this);
        }
        return (iSOTimezoneHandler);
    }

    protected CFInternetSaxLoaderMajorVersionHandler getMajorVersionHandler() {
        if (majorVersionHandler == null) {
            majorVersionHandler = new CFInternetSaxLoaderMajorVersionHandler(this);
            majorVersionHandler.addElementHandler("MinorVersion", getMinorVersionHandler());
        }
        return (majorVersionHandler);
    }

    protected CFInternetSaxLoaderMimeTypeHandler getMimeTypeHandler() {
        if (mimeTypeHandler == null) {
            mimeTypeHandler = new CFInternetSaxLoaderMimeTypeHandler(this);
        }
        return (mimeTypeHandler);
    }

    protected CFInternetSaxLoaderMinorVersionHandler getMinorVersionHandler() {
        if (minorVersionHandler == null) {
            minorVersionHandler = new CFInternetSaxLoaderMinorVersionHandler(this);
        }
        return (minorVersionHandler);
    }

    protected CFInternetSaxLoaderProjectBaseHandler getProjectBaseHandler() {
        if (projectBaseHandler == null) {
            projectBaseHandler = new CFInternetSaxLoaderProjectBaseHandler(this);
        }
        return (projectBaseHandler);
    }

    protected CFInternetSaxLoaderRealProjectHandler getRealProjectHandler() {
        if (realProjectHandler == null) {
            realProjectHandler = new CFInternetSaxLoaderRealProjectHandler(this);
            realProjectHandler.addElementHandler("MajorVersion", getMajorVersionHandler());
        }
        return (realProjectHandler);
    }

    protected CFInternetSaxLoaderSecAppHandler getSecAppHandler() {
        if (secAppHandler == null) {
            secAppHandler = new CFInternetSaxLoaderSecAppHandler(this);
            secAppHandler.addElementHandler("SecForm", getSecFormHandler());
        }
        return (secAppHandler);
    }

    protected CFInternetSaxLoaderSecDeviceHandler getSecDeviceHandler() {
        if (secDeviceHandler == null) {
            secDeviceHandler = new CFInternetSaxLoaderSecDeviceHandler(this);
        }
        return (secDeviceHandler);
    }

    protected CFInternetSaxLoaderSecFormHandler getSecFormHandler() {
        if (secFormHandler == null) {
            secFormHandler = new CFInternetSaxLoaderSecFormHandler(this);
        }
        return (secFormHandler);
    }

    protected CFInternetSaxLoaderSecGroupHandler getSecGroupHandler() {
        if (secGroupHandler == null) {
            secGroupHandler = new CFInternetSaxLoaderSecGroupHandler(this);
            secGroupHandler.addElementHandler("SecGroupInclude", getSecGroupIncludeHandler());
            secGroupHandler.addElementHandler("SecGroupMember", getSecGroupMemberHandler());
            secGroupHandler.addElementHandler("SecGroupForm", getSecGroupFormHandler());
        }
        return (secGroupHandler);
    }

    protected CFInternetSaxLoaderSecGroupFormHandler getSecGroupFormHandler() {
        if (secGroupFormHandler == null) {
            secGroupFormHandler = new CFInternetSaxLoaderSecGroupFormHandler(this);
        }
        return (secGroupFormHandler);
    }

    protected CFInternetSaxLoaderSecGroupIncludeHandler getSecGroupIncludeHandler() {
        if (secGroupIncludeHandler == null) {
            secGroupIncludeHandler = new CFInternetSaxLoaderSecGroupIncludeHandler(this);
        }
        return (secGroupIncludeHandler);
    }

    protected CFInternetSaxLoaderSecGroupMemberHandler getSecGroupMemberHandler() {
        if (secGroupMemberHandler == null) {
            secGroupMemberHandler = new CFInternetSaxLoaderSecGroupMemberHandler(this);
        }
        return (secGroupMemberHandler);
    }

    protected CFInternetSaxLoaderSecSessionHandler getSecSessionHandler() {
        if (secSessionHandler == null) {
            secSessionHandler = new CFInternetSaxLoaderSecSessionHandler(this);
        }
        return (secSessionHandler);
    }

    protected CFInternetSaxLoaderSecUserHandler getSecUserHandler() {
        if (secUserHandler == null) {
            secUserHandler = new CFInternetSaxLoaderSecUserHandler(this);
            secUserHandler.addElementHandler("SecDevice", getSecDeviceHandler());
            secUserHandler.addElementHandler("SecSession", getSecSessionHandler());
        }
        return (secUserHandler);
    }

    protected CFInternetSaxLoaderServiceHandler getServiceHandler() {
        if (serviceHandler == null) {
            serviceHandler = new CFInternetSaxLoaderServiceHandler(this);
        }
        return (serviceHandler);
    }

    protected CFInternetSaxLoaderServiceTypeHandler getServiceTypeHandler() {
        if (serviceTypeHandler == null) {
            serviceTypeHandler = new CFInternetSaxLoaderServiceTypeHandler(this);
        }
        return (serviceTypeHandler);
    }

    protected CFInternetSaxLoaderSubProjectHandler getSubProjectHandler() {
        if (subProjectHandler == null) {
            subProjectHandler = new CFInternetSaxLoaderSubProjectHandler(this);
            subProjectHandler.addElementHandler("MajorVersion", getMajorVersionHandler());
        }
        return (subProjectHandler);
    }

    protected CFInternetSaxLoaderTSecGroupHandler getTSecGroupHandler() {
        if (tSecGroupHandler == null) {
            tSecGroupHandler = new CFInternetSaxLoaderTSecGroupHandler(this);
            tSecGroupHandler.addElementHandler("TSecGroupInclude", getTSecGroupIncludeHandler());
            tSecGroupHandler.addElementHandler("TSecGroupMember", getTSecGroupMemberHandler());
        }
        return (tSecGroupHandler);
    }

    protected CFInternetSaxLoaderTSecGroupIncludeHandler getTSecGroupIncludeHandler() {
        if (tSecGroupIncludeHandler == null) {
            tSecGroupIncludeHandler = new CFInternetSaxLoaderTSecGroupIncludeHandler(this);
        }
        return (tSecGroupIncludeHandler);
    }

    protected CFInternetSaxLoaderTSecGroupMemberHandler getTSecGroupMemberHandler() {
        if (tSecGroupMemberHandler == null) {
            tSecGroupMemberHandler = new CFInternetSaxLoaderTSecGroupMemberHandler(this);
        }
        return (tSecGroupMemberHandler);
    }

    protected CFInternetSaxLoaderTenantHandler getTenantHandler() {
        if (tenantHandler == null) {
            tenantHandler = new CFInternetSaxLoaderTenantHandler(this);
            tenantHandler.addElementHandler("TSecGroup", getTSecGroupHandler());
            tenantHandler.addElementHandler("Tld", getTldHandler());
        }
        return (tenantHandler);
    }

    protected CFInternetSaxLoaderTldHandler getTldHandler() {
        if (tldHandler == null) {
            tldHandler = new CFInternetSaxLoaderTldHandler(this);
            tldHandler.addElementHandler("TopDomain", getTopDomainHandler());
        }
        return (tldHandler);
    }

    protected CFInternetSaxLoaderTopDomainHandler getTopDomainHandler() {
        if (topDomainHandler == null) {
            topDomainHandler = new CFInternetSaxLoaderTopDomainHandler(this);
            topDomainHandler.addElementHandler("Domain", getDomainHandler());
            topDomainHandler.addElementHandler("TopProject", getTopProjectHandler());
        }
        return (topDomainHandler);
    }

    protected CFInternetSaxLoaderTopProjectHandler getTopProjectHandler() {
        if (topProjectHandler == null) {
            topProjectHandler = new CFInternetSaxLoaderTopProjectHandler(this);
            topProjectHandler.addElementHandler("MajorVersion", getMajorVersionHandler());
            topProjectHandler.addElementHandler("SubProject", getSubProjectHandler());
        }
        return (topProjectHandler);
    }

    protected CFInternetSaxLoaderURLProtocolHandler getURLProtocolHandler() {
        if (uRLProtocolHandler == null) {
            uRLProtocolHandler = new CFInternetSaxLoaderURLProtocolHandler(this);
        }
        return (uRLProtocolHandler);
    }

    protected CFInternetSaxLoaderVersionHandler getVersionHandler() {
        if (versionHandler == null) {
            versionHandler = new CFInternetSaxLoaderVersionHandler(this);
        }
        return (versionHandler);
    }

    // Root Element Handler Resolver Factory

    protected CFInternetSaxRootHandler getSaxRootHandler() {
        if (saxRootHandler == null) {
            saxRootHandler = new CFInternetSaxRootHandler(this);
            saxRootHandler.addElementHandler("CFInternet", getSaxDocHandler());
            saxRootHandler.addElementHandler("CFSecurity", getSaxDocHandler());
        }
        return (saxRootHandler);
    }

    // Root Element Handler

    /*
     *   CFInternetSaxRootHandler XML SAX Root Element Handler implementation
     */
    public class CFInternetSaxRootHandler extends CFLibXmlCoreElementHandler {
        public CFInternetSaxRootHandler(CFInternetSaxLoader saxLoader) {
            super(saxLoader);
        }

        public void startElement(String uri, String localName, String qName, Attributes attrs) throws SAXException {
        }

        public void endElement(String uri, String localName, String qName) throws SAXException {
        }
    }

    // Document Element Handler Resolver Factory

    protected CFInternetSaxDocHandler getSaxDocHandler() {
        if (saxDocHandler == null) {
            saxDocHandler = new CFInternetSaxDocHandler(this);
            saxDocHandler.addElementHandler("AuditAction", getAuditActionHandler());
            saxDocHandler.addElementHandler("Cluster", getClusterHandler());
            saxDocHandler.addElementHandler("ISOCountry", getISOCountryHandler());
            saxDocHandler.addElementHandler("ISOCurrency", getISOCurrencyHandler());
            saxDocHandler.addElementHandler("ISOLanguage", getISOLanguageHandler());
            saxDocHandler.addElementHandler("ISOTimezone", getISOTimezoneHandler());
            saxDocHandler.addElementHandler("MimeType", getMimeTypeHandler());
            saxDocHandler.addElementHandler("SecUser", getSecUserHandler());
            saxDocHandler.addElementHandler("ServiceType", getServiceTypeHandler());
            saxDocHandler.addElementHandler("URLProtocol", getURLProtocolHandler());
        }
        return (saxDocHandler);
    }

    // Document Element Handler

    /*
     *   CFInternetSaxDocHandler XML SAX Doc Element Handler implementation
     */
    public class CFInternetSaxDocHandler extends CFLibXmlCoreElementHandler {
        public CFInternetSaxDocHandler(CFInternetSaxLoader saxLoader) {
            super(saxLoader);
        }

        public void startElement(String uri, String localName, String qName, Attributes attrs) throws SAXException {
        }

        public void endElement(String uri, String localName, String qName) throws SAXException {
        }
    }

    // Loader behaviour configuration accessors

    public LoaderBehaviourEnum getAuditActionLoaderBehaviour() {
        return (auditActionLoaderBehaviour);
    }

    public void setAuditActionLoaderBehaviour(LoaderBehaviourEnum value) {
        auditActionLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getClusterLoaderBehaviour() {
        return (clusterLoaderBehaviour);
    }

    public void setClusterLoaderBehaviour(LoaderBehaviourEnum value) {
        clusterLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getDomainLoaderBehaviour() {
        return (domainLoaderBehaviour);
    }

    public void setDomainLoaderBehaviour(LoaderBehaviourEnum value) {
        domainLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getDomainBaseLoaderBehaviour() {
        return (domainBaseLoaderBehaviour);
    }

    public void setDomainBaseLoaderBehaviour(LoaderBehaviourEnum value) {
        domainBaseLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getHostNodeLoaderBehaviour() {
        return (hostNodeLoaderBehaviour);
    }

    public void setHostNodeLoaderBehaviour(LoaderBehaviourEnum value) {
        hostNodeLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getISOCountryLoaderBehaviour() {
        return (iSOCountryLoaderBehaviour);
    }

    public void setISOCountryLoaderBehaviour(LoaderBehaviourEnum value) {
        iSOCountryLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getISOCountryCurrencyLoaderBehaviour() {
        return (iSOCountryCurrencyLoaderBehaviour);
    }

    public void setISOCountryCurrencyLoaderBehaviour(LoaderBehaviourEnum value) {
        iSOCountryCurrencyLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getISOCountryLanguageLoaderBehaviour() {
        return (iSOCountryLanguageLoaderBehaviour);
    }

    public void setISOCountryLanguageLoaderBehaviour(LoaderBehaviourEnum value) {
        iSOCountryLanguageLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getISOCurrencyLoaderBehaviour() {
        return (iSOCurrencyLoaderBehaviour);
    }

    public void setISOCurrencyLoaderBehaviour(LoaderBehaviourEnum value) {
        iSOCurrencyLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getISOLanguageLoaderBehaviour() {
        return (iSOLanguageLoaderBehaviour);
    }

    public void setISOLanguageLoaderBehaviour(LoaderBehaviourEnum value) {
        iSOLanguageLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getISOTimezoneLoaderBehaviour() {
        return (iSOTimezoneLoaderBehaviour);
    }

    public void setISOTimezoneLoaderBehaviour(LoaderBehaviourEnum value) {
        iSOTimezoneLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getMajorVersionLoaderBehaviour() {
        return (majorVersionLoaderBehaviour);
    }

    public void setMajorVersionLoaderBehaviour(LoaderBehaviourEnum value) {
        majorVersionLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getMimeTypeLoaderBehaviour() {
        return (mimeTypeLoaderBehaviour);
    }

    public void setMimeTypeLoaderBehaviour(LoaderBehaviourEnum value) {
        mimeTypeLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getMinorVersionLoaderBehaviour() {
        return (minorVersionLoaderBehaviour);
    }

    public void setMinorVersionLoaderBehaviour(LoaderBehaviourEnum value) {
        minorVersionLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getProjectBaseLoaderBehaviour() {
        return (projectBaseLoaderBehaviour);
    }

    public void setProjectBaseLoaderBehaviour(LoaderBehaviourEnum value) {
        projectBaseLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getRealProjectLoaderBehaviour() {
        return (realProjectLoaderBehaviour);
    }

    public void setRealProjectLoaderBehaviour(LoaderBehaviourEnum value) {
        realProjectLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getSecAppLoaderBehaviour() {
        return (secAppLoaderBehaviour);
    }

    public void setSecAppLoaderBehaviour(LoaderBehaviourEnum value) {
        secAppLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getSecDeviceLoaderBehaviour() {
        return (secDeviceLoaderBehaviour);
    }

    public void setSecDeviceLoaderBehaviour(LoaderBehaviourEnum value) {
        secDeviceLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getSecFormLoaderBehaviour() {
        return (secFormLoaderBehaviour);
    }

    public void setSecFormLoaderBehaviour(LoaderBehaviourEnum value) {
        secFormLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getSecGroupLoaderBehaviour() {
        return (secGroupLoaderBehaviour);
    }

    public void setSecGroupLoaderBehaviour(LoaderBehaviourEnum value) {
        secGroupLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getSecGroupFormLoaderBehaviour() {
        return (secGroupFormLoaderBehaviour);
    }

    public void setSecGroupFormLoaderBehaviour(LoaderBehaviourEnum value) {
        secGroupFormLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getSecGroupIncludeLoaderBehaviour() {
        return (secGroupIncludeLoaderBehaviour);
    }

    public void setSecGroupIncludeLoaderBehaviour(LoaderBehaviourEnum value) {
        secGroupIncludeLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getSecGroupMemberLoaderBehaviour() {
        return (secGroupMemberLoaderBehaviour);
    }

    public void setSecGroupMemberLoaderBehaviour(LoaderBehaviourEnum value) {
        secGroupMemberLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getSecSessionLoaderBehaviour() {
        return (secSessionLoaderBehaviour);
    }

    public void setSecSessionLoaderBehaviour(LoaderBehaviourEnum value) {
        secSessionLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getSecUserLoaderBehaviour() {
        return (secUserLoaderBehaviour);
    }

    public void setSecUserLoaderBehaviour(LoaderBehaviourEnum value) {
        secUserLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getServiceLoaderBehaviour() {
        return (serviceLoaderBehaviour);
    }

    public void setServiceLoaderBehaviour(LoaderBehaviourEnum value) {
        serviceLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getServiceTypeLoaderBehaviour() {
        return (serviceTypeLoaderBehaviour);
    }

    public void setServiceTypeLoaderBehaviour(LoaderBehaviourEnum value) {
        serviceTypeLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getSubProjectLoaderBehaviour() {
        return (subProjectLoaderBehaviour);
    }

    public void setSubProjectLoaderBehaviour(LoaderBehaviourEnum value) {
        subProjectLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getTSecGroupLoaderBehaviour() {
        return (tSecGroupLoaderBehaviour);
    }

    public void setTSecGroupLoaderBehaviour(LoaderBehaviourEnum value) {
        tSecGroupLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getTSecGroupIncludeLoaderBehaviour() {
        return (tSecGroupIncludeLoaderBehaviour);
    }

    public void setTSecGroupIncludeLoaderBehaviour(LoaderBehaviourEnum value) {
        tSecGroupIncludeLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getTSecGroupMemberLoaderBehaviour() {
        return (tSecGroupMemberLoaderBehaviour);
    }

    public void setTSecGroupMemberLoaderBehaviour(LoaderBehaviourEnum value) {
        tSecGroupMemberLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getTenantLoaderBehaviour() {
        return (tenantLoaderBehaviour);
    }

    public void setTenantLoaderBehaviour(LoaderBehaviourEnum value) {
        tenantLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getTldLoaderBehaviour() {
        return (tldLoaderBehaviour);
    }

    public void setTldLoaderBehaviour(LoaderBehaviourEnum value) {
        tldLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getTopDomainLoaderBehaviour() {
        return (topDomainLoaderBehaviour);
    }

    public void setTopDomainLoaderBehaviour(LoaderBehaviourEnum value) {
        topDomainLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getTopProjectLoaderBehaviour() {
        return (topProjectLoaderBehaviour);
    }

    public void setTopProjectLoaderBehaviour(LoaderBehaviourEnum value) {
        topProjectLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getURLProtocolLoaderBehaviour() {
        return (uRLProtocolLoaderBehaviour);
    }

    public void setURLProtocolLoaderBehaviour(LoaderBehaviourEnum value) {
        uRLProtocolLoaderBehaviour = value;
    }

    public LoaderBehaviourEnum getVersionLoaderBehaviour() {
        return (versionLoaderBehaviour);
    }

    public void setVersionLoaderBehaviour(LoaderBehaviourEnum value) {
        versionLoaderBehaviour = value;
    }

    // Parse a file

    public void parseFile(String url) {
        parse(url);
    }
}