|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.data.plugins.impl.BaseValueHandler
Default implementation for a value handler that takes responsibility for
storing and accessing a value defined by an BaseNode.
| Constructor Summary | |
BaseValueHandler()
|
|
| Method Summary | |
boolean |
canHandle(Node node)
Tests whether the value handler can handle nodes of the given type. |
boolean |
canModifyValue(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
Tests whether the value of the node can be modified. |
java.util.Set |
getIndexSet(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
Retrieves a Set of the index values for the node.
|
java.lang.Object |
getValue(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
Retrieves the value of the node. |
boolean |
hasValue(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
Tests whether the node has a indexed value. |
void |
notifyChildValueChanged(NodeController node,
java.lang.String childKey)
This implementation does nothing |
void |
notifyNodeValueChanged(NodeController node)
This implementation does nothing |
void |
notifySourceValueChanged(NodeController node,
java.lang.String sourceKey)
This implementation throws an exception since a base value does not depend on any other value. |
void |
setValue(NodeController node,
Context context,
java.lang.Object value,
NestedValueHandler nestedValueHandler)
Sets the indexed value of the node. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BaseValueHandler()
| Method Detail |
public boolean canHandle(Node node)
ValueHandler
canHandle in interface ValueHandlernode - the node definition
com.sdm.quasar.client.core.data.internal.impl.ValueHandler#canHandle(com.sdm.quasar.client.core.data.structure.Node)
public boolean hasValue(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
ValueHandlerNestedValueHandler#hasValue().
hasValue in interface ValueHandlernode - the concerned nodecontext - the context to resolve the indicesnestedValueHandler - the adapter to the next value handler
com.sdm.quasar.client.core.data.internal.impl.ValueHandler#hasValue(com.sdm.quasar.client.core.data.internal.impl.NodeController, com.sdm.quasar.client.core.data.Context, com.sdm.quasar.client.core.data.internal.impl.NestedValueHandler)
public java.lang.Object getValue(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
ValueHandlerNestedValueHandler.getValue(Context).
getValue in interface ValueHandlernode - the concerned nodecontext - the context to resolve the indicesnestedValueHandler - the adapter to the next value handler
in the chain of value handlers of that node
com.sdm.quasar.client.core.data.internal.impl.ValueHandler#getValue(com.sdm.quasar.client.core.data.internal.impl.NodeController, com.sdm.quasar.client.core.data.Context, com.sdm.quasar.client.core.data.internal.impl.NestedValueHandler)
public boolean canModifyValue(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
ValueHandlerNestedValueHandler#canModifyValue().
canModifyValue in interface ValueHandlernode - the concerned nodecontext - the context to resolve the indicesnestedValueHandler - the adapter to the next value handler
com.sdm.quasar.client.core.data.internal.impl.ValueHandler#canModifyValue(com.sdm.quasar.client.core.data.internal.impl.NodeController, com.sdm.quasar.client.core.data.Context, com.sdm.quasar.client.core.data.internal.impl.NestedValueHandler)
public void setValue(NodeController node,
Context context,
java.lang.Object value,
NestedValueHandler nestedValueHandler)
ValueHandlerNodeController.startNodeValueChangedNotification().
If it does not take responsability it must notify the
nested value handler using
NestedValueHandler.setValue(Context, Object).
setValue in interface ValueHandlernode - the concerned nodecontext - the context to resolve the indicesvalue - the value to be set, may be nullnestedValueHandler - the adapter to the next value handler
in the chain of value handlers of that nodecom.sdm.quasar.client.core.data.internal.impl.ValueHandler#setValue(com.sdm.quasar.client.core.data.internal.impl.NodeController, com.sdm.quasar.client.core.data.Context, java.lang.Object, com.sdm.quasar.client.core.data.internal.impl.NestedValueHandler)
public java.util.Set getIndexSet(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
ValueHandlerSet of the index values for the node.
If this value handler does not take responsability for the storing of the value
it must retrieve the set by using NestedValueHandler.getIndexSet(com.sdm.quasar.client.core.data.Context).
getIndexSet in interface ValueHandlernode - the concerned nodecontext - the context to resolve the indicesnestedValueHandler - the adapter to the next value handler
Set of the index values for the node or null.com.sdm.quasar.client.core.data.internal.impl.ValueHandler#getIndexSet(com.sdm.quasar.client.core.data.internal.impl.NodeController, com.sdm.quasar.client.core.data.Context, com.sdm.quasar.client.core.data.internal.impl.NestedValueHandler)public void notifyNodeValueChanged(NodeController node)
notifyNodeValueChanged in interface ValueHandlernode - the node whose value has changedValueHandler.notifyNodeValueChanged(NodeController)
public void notifyChildValueChanged(NodeController node,
java.lang.String childKey)
notifyChildValueChanged in interface ValueHandlernode - the node that is notifiedchildKey - the key of the child node whose value has changedValueHandler.notifyChildValueChanged(NodeController, String)
public void notifySourceValueChanged(NodeController node,
java.lang.String sourceKey)
notifySourceValueChanged in interface ValueHandlernode - the node that is notifiedsourceKey - the key of the source node whose value has changed
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||