|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jicengine.operation.AbstractContext
org.jicengine.operation.SimpleContext
Nested Class Summary |
Nested classes inherited from class org.jicengine.operation.Context |
Context.DuplicateNameException, Context.ObjectNotFoundException |
Constructor Summary | |
SimpleContext()
|
|
SimpleContext(java.lang.String name)
|
Method Summary | |
void |
addObject(java.lang.String name,
java.lang.Object object)
If addObject success, the object stored will be returned by getObject with the same name. |
java.lang.Object |
getObject(java.lang.String name)
finds an object from the context. |
boolean |
hasObject(java.lang.String name)
|
Methods inherited from class org.jicengine.operation.AbstractContext |
getName, getName, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SimpleContext()
public SimpleContext(java.lang.String name)
Method Detail |
public boolean hasObject(java.lang.String name)
public java.lang.Object getObject(java.lang.String name) throws Context.ObjectNotFoundException
Context
Context.ObjectNotFoundException
- if the context doesn't have an object
with the given name.public void addObject(java.lang.String name, java.lang.Object object)
Context
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |