org.apache.commons.digester.annotations.providers
Class SetPropertiesRuleProvider

java.lang.Object
  extended by org.apache.commons.digester.annotations.providers.SetPropertiesRuleProvider
All Implemented Interfaces:
AnnotationRuleProvider<SetProperty,Field,SetPropertiesRule>

public final class SetPropertiesRuleProvider
extends Object
implements AnnotationRuleProvider<SetProperty,Field,SetPropertiesRule>

Provides instances of SetPropertiesRule.

Since:
2.1

Constructor Summary
SetPropertiesRuleProvider()
           
 
Method Summary
 void addAlias(SetProperty annotation, Field element)
          Adds a new alias attribute/property name; if the attribute name is not specified, the alias will be considered as property name identity.
 SetPropertiesRule get()
          Provides an instance of Rule.
 void init(SetProperty annotation, Field element)
          Initializes the provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetPropertiesRuleProvider

public SetPropertiesRuleProvider()
Method Detail

init

public void init(SetProperty annotation,
                 Field element)
Initializes the provider.

Specified by:
init in interface AnnotationRuleProvider<SetProperty,Field,SetPropertiesRule>
Parameters:
annotation - the annotation instance.
element - the annotated element reference.

addAlias

public void addAlias(SetProperty annotation,
                     Field element)
Adds a new alias attribute/property name; if the attribute name is not specified, the alias will be considered as property name identity.

Parameters:
annotation - the SetProperty reference.
element - the annotated element reference.

get

public SetPropertiesRule get()
Provides an instance of Rule. Must never return null.

Specified by:
get in interface AnnotationRuleProvider<SetProperty,Field,SetPropertiesRule>
Returns:
an instance of Rule.


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.