Package com.hp.lft.sdk
Class DescriptionBase
java.lang.Object
com.hp.lft.sdk.internal.PropertiesDescriptionBase
com.hp.lft.sdk.PropertiesDescription
com.hp.lft.sdk.DescriptionBase
- All Implemented Interfaces:
CloneableObject,Description,com.hp.lft.sdk.internal.DescriptionWithVri,Cloneable
- Direct Known Subclasses:
ElementDescription,FieldDescription,GuiSessionDescription,InsightDescription,PageDescription,ScreenDescription,TextScreenDescription,UiObjectBaseDescription,UiObjectBaseDescription,UiObjectBaseDescription,UiObjectBaseDescription,UiObjectBaseDescription,UiObjectDescriptionBase,UiObjectDescriptionBase,WebBaseDescription,WindowDescription
public class DescriptionBase
extends PropertiesDescription
implements com.hp.lft.sdk.internal.DescriptionWithVri
The base class for all Description classes that support the index and Visual Relation Identifier (VRI) test object properties.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis class can be used to construct an instance of the DescriptionBase class using the builder pattern.protected static classDescriptionBase.Init<T extends DescriptionBase.Init<T>>Helper class for DescriptionBase.Builder. -
Field Summary
Fields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
properties -
Constructor Summary
ConstructorsModifierConstructorDescriptionInitializes a new instance of the DescriptionBase class with an empty description.protectedDescriptionBase(DescriptionBase.Init<?> init) Initializes a new instance of the DescriptionBase class using the Builder pattern. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCreates an exact copy of the test object with its description.getIndex()Returns the 0-based index of this object, relative to all other objects with an otherwise identical description.Returns the index type of the description.Returns the concrete test object properties, including custom properties created by the developer of the control.getVRI()Returns the VisualRelation definition.voidSets the index of this object.protected voidsetIndexType(String indexType) Sets the index type of the description.voidsetObjectProperties(Map<String, Object> objectProperties) Sets the test object properties, including custom properties of a custom control.voidsetVRI(VisualRelation... vriRelations) Sets a VisualRelation definition.voidsetVRI(List<VisualRelation> visualRelations) Sets a VisualRelation definition.Methods inherited from class com.hp.lft.sdk.PropertiesDescription
cloneMethods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
getValueAs, getValueAsStringProperty, insertValueMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hp.lft.sdk.CloneableObject
clone
-
Constructor Details
-
DescriptionBase
Initializes a new instance of the DescriptionBase class using the Builder pattern.- Parameters:
init- the Builder pattern.
-
DescriptionBase
public DescriptionBase()Initializes a new instance of the DescriptionBase class with an empty description.
-
-
Method Details
-
setIndex
Sets the index of this object.
The index helps to distinguish the object, based on its order of appearance in the application screen relative to all other objects with an otherwise identical description.- Parameters:
index- the index of the object.
-
getIndex
Returns the 0-based index of this object, relative to all other objects with an otherwise identical description.- Returns:
- the index of the object.
-
setIndexType
Sets the index type of the description.
The type of the index for the description- Parameters:
indexType- the index type of the description.
-
getIndexType
Returns the index type of the description.- Returns:
- the index type.
-
getVRI
Returns the VisualRelation definition.
The VRI definition helps to distinguish this object from other objects with otherwise identical descriptions, based on this object's visual relationship to another object in the application.- Specified by:
getVRIin interfacecom.hp.lft.sdk.internal.DescriptionWithVri- Returns:
- a
VisualRelationobject containing the VRI definition for this object.
-
setVRI
Sets a VisualRelation definition.
The VRI definition helps to distinguish this object from other objects with otherwise identical descriptions, based on this object's visual relationship to another object in the application.- Specified by:
setVRIin interfacecom.hp.lft.sdk.internal.DescriptionWithVri- Parameters:
visualRelations- theVisualRelationobject containing the VRI definition for this object.
-
setVRI
Sets a VisualRelation definition.
The VRI definition helps to distinguish this object from other objects with otherwise identical descriptions, based on this object's visual relationship to another object in the application.- Specified by:
setVRIin interfacecom.hp.lft.sdk.internal.DescriptionWithVri- Parameters:
vriRelations- theVisualRelationobject containing the VRI definition for this object.
-
setObjectProperties
Sets the test object properties, including custom properties of a custom control.- Parameters:
objectProperties- the test object properties
-
getObjectProperties
Returns the concrete test object properties, including custom properties created by the developer of the control.- Returns:
- the concrete test object properties, including custom properties created by the developer of the control.
-
cloneTo
Creates an exact copy of the test object with its description.- Overrides:
cloneToin classcom.hp.lft.sdk.internal.PropertiesDescriptionBase- Throws:
CloneNotSupportedException
-