|
|||||||||||
| 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.AbstractIndexedValueHandler
com.sdm.quasar.client.core.data.plugins.impl.IndexedArrayValueHandler
Default implementation for a value handler that
takes responsibility for storing and accessing a value defined by
IndexedNode that is based on an Array.
| Constructor Summary | |
IndexedArrayValueHandler()
Creates a new IndexedArrayValueHandler. |
|
| Method Summary | |
boolean |
canHandle(Node node)
Tests whether the value handler can handle nodes of the given type. |
protected java.lang.Object |
getIndexedValue(java.lang.Object sourceValue,
java.lang.Object indexValue)
Template method to retrieve to value of the given index from the given source value. |
protected java.util.Set |
getIndexSet(java.lang.Object sourceValue)
Template method to retrieve the set of index values for the given source value. |
protected void |
setIndexedValue(java.lang.Object sourceValue,
java.lang.Object indexValue,
NodeController node,
java.lang.Object value)
Template method to set a value for the given index at the given source value. |
| Methods inherited from class com.sdm.quasar.client.core.data.plugins.impl.AbstractIndexedValueHandler |
canModifyValue, getIndexSet, getValue, hasValue, notifyChildValueChanged, notifyNodeValueChanged, notifySourceValueChanged, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public IndexedArrayValueHandler()
IndexedArrayValueHandler.
| Method Detail |
public boolean canHandle(Node node)
ValueHandler
node - the node definition
com.sdm.quasar.client.core.data.internal.impl.ValueHandler#canHandle(com.sdm.quasar.client.core.data.structure.Node)
protected java.lang.Object getIndexedValue(java.lang.Object sourceValue,
java.lang.Object indexValue)
AbstractIndexedValueHandler
getIndexedValue in class AbstractIndexedValueHandlersourceValue - the source value of the nodeindexValue - the index of the requested value
com.sdm.quasar.client.core.data.plugin.impl.AbstractIndexedValueHandler#getIndexedValue(java.lang.Object, java.lang.Object)
protected void setIndexedValue(java.lang.Object sourceValue,
java.lang.Object indexValue,
NodeController node,
java.lang.Object value)
AbstractIndexedValueHandler
setIndexedValue in class AbstractIndexedValueHandlersourceValue - the source value of the nodeindexValue - the index of the requested valuenode - the node controlle of the nodevalue - of the given index from the given source valuecom.sdm.quasar.client.core.data.plugin.impl.AbstractIndexedValueHandler#setIndexedValue(java.lang.Object, java.lang.Object, com.sdm.quasar.client.core.data.internal.impl.NodeController, java.lang.Object)protected java.util.Set getIndexSet(java.lang.Object sourceValue)
AbstractIndexedValueHandler
getIndexSet in class AbstractIndexedValueHandlersourceValue - the source value of the node
com.sdm.quasar.client.core.data.plugin.impl.AbstractIndexedValueHandler#getIndexSet(java.lang.Object)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||