Key class used to quickly retrieve attribute values from UINodes and AttributeMaps.
AttributeKeys can not be instantiated directly, instead, the factory method getAttributeKey
is called with the name of the AttributeKey to retrieve.
AttributeKeys have two performance advantages over Strings when used as keys.
- AttributeKeys are singletons and can thus use instance equality to check for equality.
- AttributeKeys that are requested often can be assigned an index that can then be used by AttributeMap implementations to speed up value retrieval for these attributes. Both the FlaggedAttributeMap and the IndexedAttributeMap take advantage of this feature.
@version $Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/ui/AttributeKey.java#0 $) $Date: 10-nov-2005.18:50:10 $
@author The Oracle ADF Faces Team
@see org.apache.myfaces.trinidadinternal.ui.collection.AttributeMap
@see UINode#getAttributeValue
@see MutableUINode#setAttributeValue