edu.washington.cs.supple.customization.scope
Class PathNode

java.lang.Object
  extended byedu.washington.cs.supple.customization.scope.PathNode

public class PathNode
extends java.lang.Object

Defines a path of UIObject names. A path consists of a sequence of references going upwards inside the specification hierarchy, and a sequence of references going downwards inside the specification hierarchy. Of course each sequence can be empty. This way, it is possible to define a unique path from every UIObject to every other UIObject within the same specification.

Author:
raphael

Field Summary
static boolean DOWN
           
static boolean UP
           
 
Constructor Summary
PathNode(java.lang.String name, PathNode next)
           
PathNode(UiObject object)
           
PathNode(UiObject lower, UiObject higher, boolean downUp)
           
 
Method Summary
 java.lang.Object clone()
           
 PathNode get(int i)
           
 PathNode getLastElement()
           
 java.lang.String getName()
           
 PathNode getNext()
           
 int getSize()
           
 int length()
           
static PathNode match(PathNode p1, PathNode p2)
           
 boolean matches(UiObject o)
           
 void setName(java.lang.String name)
           
 void setNext(PathNode next)
           
 PathNode[] toArray()
           
 java.lang.String toString()
           
 java.lang.String toXPath()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DOWN

public static final boolean DOWN
See Also:
Constant Field Values

UP

public static final boolean UP
See Also:
Constant Field Values
Constructor Detail

PathNode

public PathNode(java.lang.String name,
                PathNode next)

PathNode

public PathNode(UiObject object)

PathNode

public PathNode(UiObject lower,
                UiObject higher,
                boolean downUp)
Method Detail

getName

public java.lang.String getName()

getNext

public PathNode getNext()

setName

public void setName(java.lang.String name)

setNext

public void setNext(PathNode next)

getSize

public int getSize()

matches

public boolean matches(UiObject o)

match

public static PathNode match(PathNode p1,
                             PathNode p2)

toXPath

public java.lang.String toXPath()

length

public int length()

toArray

public PathNode[] toArray()

getLastElement

public PathNode getLastElement()

get

public PathNode get(int i)

toString

public java.lang.String toString()

clone

public java.lang.Object clone()