public class MappedTestObject
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static FtDebug |
debug |
| Constructor and Description |
|---|
MappedTestObject() |
MappedTestObject(IMappedTestObject mto) |
MappedTestObject(SpyMappedTestObject mto,
boolean saveReferenceToSpyMto) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearId()
Clears the map-relative unique identifier.
|
void |
debugDisplay() |
int |
getChildCount(boolean allChildren)
Returns the count of children associated with this
MappedTestObject. |
IMappedTestObject[] |
getChildren()
Returns the known list of children associated with this
MappedTestObject. |
java.lang.Object |
getClassName()
Defines the required class name recognition property.
|
java.lang.String |
getDescriptiveName()
Returns the descriptive name administrative property.
|
java.lang.String |
getDomainName()
Returns the domain administrative property.
|
java.lang.String |
getId()
Assigns, to every test object added to a map, a
unique identifier relative to the associated map .
|
IObjectMapPropertySet |
getMapProperties() |
java.lang.String |
getNameInScript()
Check to see if this test object knows what its name is in the context
of a running test script.
|
IMappedTestObject[] |
getOwned()
Returns the known list of owned children associated with this
MappedTestObject. |
IMappedTestObject |
getOwner()
Returns the owner object.
|
IMappedTestObject |
getParent()
Returns the parent object.
|
java.lang.Object |
getProperty(java.lang.String property)
Returns a non-administrative property value associated with
this
MappedTestObject. |
MappedTestObjectProperty |
getPropertyData(java.lang.String property)
Returns a non-administrative property+value+weight
associated with this
MappedTestObject. |
java.util.Enumeration |
getPropertyEnumeration()
Returns an enumeration object that returns a
MappedTestObjectProperty instance for each property
associated with this MappedTestObject. |
java.lang.String[] |
getPropertyNames()
Returns the current list of recognition properties.
|
int |
getPropertyWeight(java.lang.String property)
Returns a property weight associated with
this
MappedTestObject. |
java.lang.String |
getProxyClassName()
Returns the proxy class name administrative property.
|
java.lang.String |
getRole()
Returns the role administrative property.
|
java.lang.String |
getSimpleDescription()
Returns the
getDescriptiveName() if the name is not null;
otherwise, the getRole() is returned. |
java.lang.String |
getSimpleName()
Returns the simple name administrative property.
|
java.lang.String |
getTestObjectClassName()
Returns the TestObject interface class name
administrative property.
|
IMappedTestObject |
getTopParent()
Returns the topmost parent for an object.
|
boolean |
hasProperty(java.lang.String property)
Returns
true if the specified property is available
in the associated property set. |
boolean |
isArtificialProperty(java.lang.String propertyName)
Returns
true if the property name corresponds to an
extended property, that is, a property not defined by the underlying domain. |
boolean |
isDescriptionObject() |
boolean |
isIgnoreOwner()
This method returns whether an owner found in the SUT is ignored or not.
|
boolean |
isNew()
Returns the state of the associated test object.
|
boolean |
isPersistentProperty(java.lang.String propertyName)
Returns
true if the property name corresponds to a
property that should be persisted, for example, a property in a verification-point Object recognition
property cache. |
boolean |
isUsed()
This method returns the referrence status of the associated test object.
|
void |
removeChild(IMappedTestObject child)
Deletes the specified child from this nodes list of child
objects.
|
void |
removeOwned(IMappedTestObject owned)
Deletes the specified owned child from this nodes list of owned
objects.
|
void |
removeProperty(java.lang.String property)
Removes the specified property from the associated
property set.
|
void |
setClassName(java.lang.Object className)
Defines the required class name recognition property.
|
void |
setDescriptionObject(boolean isDescriptionObject) |
void |
setDescriptiveName(java.lang.String descriptiveName)
Defines the descriptive name administrative property.
|
void |
setDomainName(java.lang.String domainName)
Defines the domain administrative property.
|
void |
setId(java.lang.String id)
Associates a map-relative unique identifier with this
MappedTestObject. |
void |
setIgnoreOwner(boolean ignoreOwner)
Set the flag to ignore any owner for this object in the SUT.
|
void |
setMapProperties(IObjectMapPropertySet propSet) |
void |
setNameInScript(java.lang.String nameInScript)
Define the test object name used to reference this test object in the
executing script.
|
void |
setNew(boolean state)
Updates the state of the associated test object.
|
void |
setOwner(IMappedTestObject owner)
Sets a reference to the owner object.
|
void |
setParent(IMappedTestObject parent)
Sets a reference to the parent object.
|
void |
setProperty(MappedTestObjectProperty property)
Adds a property to the set of properties associated
with this test object.
|
void |
setProperty(java.lang.String property,
boolean value,
int weight)
This method defines a non-administrative property.
|
void |
setProperty(java.lang.String property,
byte value,
int weight)
Defines a byte-valued non-administrative property.
|
void |
setProperty(java.lang.String property,
char value,
int weight)
Defines a character-valued non-administrative property.
|
void |
setProperty(java.lang.String property,
double value,
int weight)
Defines a double-valued non-administrative property.
|
void |
setProperty(java.lang.String property,
float value,
int weight)
Defines a float-valued non-administrative property.
|
void |
setProperty(java.lang.String property,
int value,
int weight)
Defines an integer-valued non-administrative property.
|
void |
setProperty(java.lang.String property,
long value,
int weight)
Defines a long-valued non-administrative property.
|
void |
setProperty(java.lang.String property,
java.lang.Object value,
int weight)
Defines a non-administrative property associated with
this
MappedTestObject. |
void |
setProperty(java.lang.String property,
short value,
int weight)
Defines a short-valued non-administrative property.
|
void |
setProxyClassName(java.lang.String proxy)
Defines the proxy class name name administrative property.
|
void |
setRole(java.lang.String role)
Defines the role administrative property.
|
void |
setSimpleName(java.lang.String simpleName)
Defines the simple name administrative property.
|
void |
setTestObjectClassName(java.lang.String testObjectClassName)
Defines the test object interface class name
administrative property.
|
void |
setUsed(boolean used)
This method updates the referrence status of the associated test object.
|
java.lang.String |
toString() |
void |
updateChildOrder(IMappedTestObject[] orderedChildren)
Update the order of the children associated with this mapped test object.
|
public MappedTestObject()
public MappedTestObject(IMappedTestObject mto)
public MappedTestObject(SpyMappedTestObject mto,
boolean saveReferenceToSpyMto)
public void setMapProperties(IObjectMapPropertySet propSet)
public IObjectMapPropertySet getMapProperties()
public java.lang.String getId()
public void setId(java.lang.String id)
MappedTestObject. Note
that no MappedTestObject can be an element in more than one object map; this object therefore
has only this one unique identifier.public void clearId()
public boolean isNew()
public void setNew(boolean state)
state - The updated state of this MappedTestObject.public void setDescriptionObject(boolean isDescriptionObject)
public boolean isDescriptionObject()
public java.lang.String getSimpleDescription()
getDescriptiveName() if the name is not null;
otherwise, the getRole() is returned.public java.lang.String getDescriptiveName()
public void setDescriptiveName(java.lang.String descriptiveName)
public java.lang.String getSimpleName()
public void setSimpleName(java.lang.String simpleName)
public java.lang.String getRole()
public void setRole(java.lang.String role)
public java.lang.String getNameInScript()
null is returned.public void setNameInScript(java.lang.String nameInScript)
public IMappedTestObject getParent()
public void setParent(IMappedTestObject parent)
public int getChildCount(boolean allChildren)
MappedTestObject. If allChildren is requested, a deep
count is performed, meaning that immediate children, grandchildren, and so on are counted.public IMappedTestObject[] getChildren()
MappedTestObject. The list of children is updated when the
parent relationship is established with the child.public void updateChildOrder(IMappedTestObject[] orderedChildren)
public void removeChild(IMappedTestObject child)
public IMappedTestObject getOwner()
public void setOwner(IMappedTestObject owner)
public IMappedTestObject[] getOwned()
MappedTestObject. The list of owned children is updated when the
owner relationship is established with the owned child.public void removeOwned(IMappedTestObject owned)
public void setIgnoreOwner(boolean ignoreOwner)
true
is that if the node has an owner it will be removed.ignoreOwner - public boolean isIgnoreOwner()
false if the object has a parent object.true if the top level object should ignore any owner defined
in the SUT.public java.lang.String getDomainName()
public void setDomainName(java.lang.String domainName)
public java.lang.String getProxyClassName()
public void setProxyClassName(java.lang.String proxy)
public java.lang.String getTestObjectClassName()
public void setTestObjectClassName(java.lang.String testObjectClassName)
public java.lang.Object getClassName()
Object so that the class can be converted to a
regular expression and not limited to just a String value.public void setClassName(java.lang.Object className)
public boolean hasProperty(java.lang.String property)
true if the specified property is available
in the associated property set.public MappedTestObjectProperty getPropertyData(java.lang.String property)
MappedTestObject.public java.lang.Object getProperty(java.lang.String property)
MappedTestObject.public int getPropertyWeight(java.lang.String property)
MappedTestObject. The property weight is a measure of
importance associated with non-administrative properties.
The property weight is a value that is greater than or equal to zero (not
important) and less than or equal to one hundred (most important).public void setProperty(MappedTestObjectProperty property)
public void setProperty(java.lang.String property,
java.lang.Object value,
int weight)
MappedTestObject.public void setProperty(java.lang.String property,
int value,
int weight)
public void setProperty(java.lang.String property,
long value,
int weight)
public void setProperty(java.lang.String property,
short value,
int weight)
public void setProperty(java.lang.String property,
byte value,
int weight)
public void setProperty(java.lang.String property,
float value,
int weight)
public void setProperty(java.lang.String property,
double value,
int weight)
public void setProperty(java.lang.String property,
char value,
int weight)
public void setProperty(java.lang.String property,
boolean value,
int weight)
public void removeProperty(java.lang.String property)
public IMappedTestObject getTopParent()
public java.lang.String[] getPropertyNames()
public java.util.Enumeration getPropertyEnumeration()
MappedTestObjectProperty instance for each property
associated with this MappedTestObject.public boolean isArtificialProperty(java.lang.String propertyName)
true if the property name corresponds to an
extended property, that is, a property not defined by the underlying domain.
All artifical properties use a '#' character as the first character
in the property name. Non-administrative properties should not use
this character as the first character.public boolean isPersistentProperty(java.lang.String propertyName)
true if the property name corresponds to a
property that should be persisted, for example, a property in a verification-point Object recognition
property cache. By convention, transient
properties begin with a double pound sign (##) sequence so that
they can be identified easily.public boolean isUsed()
public void setUsed(boolean used)
state - The updated reference status of this mapped test object.public java.lang.String toString()
toString in class java.lang.Objectpublic void debugDisplay()