Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.aendvari.tethys.context
Class ContextMap  view ContextMap download ContextMap.java

java.lang.Object
  extended bycom.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 ContextMap object. No default context will be available.


ContextMap

public ContextMap(Context context)
Build a ContextMap object.

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 .