com.sdm.quasar.client.core.data.structure
Interface DataConfiguration

All Known Subinterfaces:
DataStructureConfiguration
All Known Implementing Classes:
DefaultDataStructureConfiguration

public interface DataConfiguration

Allows configuration of the data structures the DataManager supports.

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

Method Summary
 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
 

Method Detail

hasNode

public boolean hasNode(java.lang.String key)
Tests whether a node has been configured

Parameters:
key - the key of the node
Returns:
true iff the node has been defined

getNode

public Node getNode(java.lang.String key)
Returns the node configured for the given key

Parameters:
key - the key of the node
Returns:
the node for the key
Throws:
java.lang.IllegalArgumentException - if the given key is unknown

removeNode

public Node removeNode(java.lang.String key)
Removes a node and all nodes that depend on it

Parameters:
key - the key of the node to remove
Returns:
the node that has been removed
Throws:
java.lang.IllegalArgumentException - if the given key is unknown

addNode

public void addNode(Node node)
Configures a new node

Parameters:
node - the node that should be added
Throws:
java.lang.IllegalArgumentException - if a node with the key is already known

getNodeKeys

public java.util.Set getNodeKeys()
Returns:
the set of the keys of all nodes.