Class w3c.jigsaw.resources.AttributeRegistery
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.jigsaw.resources.AttributeRegistery

java.lang.Object
   |
   +----w3c.jigsaw.resources.AttributeRegistery

public class AttributeRegistery
extends Object

Constructor Index

 o AttributeRegistery()

Method Index

 o getClassAttributes(Class)
Get this class declared attributes.
 o registerAttribute(Class, Attribute)
Register a new attribute for a given class.

Constructors

 o AttributeRegistery
  public AttributeRegistery()

Methods

 o 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.
 o 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.

All Packages  Class Hierarchy  This Package  Previous  Next  Index