edu.washington.cs.supple.customization.scope
Class PathNode
java.lang.Object
edu.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
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DOWN
public static final boolean DOWN
- See Also:
- Constant Field Values
UP
public static final boolean UP
- See Also:
- Constant Field Values
PathNode
public PathNode(java.lang.String name,
PathNode next)
PathNode
public PathNode(UiObject object)
PathNode
public PathNode(UiObject lower,
UiObject higher,
boolean downUp)
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()