com.sdm.quasar.client.core.data.structure
Class IndexedNode

java.lang.Object
  extended bycom.sdm.quasar.client.core.data.structure.Node
      extended bycom.sdm.quasar.client.core.data.structure.IndexedNode
All Implemented Interfaces:
SystemInfoProvider

public class IndexedNode
extends Node

Defines a node that provides indexed access to some collection of data.

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

Constructor Summary
IndexedNode(java.lang.String key, java.lang.String sourceNodeKey, java.lang.Class sourceType, java.lang.Class indexType, java.lang.Class type)
          Constructor.
 
Method Summary
 void collectSystemInfo(SystemInfoNode root, SystemInfoOptions options)
          Builds the system information tree upon local information of the implementor.
 java.lang.Class getIndexType()
           
 java.lang.Class getSourceType()
           
 
Methods inherited from class com.sdm.quasar.client.core.data.structure.Node
getKey, getSourceNodeKeys, getType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IndexedNode

public IndexedNode(java.lang.String key,
                   java.lang.String sourceNodeKey,
                   java.lang.Class sourceType,
                   java.lang.Class indexType,
                   java.lang.Class type)
Constructor.

Parameters:
key - the key of the node
sourceNodeKey - the key of the source node providing the collection
sourceType - the type of the source value
indexType - the type of the index values
type - the type of the values in the collection
Method Detail

getIndexType

public java.lang.Class getIndexType()
Returns:
the type of the index used to resolve the context

getSourceType

public java.lang.Class getSourceType()
Returns:
the type of the value that is expected from the source

collectSystemInfo

public void collectSystemInfo(SystemInfoNode root,
                              SystemInfoOptions options)
Description copied from interface: SystemInfoProvider
Builds the system information tree upon local information of the implementor. The system information tree can be used within development by inspecting the system; so implementors should append their internal state (depending on the details settings within SystemInfoOptions). The information can be appended to the tree by adding new child SystemInformationNodes to the root node given using the SystemInfoNode.createChild(String) method and by setting information attributes the these nodes or the given root node.

Specified by:
collectSystemInfo in interface SystemInfoProvider
Overrides:
collectSystemInfo in class Node
See Also:
Node.collectSystemInfo(com.sdm.quasar.client.core.common.sysinfo.SystemInfoNode, com.sdm.quasar.client.core.common.sysinfo.SystemInfoOptions)