org.apache.commons.attributes
Class EmptyAttributeRepositoryClass

java.lang.Object
  extended byorg.apache.commons.attributes.EmptyAttributeRepositoryClass
All Implemented Interfaces:
AttributeRepositoryClass

class EmptyAttributeRepositoryClass
extends java.lang.Object
implements AttributeRepositoryClass

Empty implementation of AttributeRepositoryClass.


Field Summary
static AttributeRepositoryClass INSTANCE
           
 
Constructor Summary
(package private) EmptyAttributeRepositoryClass()
           
 
Method Summary
 java.util.Set getClassAttributes()
          Returns a set containing all attributes (instances) associated with this class.
 java.util.Map getConstructorAttributes()
          Returns a map with String keys and List values.
 java.util.Map getFieldAttributes()
          Returns a map with String keys and Set values.
 java.util.Map getMethodAttributes()
          Returns a map with String keys and List values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final AttributeRepositoryClass INSTANCE
Constructor Detail

EmptyAttributeRepositoryClass

EmptyAttributeRepositoryClass()
Method Detail

getClassAttributes

public java.util.Set getClassAttributes()
Description copied from interface: AttributeRepositoryClass
Returns a set containing all attributes (instances) associated with this class. Should not return any attributes of superclasses etc.

Specified by:
getClassAttributes in interface AttributeRepositoryClass

getFieldAttributes

public java.util.Map getFieldAttributes()
Description copied from interface: AttributeRepositoryClass
Returns a map with String keys and Set values. The keys correspond to field names, and their associated Set values are the set of all attributes (instances) associated with that field. Should not return any attributes of superclasses etc.

Specified by:
getFieldAttributes in interface AttributeRepositoryClass

getMethodAttributes

public java.util.Map getMethodAttributes()
Description copied from interface: AttributeRepositoryClass
Returns a map with String keys and List values. The keys correspond to method signatures, given by get Util.getSignature method, and the lists are as follows:

list.get(0) = A Set with the attributes associated with the method.

list.get(1) = A Set with the attributes associated with the method's return value.

list.get(2) = A Set with the attributes associated with the method's first parameter.

list.get(n) = A Set with the attributes associated with the method's (n - 1) th parameter.

All slots in the list must be filled, not just those where there are attributes. Should not return any attributes of superclasses etc.

Specified by:
getMethodAttributes in interface AttributeRepositoryClass

getConstructorAttributes

public java.util.Map getConstructorAttributes()
Description copied from interface: AttributeRepositoryClass
Returns a map with String keys and List values. The keys correspond to constructor signatures, given by get Util.getSignature method, and the lists are as follows:

list.get(0) = A Set with the attributes associated with the constructor.

list.get(1) = A Set with the attributes associated with the constructor's first parameter.

list.get(n) = A Set with the attributes associated with the constructor's (n - 1) th parameter.

All slots in the list must be filled, not just those where there are attributes. Should not return any attributes of superclasses etc.

Specified by:
getConstructorAttributes in interface AttributeRepositoryClass