org.apache.commons.attributes
Interface AttributeRepositoryClass

All Known Implementing Classes:
RuntimeAttributeRepository

public interface AttributeRepositoryClass

Interface implemented by all attribute repository classes. This interface is used internally and should not be used by clients. The only reason it is public is because the classes implementing it may be in any package.

Since:
2.1

Method Summary
 Set getClassAttributes()
          Returns a set containing all attributes (instances) associated with this class.
 Map getConstructorAttributes()
          Returns a map with String keys and List values.
 Map getFieldAttributes()
          Returns a map with String keys and Set values.
 Map getMethodAttributes()
          Returns a map with String keys and List values.
 

Method Detail

getClassAttributes

public Set getClassAttributes()
Returns a set containing all attributes (instances) associated with this class. Should not return any attributes of superclasses etc.

Since:
2.1

getFieldAttributes

public Map getFieldAttributes()
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.

Since:
2.1

getMethodAttributes

public Map getMethodAttributes()
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.

Since:
2.1

getConstructorAttributes

public Map getConstructorAttributes()
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.

Since:
2.1


Copyright © The Apache Software Foundation. All Rights Reserved.