com.sdm.quasar.client.core.data.plugin
Interface NestedValueHandler


public interface NestedValueHandler

The interface a ValueHandler calls in the value handler stack of a node to pass requests on to the next value handler.

This is a callback interface passed to a value handler when a value accessed (either get or set) to give the value handler access to the next value handler in the stack of the specific node. This chain is organized by the com.sdm.quasar.client.core.data.internal.impl.NodeController.

Version:
1.0
Author:
Thomas Wolf, sd&m AG, Bernd Olleck, sd&m AG

Method Summary
 boolean canModifyValue(Context context)
           
 java.util.Set getIndexSet(Context context)
           
 java.lang.Object getValue(Context context)
          Returns the (indexed) value of the node
 boolean hasValue(Context context)
           
 void setValue(Context context, java.lang.Object value)
          Sets the (indexed) value
 

Method Detail

hasValue

public boolean hasValue(Context context)
Parameters:
context - the context to resolve the indices
Returns:
true iff the node has a value
See Also:
ValueHandler.hasValue(NodeController, Context, NestedValueHandler)

getValue

public java.lang.Object getValue(Context context)
Returns the (indexed) value of the node

Parameters:
context - the context to resolve the indices
Returns:
the indexed value
See Also:
ValueHandler.getValue(NodeController, Context, NestedValueHandler)

canModifyValue

public boolean canModifyValue(Context context)
Parameters:
context - the context to resolve the indices
Returns:
true iff the value can be modified
See Also:
ValueHandler.canModifyValue(NodeController, Context, NestedValueHandler)

setValue

public void setValue(Context context,
                     java.lang.Object value)
Sets the (indexed) value

Parameters:
context - the context to resolve the indices
value - the new value
See Also:
ValueHandler.setValue(NodeController, Context, Object, NestedValueHandler)

getIndexSet

public java.util.Set getIndexSet(Context context)
Parameters:
context - the context to resolve the indices
Returns:
A Set of the index values for the node or null.
See Also:
ValueHandler.getIndexSet(NodeController, Context, NestedValueHandler)