|
|||||||||||
| 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.DefaultDataStructureConfiguration
Default implementation for DataStructureConfiguration
that delegates to a DataCore.
| Constructor Summary | |
DefaultDataStructureConfiguration(DefaultDataCore dataCore)
Constructor |
|
| 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. |
void |
addNode(Node node)
Configures a new node |
Node |
getNode(java.lang.String key)
Returns the node configured for the given key |
java.util.Set |
getNodeKeys()
|
boolean |
hasNode(java.lang.String key)
Tests whether a node has been configured |
Node |
removeNode(java.lang.String key)
Removes a node and all nodes that depend on it |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultDataStructureConfiguration(DefaultDataCore dataCore)
dataCore - the data core to delegate to| Method Detail |
public BaseNode addBaseNode(java.lang.String key,
java.lang.Class type)
DataStructureConfiguration
addBaseNode in interface DataStructureConfigurationkey - 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)
DataStructureConfiguration
addAspectNode in interface DataStructureConfigurationkey - 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)
DataStructureConfigurationComputation.
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.
addComputedNode in interface DataStructureConfigurationkey - 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)
DataStructureConfigurationDataManagerPlugIns
of the DataManager.
addIndexedNode in interface DataStructureConfigurationkey - 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
public boolean hasNode(java.lang.String key)
DataConfiguration
hasNode in interface DataConfigurationkey - the key of the node
public Node getNode(java.lang.String key)
DataConfiguration
getNode in interface DataConfigurationkey - the key of the node
public Node removeNode(java.lang.String key)
DataConfiguration
removeNode in interface DataConfigurationkey - the key of the node to remove
public void addNode(Node node)
DataConfiguration
addNode in interface DataConfigurationnode - the node that should be addedpublic java.util.Set getNodeKeys()
getNodeKeys in interface DataConfiguration
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||