public class ApplicationMap extends STAFRequester
Each App Map represents one of any number of separate storage maps used for testing the application. Each App Map is known by its mapname which is retrievable with getMapName(). The name of the App Map is expected to match a corresponding App Map opened and handled by the SAFSMAPS service in STAF.
A Valid STAFHelper object must have been provided by a subclass implementation or via a direct call to setSTAFHelper prior to using an instance of this class.
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
mapname
The name of this AppMap.
|
staf
Constructor and Description |
---|
ApplicationMap(java.lang.String mapname)
Subclasses should call this constructor or insure mapname gets set.
|
Modifier and Type | Method and Description |
---|---|
void |
clearMap() |
static java.lang.String |
extractTaggedGUIID(java.lang.String recognition)
Extract the recognition string portion of a GUIID "tagged" by SAFSMAPS.
|
java.lang.String |
getChildGUIID(java.lang.String parentName,
java.lang.String childName)
Retrieves the stored recognition string for the parent's child.
|
java.lang.String |
getChildGUIID(java.lang.String parentName,
java.lang.String childName,
boolean isDynamic)
Retrieves the stored recognition string for the parent's child.
|
java.lang.Object |
getChildObject(java.lang.String parentName,
java.lang.String childName)
Retrieves the object stored for the given parent's child.
|
java.lang.String |
getMapName() |
java.lang.String |
getParentGUIID(java.lang.String parentName)
Retrieves the stored recognition string for the parent.
|
java.lang.String |
getParentGUIID(java.lang.String parentName,
boolean isDynamic)
Retrieves the stored recognition string for the parent.
|
java.lang.Object |
getParentObject(java.lang.String parentName)
Retrieves the actual parent Object for the given parentName.
|
static boolean |
isGUIIDDynamic(java.lang.String recognition)
Was the recognition string tagged by SAFSMAPS with ISDYNAMIC?
SAFSMAPS will now tag recognition strings with ISDYNAMIC if it is requested to
do so by the caller:
|
void |
setChildObject(java.lang.String parentName,
java.lang.String childName,
java.lang.Object child)
Stores the actual child Object for the named parent/child.
|
void |
setParentObject(java.lang.String parentName,
java.lang.Object parent)
Stores the actual parent Object for the given parentName.
|
getSTAFHelper, setSTAFHelper
protected java.lang.String mapname
public ApplicationMap(java.lang.String mapname)
mapname
- the name given to this AppMap. This should be identical to
the name of an AppMap handled by the SAFSMAPS service.public void clearMap()
public java.lang.String getMapName()
public java.lang.String getChildGUIID(java.lang.String parentName, java.lang.String childName)
A Valid STAFHelper object must have been provided by a subclass implementation or via a direct call to setSTAFHelper prior to this call.
parentName
- the name of the parent object or section in the AppMap.
childName
- the name of the parent's child to retrieve.
public java.lang.String getParentGUIID(java.lang.String parentName)
parentName
- the name of the parent object as stored.
public java.lang.String getChildGUIID(java.lang.String parentName, java.lang.String childName, boolean isDynamic)
A Valid STAFHelper object must have been provided by a subclass implementation or via a direct call to setSTAFHelper prior to this call.
parentName
- the name of the parent object or section in the AppMap.
childName
- the name of the parent's child to retrieve.
isDynamic
- determines whether recognition string should be checked to see if its dynamic
public java.lang.String getParentGUIID(java.lang.String parentName, boolean isDynamic)
parentName
- the name of the parent object as stored.
isDynamic
- determines whether recognition string should be checked to see if its dynamic
public static boolean isGUIIDDynamic(java.lang.String recognition)
ISDYNAMIC;RECOGNITION=<GUIID recognition>
The routine will also return true if the recognition string is "CurrentWindow".
recognition
- -- the non-null, potentially tagged recognition string from getGUIID calls.SAFSAppMapService
public static java.lang.String extractTaggedGUIID(java.lang.String recognition)
<tags>;Recognition=<GUIID recognition>
If the item is not "tagged" then it will be returned unmodified.
recognition
- -- the non-null, potentially tagged recognition string from getGUIID calls.SAFSAppMapService
public void setChildObject(java.lang.String parentName, java.lang.String childName, java.lang.Object child)
parentName
- the name of the parent as stored in the AppMap.
childName
- the name of the parent's child.
child
- the actual child object.public java.lang.Object getChildObject(java.lang.String parentName, java.lang.String childName)
parentName
- the name of the parent as stored in the AppMap.
childName
- the name of the parent's child.
public java.lang.Object getParentObject(java.lang.String parentName)
parentName
- the name of the parent object stored in the AppMap.
public void setParentObject(java.lang.String parentName, java.lang.Object parent)
parentName
- the name of the parent object to store in the AppMap.
parent
- the actual parent object.
Copyright © SAS Institute. All Rights Reserved.