Examples of SetPropertiesBuilder


Examples of org.apache.commons.digester3.binder.SetPropertiesBuilder

    /**
     * {@inheritDoc}
     */
    public void handle( SetProperty annotation, Field element, RulesBinder rulesBinder )
    {
        SetPropertiesBuilder builder = rulesBinder
            .forPattern( annotation.pattern() )
            .withNamespaceURI( annotation.namespaceURI() )
            .setProperties();

        if ( annotation.attributeName() != null && annotation.attributeName().length() > 0
            && !element.getName().equals( annotation.attributeName() ) )
        {
            builder.addAlias( annotation.attributeName(), element.getName() );
        }
    }
View Full Code Here

Examples of org.apache.commons.digester3.binder.SetPropertiesBuilder

    /**
     * {@inheritDoc}
     */
    public void handle( SetProperty annotation, Field element, RulesBinder rulesBinder )
    {
        SetPropertiesBuilder builder = rulesBinder
            .forPattern( annotation.pattern() )
            .withNamespaceURI( annotation.namespaceURI() )
            .setProperties();

        if ( annotation.attributeName() != null && annotation.attributeName().length() > 0
            && !element.getName().equals( annotation.attributeName() ) )
        {
            builder.addAlias( annotation.attributeName() ).forProperty( element.getName() );
        }
    }
View Full Code Here

Examples of org.apache.commons.digester3.binder.SetPropertiesBuilder

    public void begin( String namespace, String name, Attributes attributes )
        throws Exception
    {
        String attributeName = attributes.getValue( "attr-name" );

        SetPropertiesBuilder builder = getDigester().peek();
        builder.ignoreAttribute( attributeName );
    }
View Full Code Here

Examples of org.apache.commons.digester3.binder.SetPropertiesBuilder

        throws Exception
    {
        String attributeName = attributes.getValue( "attr-name" );
        String propertyName = attributes.getValue( "prop-name" );

        SetPropertiesBuilder builder = getDigester().peek();
        builder.addAlias( attributeName ).forProperty( propertyName );
    }
View Full Code Here

Examples of org.apache.commons.digester3.binder.SetPropertiesBuilder

    protected void bindRule( LinkedRuleBuilder linkedRuleBuilder, Attributes attributes )
        throws Exception
    {
        boolean ignoreMissingProperty = "true".equalsIgnoreCase( attributes.getValue( "ignore-missing-property" ) );

        SetPropertiesBuilder builder = linkedRuleBuilder.setProperties().ignoreMissingProperty( ignoreMissingProperty );
        getDigester().push( builder );
    }
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.