|
|||||||||
| Home >> All >> com >> aendvari >> tethys >> [ context overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.aendvari.tethys.context
Class ContextMap

java.lang.Objectcom.aendvari.tethys.context.ContextMap
- public class ContextMap
- extends java.lang.Object
Associates Context objects with their location in the hierarchy.
| Field Summary | |
private com.aendvari.common.osm.Osm |
contextMap
Stores Context objects in a hierarchy. |
private Context |
defaultContext
The default context of the hierarchy. |
| Constructor Summary | |
ContextMap()
Build a ContextMap object. |
|
ContextMap(Context context)
Build a ContextMap object. |
|
| Method Summary | |
void |
addContext(Context context)
Adds the given context to this map. |
Context |
getContext(java.lang.String location,
boolean returnDefault)
Returns the Context for the specified location. |
com.aendvari.common.osm.Osm |
getContexts()
Returns all Contexts in this map. |
Context |
getDefaultContext()
Returns the default context for this map. |
void |
setContext(Context context)
Sets the given context in this map. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
contextMap
private com.aendvari.common.osm.Osm contextMap
- Stores Context objects in a hierarchy.
defaultContext
private Context defaultContext
- The default context of the hierarchy.
| Constructor Detail |
ContextMap
public ContextMap()
- Build a
ContextMapobject. No default context will be available.
ContextMap
public ContextMap(Context context)
- Build a
ContextMapobject.
| Method Detail |
getDefaultContext
public Context getDefaultContext()
- Returns the default context for this map.
getContext
public Context getContext(java.lang.String location, boolean returnDefault)
- Returns the Context for the specified location.
getContexts
public com.aendvari.common.osm.Osm getContexts()
- Returns all Contexts in this map.
addContext
public void addContext(Context context)
- Adds the given context to this map.
setContext
public void setContext(Context context)
- Sets the given context in this map. Synonym for
addContext(com.aendvari.tethys.context.Context)55 .
|
|||||||||
| Home >> All >> com >> aendvari >> tethys >> [ context overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.aendvari.tethys.context.ContextMap