|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.data.impl.DefaultDataManager
Default implementation for DataManager that
delegates to a DataCore.
| Constructor Summary | |
DefaultDataManager(DataCore dataCore)
Constructor. |
|
| Method Summary | |
boolean |
canModifyValue(java.lang.String key)
Tests whether the value with the given name can be modified. |
java.util.Set |
getIndexSet(java.lang.String key)
Returns a Set of the index values for the given key.
|
java.util.Set |
getIndexSet(java.lang.String key,
Context context)
Returns a Set of the index values for the given key. |
DataManagerPlugIn |
getPlugIn(java.lang.Class dataManagerPlugInInterface)
Returns the requested plugin implementation |
java.lang.Object |
getValue(java.lang.String key)
Returns the value corresponding to the given name. |
java.lang.Object |
getValue(java.lang.String key,
Context context)
Returns a value that needs indices to be accessed. |
java.lang.Class |
getValueType(java.lang.String key)
Returnes the Class of the value that may be stored at
or recieved by the data node. |
boolean |
hasKey(java.lang.String key)
Tests whether the DataManager has a node defined for the given key.
|
boolean |
hasPlugIn(java.lang.Class dataManagerPlugInInterface)
Tests whether the DataManager does have a specific plug in installed. |
boolean |
hasValue(java.lang.String key)
Tests whether the node defined by the given key does have a value. |
void |
setValue(java.lang.String key,
Context context,
java.lang.Object value)
Modifies a value that needs indices to be accessed. |
void |
setValue(java.lang.String key,
java.lang.Object value)
Sets the value corresponding to the given name. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DefaultDataManager(DataCore dataCore)
dataCore - the data core to delegate to| Method Detail |
public java.lang.Object getValue(java.lang.String key)
DataManager
getValue in interface DataManagerkey - the key of the data node
public java.lang.Class getValueType(java.lang.String key)
DataManagerClass of the value that may be stored at
or recieved by the data node.
getValueType in interface DataManagerkey - the key of the data node
public void setValue(java.lang.String key,
java.lang.Object value)
DataManager
setValue in interface DataManagerkey - the of the data nodevalue - the new value, may be null if null is a valid value for the corresponding nodepublic boolean hasKey(java.lang.String key)
DataManagerDataManager has a node defined for the given key.
This does not test whether the value is null or not, it tests solely if the
DataManager is configured in a way that allows such a value to exist.
If DataManager.hasKey(String) returns false, DataManager.getValue(String) will return null.
If DataManager.hasKey(String) returns true, DataManager.getValue(String)
depends on the value of this node and the nodes it depends on.
hasKey in interface DataManagerkey - the key of the node
DataManager does have a node defined for the given keypublic boolean hasValue(java.lang.String key)
DataManagerThis does not test whether the value is null or not, it tests solely if the node could have a value other than null.
If DataManager.hasValue(String) returns false, DataManager.getValue(String) will return null.
If DataManager.hasValue(String) returns true, DataManager.getValue(String)
depends on the actually stored value but may return null.
hasValue in interface DataManagerkey - the key of the node
public boolean hasPlugIn(java.lang.Class dataManagerPlugInInterface)
DataManagerDataManager does have a specific plug in installed.
hasPlugIn in interface DataManagerdataManagerPlugInInterface - the interface class (extending DataManagerPlugIn) that defines the plugin
DataManager does have the feature installedpublic DataManagerPlugIn getPlugIn(java.lang.Class dataManagerPlugInInterface)
DataManager
getPlugIn in interface DataManagerdataManagerPlugInInterface - the interface class (extending DataManagerPlugIn) that defines the plugin
public boolean canModifyValue(java.lang.String key)
DataManager
If DataManager.canModifyValue(String) returns false, then DataManager.setValue(String, Object) will
throw an exception. Otherwise the call to DataManager.setValue(String, Object) should succeed,
although it may fail for unexpected reasons.
canModifyValue in interface DataManagerkey - the key of the node to be modified
DataManager can modify the value for the given name
public java.lang.Object getValue(java.lang.String key,
Context context)
DataManager
getValue in interface DataManagerkey - the key of the data nodecontext - the context containing the indices needed to access the value
public void setValue(java.lang.String key,
Context context,
java.lang.Object value)
DataManager
setValue in interface DataManagerkey - the key of the data nodecontext - the context containing the indices needed to access the valuevalue - the new value, may be null if null is a valid value for the corresponding nodepublic java.util.Set getIndexSet(java.lang.String key)
DataManagerSet of the index values for the given key.
The objects of the set may be used as index values within a Context
together with the given key.
The method returns null for not indexed nodes.
getIndexSet in interface DataManagerkey - the key of the data node
Set of the index values for the given key or null.
public java.util.Set getIndexSet(java.lang.String key,
Context context)
DataManagerSet of the index values for the given key. The objects of
the set may be used as additional index values within the given
Context for access with the given key. The method returns null for
not indexed nodes.
getIndexSet in interface DataManagerkey - the key of the data nodecontext - the context containing the indices needed to access the value
Set of the index values for the given key and context or null.public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||