com.unitesk.atp.tree
Class TreeClass.NodeClass

java.lang.Object
  extended by com.unitesk.atp.dynattrs.IndexedAttributedImpl
      extended by com.unitesk.atp.dynattrs.MapAttributed
          extended by com.unitesk.atp.dynattrs.BeanMapAttributed
              extended by com.unitesk.atp.tree.TreeClass.NodeClass
All Implemented Interfaces:
Attributed, Keyed, Node, Serializable
Enclosing class:
TreeClass

public abstract static class TreeClass.NodeClass
extends BeanMapAttributed
implements Node

The default implementation of Node interface. Uses BeanMapAttributed as implementation of Attributed interface.

See Also:
Serialized Form

Constructor Summary
TreeClass.NodeClass()
           
 
Method Summary
 Node getParent()
          Gets the parent of this node.
 Node getThis()
          Provides access to 'this' through Attributed interface.
 void makeChild(String name)
          Makes a value of the specified attribute a child of this node.
 void resetParent()
          Reset parent of this node.
 void setParent(Node parent)
          Sets the parent of this node.
 
Methods inherited from class com.unitesk.atp.dynattrs.BeanMapAttributed
getAttribute, getAttributeNames, hasAttribute, isRemovable, isWritable, removeAttribute, setAttribute
 
Methods inherited from class com.unitesk.atp.dynattrs.MapAttributed
addAttribute, createMap, isAttrCreatable
 
Methods inherited from class com.unitesk.atp.dynattrs.IndexedAttributedImpl
getAttribute, isIndexed, setAttribute, sizeAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.unitesk.atp.tree.Node
accept
 
Methods inherited from interface com.unitesk.atp.tree.Keyed
key, keyClass
 

Constructor Detail

TreeClass.NodeClass

public TreeClass.NodeClass()
Method Detail

getParent

public Node getParent()
Description copied from interface: Node
Gets the parent of this node.

Specified by:
getParent in interface Node
Returns:
The parent of this node. Can be null only for root node.

setParent

public void setParent(Node parent)
Description copied from interface: Node
Sets the parent of this node.

Specified by:
setParent in interface Node
Parameters:
parent - The node to become parent of this node.
See Also:
Node.resetParent()

resetParent

public void resetParent()
Description copied from interface: Node
Reset parent of this node.

Specified by:
resetParent in interface Node
See Also:
Node.setParent(Node)

getThis

public Node getThis()
Provides access to 'this' through Attributed interface.


makeChild

public final void makeChild(String name)
Description copied from interface: Node
Makes a value of the specified attribute a child of this node. If this attribute is indexed makes each element of its value a child of this node. null an attribute value or an element are allowed.

Specified by:
makeChild in interface Node
Parameters:
name - The name of an attribute of this node.


Copyright © 2001-2006 ISP RAS, RedVerst Group. All Rights Reserved.