org.excel4j.util
Class ObjectRegistry

java.lang.Object
  extended by org.excel4j.util.ObjectRegistry

public class ObjectRegistry
extends java.lang.Object

Used to contain objects and provides mapping to a generated key.


Constructor Summary
ObjectRegistry()
           
 
Method Summary
 void clear()
          Clear out the registry.
 java.lang.Object get(java.lang.String key)
          Retrieve an object from the registry.
 java.lang.String[] getKeys()
          Get the keys.
 java.lang.String put(java.lang.Object obj)
          Place an object in the registry.
 void remove(java.lang.String key)
          Remove an object from the registry.
 int size()
          Get the size of the registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectRegistry

public ObjectRegistry()
Method Detail

put

public java.lang.String put(java.lang.Object obj)
Place an object in the registry.

Parameters:
obj. -
Returns:
String (the generated key).

getKeys

public java.lang.String[] getKeys()
Get the keys.

Returns:
String[].

get

public java.lang.Object get(java.lang.String key)
Retrieve an object from the registry.

Parameters:
key. -
Returns:
Object.

remove

public void remove(java.lang.String key)
Remove an object from the registry.

Parameters:
key. -

clear

public void clear()
Clear out the registry.


size

public int size()
Get the size of the registry.

Returns:
int.