|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.generic.attribute.CustomAttributeGeneratorRegistry
An object that maps keys to CustomAttributeGenerators. This
registry cannot contain duplicate keys. Each key maps to at most one value.
| Method Summary | |
static void |
clearRegistry()
Removes all key-generator mappings from the registry |
static boolean |
contains(java.lang.Object key)
Returns true, if the registry contains a generator for the given key |
static CustomAttributeGenerator |
getGenerator(java.lang.Object key)
Returns the generator belonging to the given key. |
static java.util.Iterator |
getKeys()
Returns an iterator for the currently registered keys. |
static void |
registerGenerator(java.lang.Object key,
CustomAttributeGenerator generator)
Registers the given generator for the given key. |
static void |
unregisterGenerator(java.lang.Object key)
Unregisters the generator for the given key. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void registerGenerator(java.lang.Object key,
CustomAttributeGenerator generator)
key - the unique identifier.generator - the generator to be used.public static void unregisterGenerator(java.lang.Object key)
key - the key for that to unregister the generator.public static CustomAttributeGenerator getGenerator(java.lang.Object key)
null, if the registry contains no mapping for this key.
key - the key whose associated generator is to be returned.
null, if there is no mapping for this key.public static boolean contains(java.lang.Object key)
key - the key of the generator to look for
public static java.util.Iterator getKeys()
Iterator for the registered keys.public static void clearRegistry()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||