Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.ui.collection
Class ArrayAttributeMap

java.lang.Object
  |
  +--oracle.cabo.ui.collection.ArrayAttributeMap
All Implemented Interfaces:
AttributeMap
Direct Known Subclasses:
FlaggedAttributeMap, IndexedAttributeMap

public class ArrayAttributeMap
extends java.lang.Object
implements AttributeMap

AttributeMap implementation that stores AttributeKey value pairs in an array and locates the desired AttributeKey by making a linear scan.

Although extremely memory efficient and fast for the number of attributes stored on most UINodes ( < 15), FlaggedAttributeMap is a better general purpose AttributeMap implementation for use as UINode storage.

See Also:
FlaggedAttributeMap, IndexedAttributeMap

Constructor Summary
ArrayAttributeMap()
           
ArrayAttributeMap(int size)
           
ArrayAttributeMap(int size, int increment)
           
 
Method Summary
 java.util.Enumeration attributeKeys(RenderingContext context)
          Returns an Enumeration of all of the AttributeKeys in the AttributeMap that values exist for.
 java.lang.Object clone()
          Clones the map.
 java.lang.Object getAttribute(RenderingContext context, AttributeKey key)
          Returns the value in the AttributeMap specified by the key.
protected  void putAttribute(AttributeKey key, java.lang.Object value)
           
protected  void removeAttribute(AttributeKey key)
           
 void setAttribute(AttributeKey key, java.lang.Object value)
          Sets an attribute value specified by the key to the new value.
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArrayAttributeMap

public ArrayAttributeMap()

ArrayAttributeMap

public ArrayAttributeMap(int size)

ArrayAttributeMap

public ArrayAttributeMap(int size,
                         int increment)
Method Detail

getAttribute

public java.lang.Object getAttribute(RenderingContext context,
                                     AttributeKey key)
Description copied from interface: AttributeMap
Returns the value in the AttributeMap specified by the key.
Specified by:
getAttribute in interface AttributeMap

setAttribute

public void setAttribute(AttributeKey key,
                         java.lang.Object value)
Description copied from interface: AttributeMap
Sets an attribute value specified by the key to the new value.
Specified by:
setAttribute in interface AttributeMap

attributeKeys

public java.util.Enumeration attributeKeys(RenderingContext context)
Description copied from interface: AttributeMap
Returns an Enumeration of all of the AttributeKeys in the AttributeMap that values exist for.
Specified by:
attributeKeys in interface AttributeMap

size

public int size()

clone

public java.lang.Object clone()
Clones the map.
Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

putAttribute

protected void putAttribute(AttributeKey key,
                            java.lang.Object value)

removeAttribute

protected void removeAttribute(AttributeKey key)

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.