com.arsdigita.util
Class Tree.EdgeTreePair

java.lang.Object
  extended bycom.arsdigita.util.Tree.EdgeTreePair
Enclosing class:
Tree

public static class Tree.EdgeTreePair
extends Object

Nodes in a tree are connected with edges. An edge can be object that characterizes the relationship between the parent and the child nodes. For example, if you use the tree to represent the composition structure of XSLT stylesheets, then the edge object may be a string with one of two possible values: "xsl:import" and "xsl:include", allowing you to distinguish the method by which the parent stylesheet incorporates the child.

The edge-tree pair class represents an order pair where the first element is the edge, and the second is the subtree rooted at the head node of the edge.


Method Summary
 Object getEdge()
           
 Tree getTree()
          Returns the subtree rooted at the head node of the edge.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getEdge

public Object getEdge()

getTree

public Tree getTree()
Returns the subtree rooted at the head node of the edge.



Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC