Package org.apache.commons.digester3.binder

Examples of org.apache.commons.digester3.binder.NodeCreateRuleProvider.ofType()


            .overriddenByAttribute( annotation.attributeName().length() > 0 ? annotation.attributeName() : null )
            .ignoreCreateExceptions( annotation.ignoreCreateExceptions() );

        if ( FactoryCreate.DefaultObjectCreationFactory.class != annotation.factoryClass() )
        {
            builder.ofType( annotation.factoryClass() );
        }
    }

}
View Full Code Here


        String nodeType = attributes.getValue( "type" );
        if ( nodeType != null && nodeType.length() > 0 )
        {
            if ( "element".equals( nodeType ) )
            {
                nodeProvider.ofType( NodeType.ELEMENT );
            }
            else if ( "fragment".equals( nodeType ) )
            {
                nodeProvider.ofType( NodeType.DOCUMENT_FRAGMENT );
            }
View Full Code Here

            {
                nodeProvider.ofType( NodeType.ELEMENT );
            }
            else if ( "fragment".equals( nodeType ) )
            {
                nodeProvider.ofType( NodeType.DOCUMENT_FRAGMENT );
            }
            else
            {
                throw new RuntimeException( format(
                    "Unrecognized node type: %s. This attribute is optional or can have a value of element|fragment.",
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.