|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.syncclient.spdm.NodeImpl
public class NodeImpl
This is an implementation of ManagamentNode that uses file system directories for contexts and properties file for leaf nodes. $Id: NodeImpl.java,v 1.3 2007-12-22 18:09:17 nichele Exp $
Constructor Summary | |
---|---|
NodeImpl(ManagementNode parent,
java.lang.String context)
Creates a NodeImpl object for the given management context and parent node. |
Method Summary | |
---|---|
ManagementNode |
getChildNode(java.lang.String subcontext)
Retrieves the subnode with the given name |
ManagementNode[] |
getChildren()
Retrieves the children subnodes of the current node. |
java.lang.String |
getContext()
Returns the node's context |
java.lang.String |
getFullContext()
Returns the entire node's context path (concatenation of all parent context paths). |
java.lang.Object |
getManagementObject(java.lang.String node)
Reads the properties of the given node and creates an object with the values read. |
java.lang.Object |
getNodeValue(java.lang.String node,
java.lang.String name)
Retrieves a value from the given management subnode name. |
java.util.Hashtable |
getNodeValues(java.lang.String node)
Provides direct access to a management subtree relative to the node's fullContext. |
ManagementNode |
getParent()
Retrieves this node's parent. |
java.lang.Object |
getValue(java.lang.String name)
Returns the given config parameter |
java.util.Hashtable |
getValues()
|
void |
removeNode(java.lang.String node)
Remove subnode from configuration three. |
void |
setValue(java.lang.String name,
java.lang.Object value)
Sets a node value as a whole object. |
void |
setValue(java.lang.String node,
java.lang.String name,
java.lang.Object value)
Sets a subnode specific value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeImpl(ManagementNode parent, java.lang.String context)
parent
- the parent context; if null, create a root nodecontext
- the contextMethod Detail |
---|
public java.lang.String getContext()
getContext
in interface ManagementNode
public java.lang.String getFullContext()
getFullContext
in interface ManagementNode
public java.lang.Object getValue(java.lang.String name) throws DMException
ManagementNode
getValue
in interface ManagementNode
name
- the configration parameter name
DMException
- in case of errors.public java.util.Hashtable getValues() throws DMException
getValues
in interface ManagementNode
DMException
- in case of errors.public java.util.Hashtable getNodeValues(java.lang.String node) throws DMException
getNodeValues
in interface ManagementNode
node
- the name of the subnode (it may contain directories)
DMException
- in case of errors.public java.lang.Object getNodeValue(java.lang.String node, java.lang.String name) throws DMException
getNodeValue
in interface ManagementNode
node
- the subnode containing the config value specified by namename
- the name of the configuration value to return
DMException
- in case of errors.public java.lang.Object getManagementObject(java.lang.String node) throws DMException
getManagementObject
in interface ManagementNode
node
- the subnode containing the required config values
DMException
- in case of errors.public ManagementNode[] getChildren() throws DMException
getChildren
in interface ManagementNode
DMException
- in case of errors.public ManagementNode getChildNode(java.lang.String subcontext) throws DMException
getChildNode
in interface ManagementNode
DMException
- in case of errors.public ManagementNode getParent()
getParent
in interface ManagementNode
DMException
- in case of errors.public void setValue(java.lang.String name, java.lang.Object value) throws DMException
setValue
in interface ManagementNode
name
- value
- the value
DMException
- in case of errors.public void setValue(java.lang.String node, java.lang.String name, java.lang.Object value) throws DMException
setValue
in interface ManagementNode
node
- subnode to setname
- configuration parameter to setvalue
-
DMException
- in case of errors.public void removeNode(java.lang.String node) throws DMException
removeNode
in interface ManagementNode
node
- subnode to reomove
DMException
- in case of errors.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |