Package org.apache.torque.generator.configuration.option

Examples of org.apache.torque.generator.configuration.option.OptionsSaxHandlerFactory


    public void register(OptionsSaxHandlerFactory optionsSaxHandlerFactory)
        throws ConfigurationException
    {
        String type = optionsSaxHandlerFactory.getType();

        OptionsSaxHandlerFactory oldFactory = factories.get(type);
        if (oldFactory != null)
        {
            throw new ConfigurationException(
                    "Attempted to register an OptionsSaxHandlerFactory "
                        + "of type "
                        + optionsSaxHandlerFactory.getType()
                        + " and class "
                        + optionsSaxHandlerFactory.getClass().getName()
                        + " : A factory with this type already exists, "
                        + " it has the class "
                        + oldFactory.getClass().getName());
        }
        factories.put(type, optionsSaxHandlerFactory);
    }
View Full Code Here


                        + XMLConstants.XSI_TYPE_ATTRBUTE_NAME);
            }

            OptionsSaxHandlerFactories optionsSaxHandlerFactories
                    = configurationHandlers.getOptionsSaxHandlerFactories();
            OptionsSaxHandlerFactory optionsSaxHandlerFactory
                    = optionsSaxHandlerFactories.getOptionsSaxHandlerFactory(
                            type);
            if (optionsSaxHandlerFactory == null)
            {
                throw new SAXException("No handler found for the action "
                        + "of type "
                        + type);
            }
            optionsSaxHandler = optionsSaxHandlerFactory.getOptionsSaxHandler();
            optionsSaxHandler.startElement(uri, localName, qName, attributes);
        }
        else if (OUTPUT_TAG.equals(unqualifiedName))
        {
            outputSaxHandler = new OutputSaxHandler(
View Full Code Here

TOP

Related Classes of org.apache.torque.generator.configuration.option.OptionsSaxHandlerFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.