|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.safs.GuiObjectVector
org.safs.rational.RGuiObjectVector
public class RGuiObjectVector
| Field Summary | |
|---|---|
protected static java.util.Vector |
bannedWinMailslots
|
static java.lang.String |
DEFAULT_ACTIVEX_DOMAIN_NAME
|
static java.lang.String |
DEFAULT_FLEX_DOMAIN_NAME
|
static java.lang.String |
DEFAULT_HTML_DOMAIN_NAME
|
static java.lang.String |
DEFAULT_JAVA_DOMAIN_NAME
|
static java.lang.String |
DEFAULT_NET_DOMAIN_NAME
|
static java.lang.String |
DEFAULT_SWT_DOMAIN_NAME
|
static java.lang.String |
DEFAULT_WIN_DOMAIN_NAME
|
| Constructor Summary | |
|---|---|
RGuiObjectVector()
Calls the minimal RGuiObjectVector constructor. |
|
RGuiObjectVector(java.lang.String window,
java.lang.String child,
java.lang.String pathString)
Calls the RGuiObjectVector constructor. |
|
RGuiObjectVector(java.lang.String window,
java.lang.String child,
java.lang.String pathString,
Script script)
Calls the GuiObjectVector constructor and then initGuiObjectRecognition(). |
|
| Method Summary | |
|---|---|
protected java.util.ArrayList |
addTopWindowsFromDomainToWindowList(DomainTestObject domain,
java.util.ArrayList windowList)
Note: This method will add the top windows of a domain and also the owned windows by these top windows. |
GuiChildIterator |
createGuiChildIterator(java.util.List gather)
Provide our RGuiChildIterator instance as required. |
GuiChildIterator |
createGuiChildIterator(java.lang.Object aparent,
GuiObjectVector govVector,
java.util.List gather)
Provide our RGuiChildIterator instance as required. |
GuiObjectRecognition |
createGuiObjectRecognition(java.lang.String subpath,
int govLevel)
Provide our RGuiObjectRecognition instance as required during initialization. |
protected DomainTestObject[] |
deduceValidDomains(DomainTestObject[] domains)
Attempts to remove WIN domains that are likely bad associations with other domains like NET and, maybe, HTML. |
protected java.lang.Object |
getCachedItem(java.lang.Object key)
Attempts to retrieve an item from cache using the provided key. |
java.util.ArrayList |
getCachedKeysByValue(java.lang.Object item)
Retrieve keys from the cache using a value item. |
java.lang.Object[] |
getChildObjects(java.lang.Object parent)
Return an array representing all known window objects. |
RGuiObjectRecognition |
getChildRecognition(int index)
Casts the GuiObjectRecognition from getChildGuiObjectRecognition to our subclass. |
TestObject |
getChildTestObject(TestObject aparent,
java.util.List gather)
get matching child TestObject for this RGuiObjectVector. |
java.lang.Object[] |
getDomainParentObjects(java.lang.String domainname)
Return an array representing all known window objects in the specified domain. |
GuiClassData |
getGuiClassData()
Return our RGuiClassData subclass as required. |
java.lang.Object |
getMatchingParentObject()
Tries to see if we have an RFT Mapped Object before doing the standard search. |
java.lang.Object[] |
getParentObjects()
Return an array representing all known window objects. |
protected java.util.ArrayList |
getParentsByDomainName(java.util.ArrayList parents,
java.lang.String domainname)
Retrieve ALL parent objects from ALL domains matching the given domainname. |
Script |
getScript()
Return the constructor-stored Script object. |
TestObject |
getTopTestObject()
Find the one parent object that matches the recognition string set by setPathVector(String). |
TestObject |
getTopTestObject(DomainTestObject domain)
Call this routine instead of getMatchingParentObject() directly. |
static boolean |
isActiveXDomain(TestObject tobj)
|
static boolean |
isBannedWinDomain(DomainTestObject domain)
return true if bannedWinMailslots contains this domains mailslot id. |
static boolean |
isDotnetDomain(TestObject tobj)
|
static boolean |
isFlexDomain(TestObject tobj)
|
static boolean |
isHtmlDomain(TestObject tobj)
|
static boolean |
isJavaDomain(TestObject tobj)
|
protected boolean |
isOwnerSameTestContext(TestObject owner,
TestObject owned)
|
static boolean |
isSwtDomain(TestObject tobj)
|
boolean |
isValidGuiContainer(java.lang.Object object)
Return true if the object is a gui container. |
boolean |
isValidGuiObject(java.lang.Object object)
Return true if the object is a GuiTestObject. |
static boolean |
isWinDomain(TestObject tobj)
|
void |
setActiveWindow(java.lang.Object _comp)
Make the Window referenced by _comp the active window. |
void |
setScript(Script script)
Required when alternate constructors are used. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_JAVA_DOMAIN_NAME
public static final java.lang.String DEFAULT_HTML_DOMAIN_NAME
public static final java.lang.String DEFAULT_WIN_DOMAIN_NAME
public static final java.lang.String DEFAULT_NET_DOMAIN_NAME
public static final java.lang.String DEFAULT_SWT_DOMAIN_NAME
public static final java.lang.String DEFAULT_FLEX_DOMAIN_NAME
public static final java.lang.String DEFAULT_ACTIVEX_DOMAIN_NAME
protected static java.util.Vector bannedWinMailslots
deduceValidDomains| Constructor Detail |
|---|
public RGuiObjectVector()
GuiObjectVector.setWindowName(String),
GuiObjectVector.setChildName(String),
GuiObjectVector.setPathVector(String),
script,
GuiObjectVector.initGuiObjectRecognition()
public RGuiObjectVector(java.lang.String window,
java.lang.String child,
java.lang.String pathString)
window - child - pathString - script,
GuiObjectVector.initGuiObjectRecognition(),
GuiObjectVector.GuiObjectVector(String, String, String),
GuiObjectVector.initGuiObjectRecognition()
public RGuiObjectVector(java.lang.String window,
java.lang.String child,
java.lang.String pathString,
Script script)
window - child - pathString - script - GuiObjectVector.GuiObjectVector(String, String, String),
GuiObjectVector.initGuiObjectRecognition()| Method Detail |
|---|
public void setScript(Script script)
script -
public GuiChildIterator createGuiChildIterator(java.lang.Object aparent,
GuiObjectVector govVector,
java.util.List gather)
createGuiChildIterator in class GuiObjectVectoraparent - is NOT a cached key, but should be the actual
engine-specific object that should have already been retrieved from
internal cache if MODE_EXTERNAL_PROCESSING.GuiObjectVector.createGuiChildIterator(Object, GuiObjectVector, List)public GuiChildIterator createGuiChildIterator(java.util.List gather)
createGuiChildIterator in class GuiObjectVectorGuiObjectVector.createGuiChildIterator(List)
public GuiObjectRecognition createGuiObjectRecognition(java.lang.String subpath,
int govLevel)
createGuiObjectRecognition in class GuiObjectVectorGuiObjectVector#createGuiObjectRecognition(String)public GuiClassData getGuiClassData()
getGuiClassData in class GuiObjectVectorpublic Script getScript()
public RGuiObjectRecognition getChildRecognition(int index)
GuiObjectVector.getChildGuiObjectRecognition(int)public static boolean isBannedWinDomain(DomainTestObject domain)
protected DomainTestObject[] deduceValidDomains(DomainTestObject[] domains)
domains[] -
protected java.util.ArrayList getParentsByDomainName(java.util.ArrayList parents,
java.lang.String domainname)
domainname - String name of the domain type (like "Java") to
retrieve.
public java.lang.Object getMatchingParentObject()
getMatchingParentObject in class GuiObjectVectorpublic java.lang.Object[] getParentObjects()
getParentObjects in class GuiObjectVectorGuiObjectVector.getParentObjects(),
GuiObjectVector.getProcessMode(),
GuiObjectVector.convertToKeys(Object[])public java.lang.Object[] getDomainParentObjects(java.lang.String domainname)
getDomainParentObjects in class GuiObjectVectordomainname - should be one of the supported org.safs.Domains constants like
"Java", "Html", "Win", etc..GuiObjectVector.getDomainParentObjects(String),
GuiObjectVector.getProcessMode(),
GuiObjectVector.convertToKeys(Object[])
protected boolean isOwnerSameTestContext(TestObject owner,
TestObject owned)
protected java.util.ArrayList addTopWindowsFromDomainToWindowList(DomainTestObject domain,
java.util.ArrayList windowList)
domain - An ojbect of class DomainTestObject which represents Java, Html, Net,Win ect.windowList - A List contains those found windowspublic java.lang.Object[] getChildObjects(java.lang.Object parent)
getChildObjects in class GuiObjectVectorparent - - will convert from key if MODE_EXTERNAL_PROCESSING
GuiObjectVector.convertToKeys(Object[]),
GuiObjectVector.makeUniqueCacheKey(Object),
GuiObjectVector.putCachedItem(Object, Object),
GuiObjectVector.getCachedItem(Object)public boolean isValidGuiObject(java.lang.Object object)
isValidGuiObject in class GuiObjectVectorobject - - will convert from key if MODE_EXTERNAL_PROCESSING.GuiObjectVector.isValidGuiObject(Object)public boolean isValidGuiContainer(java.lang.Object object)
isValidGuiContainer in class GuiObjectVectorobject - - will convert from key if MODE_EXTERNAL_PROCESSING.GuiObjectVector.isValidGuiContainer(Object)public TestObject getTopTestObject(DomainTestObject domain)
It also casts the returned object to GuiTestObject--a subclass of TestObject.
GuiObjectVector.getMatchingParentObject(),
GuiTestObjectpublic TestObject getTopTestObject()
getTopTestObject(DomainTestObject)
public TestObject getChildTestObject(TestObject aparent,
java.util.List gather)
aparent, - TestObjectgather, - java.util.List
GuiObjectVector.getMatchingChildObject(Object, List),
GuiObjectVector.getCachedItem(Object)public void setActiveWindow(java.lang.Object _comp)
GuiObjectVector
setActiveWindow in class GuiObjectVector_comp - is expected to be of type Interface ITopWindowGuiObjectVector.setActiveWindow(java.lang.Object)public static boolean isJavaDomain(TestObject tobj)
public static boolean isDotnetDomain(TestObject tobj)
public static boolean isHtmlDomain(TestObject tobj)
public static boolean isActiveXDomain(TestObject tobj)
public static boolean isWinDomain(TestObject tobj)
public static boolean isSwtDomain(TestObject tobj)
public static boolean isFlexDomain(TestObject tobj)
protected java.lang.Object getCachedItem(java.lang.Object key)
GuiObjectVector
getCachedItem in class GuiObjectVectorkey - Object to use as lookup reference into cache
GuiObjectVector.makeUniqueCacheKey(Object),
GuiObjectVector.putCachedItem(Object, Object),
GuiObjectVector.removeCachedItem(Object)public java.util.ArrayList getCachedKeysByValue(java.lang.Object item)
item, - a cached TestObject for being looked up in cache.
GuiObjectVector.makeUniqueCacheKey(Object),
GuiObjectVector.putCachedItem(Object, Object),
GuiObjectVector.removeCachedItem(Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||