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

java.lang.Object
  extended byedu.washington.cs.supple.customization.scope.Reference
      extended byedu.washington.cs.supple.customization.scope.AbsoluteReference

public class AbsoluteReference
extends Reference

Defines an absolute reference to a UIObject inside a functional specification.

Author:
raphael

Constructor Summary
AbsoluteReference(PathNode path)
           
AbsoluteReference(UiObject o)
           
 
Method Summary
 Reference extendReference(Reference r)
           
 UiObject getUiObject(UiObject start)
          Returns the UiObject that this reference refers to.
 java.lang.String toReverseXPath()
           
 java.lang.String toString()
           
 java.lang.String toXPath()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbsoluteReference

public AbsoluteReference(UiObject o)

AbsoluteReference

public AbsoluteReference(PathNode path)
Method Detail

getUiObject

public UiObject getUiObject(UiObject start)
Description copied from class: Reference
Returns the UiObject that this reference refers to. For relative paths we have to provide a start object. For absolute paths, the start object is used to determine the absolute root and then follow the path.

Specified by:
getUiObject in class Reference

extendReference

public Reference extendReference(Reference r)
Specified by:
extendReference in class Reference

toXPath

public java.lang.String toXPath()
Specified by:
toXPath in class Reference

toReverseXPath

public java.lang.String toReverseXPath()
Specified by:
toReverseXPath in class Reference

toString

public java.lang.String toString()
Specified by:
toString in class Reference