All Packages Class Hierarchy This Package Previous Next Index
Class w3c.tools.store.AttributeRegistry
java.lang.Object
|
+----w3c.tools.store.AttributeRegistry
- public class AttributeRegistry
- extends Object
-
AttributeRegistry()
-
-
getAttributeClass(Class, String)
- Get the name of the class that has declared this attribute.
-
getClassAttributes(Class)
- Get this class declared attributes.
-
registerAttribute(Class, Attribute)
- Register a new attribute for a given class.
AttributeRegistry
public AttributeRegistry()
registerAttribute
public static synchronized int registerAttribute(Class cls,
Attribute attr)
- Register a new attribute for a given class.
This method create the approrpriate attribute description record if
required, and return the index of this attribute in the corresponding
holder instances.
- Parameters:
- cls - The class that defines this attribute.
- attr - The attribute to declare.
- Returns:
- The attribute index.
getClassAttributes
public static synchronized Attribute[] getClassAttributes(Class cls)
- Get this class declared attributes.
- Parameters:
- cls - The class we are querying.
- Returns:
- An array of Attribute instances, describing each of the
attributes of all instances of the class, or null
if the class hasn't defined any attributes.
getAttributeClass
public static Class getAttributeClass(Class cls,
String attrname)
- Get the name of the class that has declared this attribute.
- Parameters:
- cls - The class that makes the starting point of lookup.
- attr - The attribute we are looking for.
- Returns:
- The name of the class that defined that attribute, or
null.
All Packages Class Hierarchy This Package Previous Next Index