|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.data.Context
Stores values that may be used to resolve index values while accessing
an value using DataManager.getValue(String, Context)
and DataManager#setIndexedValue(String, Context, Object).
This object contains an association of keys ({@link String}) of nodes that are indexed values to the values that should be used for indexed access in these nodes ({@link Object}).
| Constructor Summary | |
Context()
Constructor. |
|
| Method Summary | |
void |
clearContext()
Clears all index values within this context. |
void |
clearIndex(java.lang.String key)
Removes the index value for the given key |
boolean |
containsIndex(java.lang.String key)
Returns true iff this context holds a value for the given key |
boolean |
equals(java.lang.Object obj)
|
java.lang.Object |
getIndex(java.lang.String key)
Returns the value for the given key or null if there is no value associated with the key |
int |
hashCode()
|
void |
setIndex(java.lang.String key,
java.lang.Object indexValue)
Sets a value for the index resolution for the node defined by key |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Context()
| Method Detail |
public void setIndex(java.lang.String key,
java.lang.Object indexValue)
key - the key of the indexed nodeindexValue - the value to be used as indexpublic void clearContext()
public void clearIndex(java.lang.String key)
key - the key of an indexed nodepublic boolean containsIndex(java.lang.String key)
key - the key of the indexed node
public java.lang.Object getIndex(java.lang.String key)
key - the key of the indexed node
public java.lang.String toString()
Object.toString()public int hashCode()
Object.hashCode()public boolean equals(java.lang.Object obj)
Object.equals(java.lang.Object)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||