|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.data.structure.Node
com.sdm.quasar.client.core.data.structure.AspectNode
Defines a node whose value is an aspect of a value. An aspect is usually the value of an attribute.
| Constructor Summary | |
AspectNode(java.lang.String key,
java.lang.String sourceKey,
java.lang.Class sourceType,
java.lang.String aspectName,
java.lang.Class type)
Constructor. |
|
| Method Summary | |
boolean |
canModify()
|
void |
collectSystemInfo(SystemInfoNode root,
SystemInfoOptions options)
Builds the system information tree upon local information of the implementor. |
java.lang.Class |
getSourceType()
|
java.lang.Object |
getValue(java.lang.Object sourceValue)
Reads the aspect using the getter method or a public member variable |
void |
setValue(java.lang.Object sourceValue,
java.lang.Object aspectValue)
Writes the aspect using the setter method |
| 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 |
public AspectNode(java.lang.String key,
java.lang.String sourceKey,
java.lang.Class sourceType,
java.lang.String aspectName,
java.lang.Class type)
key - the key of the nodesourceKey - the key of the node that provides the source value for the aspectsourceType - the type of object that this aspect node expects as source valueaspectName - the name of the aspect which is usually the name of the attributetype - the type of the value that this node represents| Method Detail |
public java.lang.Object getValue(java.lang.Object sourceValue)
sourceValue - the source value
public boolean canModify()
public void setValue(java.lang.Object sourceValue,
java.lang.Object aspectValue)
sourceValue - the source valueaspectValue - the attribute value to setpublic java.lang.Class getSourceType()
public void collectSystemInfo(SystemInfoNode root,
SystemInfoOptions options)
SystemInfoProviderSystemInfoOptions).
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.
collectSystemInfo in interface SystemInfoProvidercollectSystemInfo in class NodeNode.collectSystemInfo(com.sdm.quasar.client.core.common.sysinfo.SystemInfoNode, com.sdm.quasar.client.core.common.sysinfo.SystemInfoOptions)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||