jdsl.core.ref
Class HashtableDecorable

java.lang.Object
  |
  +--jdsl.core.ref.HashtableDecorable
Direct Known Subclasses:
jdsl.core.ref.SILPosition

public class HashtableDecorable
extends java.lang.Object
implements Decorable, java.io.Serializable

An implementation of Decorable using a Non-MT safe hashtable.

Author:
Mike Boilen (mgb)
See Also:
Serialized Form

Constructor Summary
HashtableDecorable()
           
 
Method Summary
 java.util.Enumeration attributes()
          Gets all the keys associated with decorations.
 java.lang.Object destroy(java.lang.Object key)
          Destroys a decoration.
 java.lang.Object get(java.lang.Object key)
          Gets the value of a decoration.
 boolean has(java.lang.Object key)
          Tests if a decoration exists.
 void set(java.lang.Object key, java.lang.Object value)
          Sets the value of a decoration.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashtableDecorable

public HashtableDecorable()
Method Detail

destroy

public java.lang.Object destroy(java.lang.Object key)
                         throws InvalidAttributeException,
                                CoreException
Destroys a decoration.
Specified by:
destroy in interface Decorable
Throws:
InvalidAttributeException - if the decoration does not exist.

has

public boolean has(java.lang.Object key)
Tests if a decoration exists.
Specified by:
has in interface Decorable

set

public void set(java.lang.Object key,
                java.lang.Object value)
         throws InvalidAttributeException,
                CoreException
Sets the value of a decoration.
Specified by:
set in interface Decorable

get

public java.lang.Object get(java.lang.Object key)
                     throws InvalidAttributeException,
                            CoreException
Gets the value of a decoration.
Specified by:
get in interface Decorable

attributes

public java.util.Enumeration attributes()
Gets all the keys associated with decorations.