|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Observable | +--org.datamanager.kernel.SimpletonList
A SimpletonList is an abstract way to maintain an Entity that holds all the Simpletons that can be run in the system. The format for the simpleton list is an Entity that has the name "simpleton-list" and attributes that contain the classes of each Simpleton that can be loaded.
Field Summary | |
static EntityConstraint |
SIMPLETON_LIST_CONSTRAINT
The EntityConstraint used to locate the simpleton list Entity |
static String |
SIMPLETON_LIST_ENTITY_NAME
The name of the simpleton list Entity |
Constructor Summary | |
SimpletonList(Pool pool)
Create a new SimpletonList. |
Method Summary | |
void |
add(Simpleton.Information information)
Adds a LoadableSimpletonEntityValue as an attribute of the simpleton list Entity. |
int |
count()
Get the count of currently available simpletons. |
protected LoadableSimpletonEntityValue[] |
getSimpletonEntities()
Get all of the LoadableSimpletonEntityValues stored on the simpleton list Entity. |
Entity |
getSimpletonListEntity()
Get the Entity that is being used for storage of the simpletons. |
Iterator |
iterator()
Get a iterator for the simpleton list. |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String SIMPLETON_LIST_ENTITY_NAME
public static final EntityConstraint SIMPLETON_LIST_CONSTRAINT
Constructor Detail |
public SimpletonList(Pool pool) throws DataManagerException
Method Detail |
public void add(Simpleton.Information information) throws DataManagerException
information
- The Simpleton.Information of the simpleton being
added to the list.
DataManagerException
public int count() throws DataManagerException
DataManagerException
public Entity getSimpletonListEntity()
public Iterator iterator() throws DataManagerException
DataManagerException
protected LoadableSimpletonEntityValue[] getSimpletonEntities() throws DataManagerException
DataManagerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |