|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jtge.engine.data.Resolver
Implements a data identifier resolver.
This class registers data in order to retrieve them later based on their identifier.
Constructor Summary | |
Resolver()
Create a resolver. |
Method Summary | |
boolean |
register(IData data)
Register a new data. |
IData |
resolve(java.lang.String identifier)
Retrieve a data based on its identifier. |
boolean |
unregister(IData data)
Unregister a data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Resolver()
Method Detail |
public final boolean register(IData data)
The data cannot be registered if another data with the same identifier already exists.
register
in interface IResolver
data
- the data to register
public final boolean unregister(IData data)
The data cannot be unregistered if it has not been previously registered.
data
- the data to unregister
public final IData resolve(java.lang.String identifier)
resolve
in interface IResolver
identifier
- the data identifier
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |