public interface LocalAgent
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCaption(java.lang.Object object)
Retrieve the Caption of the object if one exits.
|
int |
getChildCount(java.lang.Object parent)
Return the number of children available in the provided parent.
|
java.lang.Object[] |
getChildren(java.lang.Object parent)
Return an array representing the children of the provided parent object.
|
java.lang.String |
getClassName(java.lang.Object object)
Return the Class name of the object.
|
java.lang.String |
getID(java.lang.Object object)
Retrieve the ID of the object if the object has an ID.
|
int |
getLevel(java.lang.Object object)
Return the Z-Order level of the object (generally for a top level window).
|
java.lang.Object |
getMatchingPathObject(java.lang.Object theObject,
java.lang.String thePath)
Mechanism to retrieve a subitem/object identified
by the provided Path.
|
java.lang.String |
getName(java.lang.Object object)
Retrieve the name of the object if the object is named.
|
java.lang.String |
getProperty(java.lang.Object object,
java.lang.String property)
Retrieve the property value of the object if the object has the property.
|
java.lang.String[] |
getPropertyNames(java.lang.Object object)
Retrieve the list of available properties for the object.
|
java.lang.String[][] |
getStringData(java.lang.Object object,
java.lang.Object dataInfo)
Return whatever data is extractable (normally visible) from the object.
|
java.lang.String[] |
getSuperClassNames(java.lang.Object object)
Return the array of all superclass names for the object.
|
java.lang.String |
getText(java.lang.Object object)
Retrieve the displayed text value of the object if the object has a text value.
|
boolean |
isMatchingPath(java.lang.Object theObject,
java.lang.String thePath)
Mechanism to determine if the object contains a subitem/object identified
by the provided Path.
|
boolean |
isShowing(java.lang.Object object)
Return true if the object is showing/visible.
|
boolean |
isValid(java.lang.Object object)
Return true if the object is still valid/finadable in the JVM.
|
TestRecordData |
process(java.lang.Object object,
TestRecordData testRecordData)
Process the action provided in the testRecordData.
|
int getChildCount(java.lang.Object parent)
java.lang.Object[] getChildren(java.lang.Object parent)
parent
- An object from getTopLevelWindows or from a previous call to getChildren.
The parent is often one of the elements of the TopLevelWindow array or somewhere
lower in that same hierarchy.java.lang.String getCaption(java.lang.Object object)
object
- An object from getTopLevelWindows or from a previous call to getChildren.java.lang.String getName(java.lang.Object object)
object
- An object from getTopLevelWindows or from a previous call to getChildren.java.lang.String getID(java.lang.Object object)
object
- An object from getTopLevelWindows or from a previous call to getChildren.java.lang.String getText(java.lang.Object object)
object
- An object from getTopLevelWindows or from a previous call to getChildren.java.lang.String[] getPropertyNames(java.lang.Object object)
object
- An object from getTopLevelWindows or from a previous call to getChildren.java.lang.String getProperty(java.lang.Object object, java.lang.String property) throws NoSuchPropertyException
object
- -- An object from getTopLevelWindows or from a previous call to getChildren.property
- -- the case-sensitive name of the property to seek.NoSuchPropertyException
java.lang.String getClassName(java.lang.Object object)
object
- An object from getTopLevelWindows or from a previous call to getChildren.int getLevel(java.lang.Object object)
object
- An object from getTopLevelWindows or from a previous call to getChildren.boolean isShowing(java.lang.Object object)
object
- An object from getTopLevelWindows or from a previous call to getChildren.boolean isValid(java.lang.Object object)
object
- An object from getTopLevelWindows or from a previous call to getChildren.java.lang.String[] getSuperClassNames(java.lang.Object object)
object
- An object from getTopLevelWindows or from a previous call to getChildren.java.lang.Object getMatchingPathObject(java.lang.Object theObject, java.lang.String thePath) throws java.lang.Exception
Ex:
File->Exit
Root->Branch->Leaf
theObject--Object
- proxy for the object to be evaluated.thePath
- information to locate another object or subitem relative to theObject.
this is usually something like a menuitem or tree node where supported.java.lang.Exception
boolean isMatchingPath(java.lang.Object theObject, java.lang.String thePath) throws java.lang.Exception
Ex:
File->Exit
Root->Branch->Leaf
theObject--Object
- proxy for the object to be evaluated.thePath
- information to locate another object or subitem relative to theObject.
this is usually something like a menuitem or tree node where supported.java.lang.Exception
java.lang.String[][] getStringData(java.lang.Object object, java.lang.Object dataInfo)
object
- An object from getTopLevelWindows or from a previous call to getChildren.dataInfo
- Allows us to specify what type of data we want returned. This will be
specific to the types of objects from which we extract data. For example, Tables might
provide "Contents" or "Headers" or other different types of data. This dataInfo is
usually provided as a String value.TestRecordData process(java.lang.Object object, TestRecordData testRecordData)
testRecordData
- provides all the information needed by the Agent to perform the action.Copyright © SAS Institute. All Rights Reserved.