public class AGuiObjectRecognition extends GuiObjectRecognition
GuiObjectRecognition.GORInfo
Modifier and Type | Field and Description |
---|---|
(package private) static AGuiClassData |
classdata |
_convert_NBSP_Strings, assignSeparator, CATEGORY_CLASS, CATEGORY_CLASS_ID, CATEGORY_CURRENTWINDOW, CATEGORY_CURRENTWINDOW_ID, CATEGORY_DOMAIN, CATEGORY_DOMAIN_ID, CATEGORY_JAVA_CLASS, CATEGORY_PROCESS, CATEGORY_PROCESS_ID, CATEGORY_TYPE, CATEGORY_TYPE_ID, CATEGORY_UNKNOWN_ID, categoryIndex, classCategory, classCategoryID, classInfo, classValue, containerClassesIgnoredForRecognition, containerNamesIgnoredForRecognition, containerTypes, containerTypesIgnoredForRecognition, containerTypesWithOnlyOneChildVisible, DEFAULT_ASSIGN_SEPARATOR, DEFAULT_CLOSE_CAPTION_EXPRESSION, DEFAULT_MATCH_ANY, DEFAULT_OPEN_CAPTION_EXPRESSION, DEFAULT_PATH_SEPARATOR, DEFAULT_PROPERTY_QUALIFIER_SEPARATOR, DEFAULT_QUALIFIER_SEPARATOR, DhtmlElements, domainInfo, domainValue, gorInfos, govLevel, htmlElements, ignoreTypeChildren, linkHtmlElements, NBSP_STRING, pathInfo, processInfo, processValue, QUALIFIER_ABS_INDEX, QUALIFIER_ABS_INDEX_ID, QUALIFIER_CAPTION, QUALIFIER_CAPTION_ID, QUALIFIER_CLASS, QUALIFIER_CLASS_ID, QUALIFIER_CLASS_INDEX, QUALIFIER_CLASS_INDEX_ID, QUALIFIER_HTMLID, QUALIFIER_HTMLID_ID, QUALIFIER_HTMLTEXT, QUALIFIER_HTMLTEXT_ID, QUALIFIER_HTMLTITLE, QUALIFIER_HTMLTITLE_ID, QUALIFIER_ID, QUALIFIER_ID_ID, QUALIFIER_INDEX, QUALIFIER_INDEX_ID, QUALIFIER_JAVA_CLASS, QUALIFIER_JAVACAPTION, QUALIFIER_JAVACAPTION_ID, QUALIFIER_LEVEL, QUALIFIER_LEVEL_ID, QUALIFIER_NAME, QUALIFIER_NAME_CONTAINS, QUALIFIER_NAME_CONTAINS_ID, QUALIFIER_NAME_ID, QUALIFIER_OBJECT_INDEX, QUALIFIER_OBJECT_INDEX_ID, QUALIFIER_PATH, QUALIFIER_PATH_ID, QUALIFIER_PROPERTY, QUALIFIER_PROPERTY_CONTAINS, QUALIFIER_PROPERTY_CONTAINS_ID, QUALIFIER_PROPERTY_ID, QUALIFIER_TEXT, QUALIFIER_TEXT_ID, QUALIFIER_UNKNOWN_ID, qualifierInfo, qualifierMatches, qualifierSeparator, textOKForRecognition, topLevelContainers
Constructor and Description |
---|
AGuiObjectRecognition(java.lang.String objectInfo,
int govLevel)
Standard Constructor
|
AGuiObjectRecognition(java.lang.String objectInfo,
java.lang.String aQualifierSeparator,
int govLevel)
Constructor with Alternate Qualifier Separator
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getMatchingPathObject(java.lang.Object theObject,
java.lang.String thePath)
Used internally by GuiObjectRecognition superclass.
Mechanism to provide the requested information. |
java.lang.String |
getObjectCaption(java.lang.Object theObject)
Used internally by GuiObjectRecognition superclass.
Mechanism to provide the requested information. |
java.lang.String |
getObjectClassName(java.lang.Object theObject)
Used internally by GuiObjectRecognition superclass.
|
java.lang.String |
getObjectDomain(java.lang.Object theObject)
Used internally or by subclasses only.
|
java.lang.String |
getObjectID(java.lang.Object theObject)
Used internally by GuiObjectRecognition superclass.
Mechanism to provide the requested information. |
int |
getObjectLevel(java.lang.Object theObject)
not yet implemented
Used internally by GuiObjectRecognition superclass.
Mechanism to provide the requested information. |
java.lang.String |
getObjectName(java.lang.Object theObject)
Used internally by GuiObjectRecognition superclass.
Mechanism to provide the requested information. |
java.lang.String |
getObjectProperty(java.lang.Object theObject,
java.lang.String theProperty)
Used internally by GuiObjectRecognition superclass.
Mechanism to provide the requested information. |
java.lang.String[] |
getObjectPropertyNames(java.lang.Object theObject)
Used internally by GuiObjectRecognition superclass.
Mechanism to provide the requested information. |
java.lang.String |
getObjectText(java.lang.Object theObject)
Used internally by GuiObjectRecognition superclass.
Mechanism to provide the requested information. |
boolean |
isMatchingPath(java.lang.Object theObject,
java.lang.String thePath)
Used internally by GuiObjectRecognition superclass.
Mechanism to determine the requested information. |
boolean |
isMatchingSubClass(java.lang.Object theObject,
java.lang.String theClass,
java.lang.String parentClass)
Used internally by GuiObjectRecognition superclass.
Mechanism to simply forward this request on to the AGuiClassData.isMatched function. |
boolean |
isMatchingType(java.lang.Object theObject,
java.lang.String theClass)
Determine if the provided Object matches our segment of the
recognition string.
|
boolean |
isObjectShowing(java.lang.Object theObject)
Used internally by GuiObjectRecognition superclass.
Mechanism to provide the requested information. |
protected void |
listProperties(java.lang.Object obj)
Writes the list of object property names and current values to Log.debug output.
|
compareText, extractClassInfo, getClassCategory, getClassCategoryID, getClassRecognition, getClassValue, getDomainValue, getGovLevel, getMatchingObject, getObjectAccessibleName, getObjectClassIndex, getObjectRecognition, getObjectSuperClassNames, getProcessValue, getQualifierCategory, getQualifierCategoryID, getQualifierCount, getQualifierIDValue, getQualifierRecognition, getQualifierSeparator, getQualifierValue, hasCategoryInfo, hasDomainInfo, hasProcessInfo, initDomainInfo, isContainerClassIgnoredForRecognition, isContainerNameIgnoredForRecognition, isContainerType, isContainerTypeIgnoredForRecognition, isContainerTypeWithOnlyOneChildVisible, isDHtmlElement, isFinalMatch, isHtmlElement, isIgnoredTypeChild, isLinkHtmlElement, isMatchingCaption, isMatchingCaption, isMatchingClass, isMatchingClass, isMatchingID, isMatchingLevel, isMatchingName, isMatchingObject, isMatchingProperty, isMatchingQualifiers, isMatchingText, isTextOKForRecognition, isTopLevelContainer, makeRegexReadyWildcards, toString
static AGuiClassData classdata
public AGuiObjectRecognition(java.lang.String objectInfo, int govLevel)
public AGuiObjectRecognition(java.lang.String objectInfo, java.lang.String aQualifierSeparator, int govLevel)
public java.lang.String getObjectClassName(java.lang.Object theObject)
getObjectClassName
in class GuiObjectRecognition
theObject--Object
- proxy for the remote object to be evaluated.public boolean isMatchingType(java.lang.Object theObject, java.lang.String theClass)
isMatchingType
in class GuiObjectRecognition
theObject--Object
- proxy of the actual object to be compared against our
recognition string.theClass
- information provided and forwarded to AGuiClassData.isMappedClassType.public boolean isMatchingSubClass(java.lang.Object theObject, java.lang.String theClass, java.lang.String parentClass)
isMatchingSubClass
in class GuiObjectRecognition
theObject--Object
- proxy for the object to be evaluated.theClass
- information from GuiObjectRecognition and forwarded
to AGuiClassData.isMatched.parentClass
- information provided and forwarded to
AGuiClassData.isMatched.public boolean isObjectShowing(java.lang.Object theObject)
isObjectShowing
in class GuiObjectRecognition
theObject--Object
- proxy for the object to be evaluated.public java.lang.String getObjectCaption(java.lang.Object theObject)
getObjectCaption
in class GuiObjectRecognition
theObject--Object
- proxy for the object to be evaluated.public java.lang.String getObjectDomain(java.lang.Object theObject)
getObjectDomain
in class GuiObjectRecognition
theObject
- -- usually a tool-dependent proxy for the object to be evaluated.public java.lang.String getObjectName(java.lang.Object theObject)
getObjectName
in class GuiObjectRecognition
theObject--Object
- proxy for the object to be evaluated.public int getObjectLevel(java.lang.Object theObject)
Level is considered to be the Z-Order--often of top level window objects-- of components on the desktop or in a container. The highest Level is Level=1, and this usually indicates the item is visible and forefront. The next Level is Level=2, and so on.
The information is used to determine if a particular object is a match for our stored recognition information.
getObjectLevel
in class GuiObjectRecognition
theObject--Object
- proxy for the object to be evaluated.public java.lang.String getObjectText(java.lang.Object theObject)
getObjectText
in class GuiObjectRecognition
theObject--Object
- proxy for the object to be evaluated.public java.lang.String getObjectID(java.lang.Object theObject)
getObjectID
in class GuiObjectRecognition
theObject--Object
- proxy for the object to be evaluated.public java.lang.String[] getObjectPropertyNames(java.lang.Object theObject)
getObjectPropertyNames
in class GuiObjectRecognition
theObject--Object
- proxy for the object to be evaluated.public java.lang.String getObjectProperty(java.lang.Object theObject, java.lang.String theProperty)
getObjectProperty
in class GuiObjectRecognition
theObject--Object
- proxy for the object to be evaluated.theProperty
- name of the property value to be evaluated in the object.public java.lang.Object getMatchingPathObject(java.lang.Object theObject, java.lang.String thePath)
getMatchingPathObject
in class GuiObjectRecognition
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.public boolean isMatchingPath(java.lang.Object theObject, java.lang.String thePath)
isMatchingPath
in class GuiObjectRecognition
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.protected void listProperties(java.lang.Object obj)