|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Adds convenience methods to DataConfiguration
that define the structure of the DataManager using
DataConfiguration.addNode(Node).
| Method Summary | |
AspectNode |
addAspectNode(java.lang.String key,
java.lang.String sourceKey,
java.lang.Class sourceType,
java.lang.String aspectName,
java.lang.Class aspectType)
Registers an aspect node that depends on one source value and provides the value of an aspect of that value. |
BaseNode |
addBaseNode(java.lang.String key,
java.lang.Class type)
Registers a base node that does not depend on any other node and holds a value of the given type. |
ComputedNode |
addComputedNode(java.lang.String key,
java.lang.String[] sourceKeys,
Computation computation)
Registers a computed node that depends on one or more source values and is defined by a Computation.
|
IndexedNode |
addIndexedNode(java.lang.String key,
java.lang.String sourceKey,
java.lang.Class sourceType,
java.lang.Class indexType,
java.lang.Class type)
Registers an indexed node that depends on one source value and provides indexed access to the value. |
| Methods inherited from interface com.sdm.quasar.client.core.data.structure.DataConfiguration |
addNode, getNode, getNodeKeys, hasNode, removeNode |
| Method Detail |
public BaseNode addBaseNode(java.lang.String key,
java.lang.Class type)
key - the key of the node to createtype - the type that this node holds
public AspectNode addAspectNode(java.lang.String key,
java.lang.String sourceKey,
java.lang.Class sourceType,
java.lang.String aspectName,
java.lang.Class aspectType)
key - the key of the node to createsourceKey - the key of the node that holds the source valuesourceType - the type of the value that is expected from the source nodeaspectName - the name of the aspect, i.e. the name of the attribute of the source valueaspectType - the type that the aspect guarantees to have.
This is usually the type of the attribute
but it may be narrowed to a type that is assignable to the type of the attribute.
public ComputedNode addComputedNode(java.lang.String key,
java.lang.String[] sourceKeys,
Computation computation)
Computation.
When computed, the values of the nodes that are defined by the source keys
are passed to the Computation in the order the keys are defined
in this method.
key - the key of the node to createsourceKeys - the keys of the nodes in the order that the computation depends oncomputation - the computation rule
public IndexedNode addIndexedNode(java.lang.String key,
java.lang.String sourceKey,
java.lang.Class sourceType,
java.lang.Class indexType,
java.lang.Class type)
DataManagerPlugIns
of the DataManager.
key - the key of the node to createsourceKey - the key of the source node that provides the collectionsourceType - the type of the source valueindexType - the type of the index valuestype - the type of the values in the collection
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||