Package com.hp.lft.sdk
Class VisualRelation
java.lang.Object
com.hp.lft.sdk.VisualRelation
- All Implemented Interfaces:
CloneableObject
,Cloneable
Class representing Visual Relations Identifier (VRI) data.
Each VisualRelation class contains a reference to a test object, and up to three possible relations:
horizontal relation, vertical relation, and proximity relation.
The VisualRelation class can be initialized using the following builder pattern:
Each VisualRelation class contains a reference to a test object, and up to three possible relations:
horizontal relation, vertical relation, and proximity relation.
The VisualRelation class can be initialized using the following builder pattern:
new VisualRelation().setTestObject(someTestObject).setHorizontalRelation(HorizontalVisualRelation.RIGHT);
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Object
clone()
Returns a clone of this instance.Returns the horizontal relation definition.Returns the proximity relation info.Returns the related test object.Returns the vertical relation definition.setHorizontalRelation
(HorizontalVisualRelation horizontalRelation) Sets the horizontal relation definition.setProximityRelation
(ProximityVisualRelation proximityRelation) Sets the proximity relation definition.setTestObject
(TestObject testObject) Sets the related test object.setVerticalRelation
(VerticalVisualRelation verticalRelation) Sets the vertical relation definition.
-
Constructor Details
-
VisualRelation
public VisualRelation()Constructs a new Relation instance.
-
-
Method Details
-
getTestObject
Returns the related test object.- Returns:
- the related test object.
-
setTestObject
Sets the related test object.- Parameters:
testObject
- the related test object.- Returns:
- the VisualRelation instance with the updated state (builder pattern).
-
getHorizontalRelation
Returns the horizontal relation definition.- Returns:
- the the horizontal relation definition.
-
setHorizontalRelation
Sets the horizontal relation definition.- Parameters:
horizontalRelation
- the horizontal relation definition.- Returns:
- the Relation instance with the updated state (builder pattern).
-
getVerticalRelation
Returns the vertical relation definition.- Returns:
- the vertical relation definition.
-
setVerticalRelation
Sets the vertical relation definition.- Parameters:
verticalRelation
- the vertical relation definition.- Returns:
- the Relation instance with the updated state (builder pattern).
-
getProximityRelation
Returns the proximity relation info.- Returns:
- the proximity relation info.
-
setProximityRelation
Sets the proximity relation definition.- Parameters:
proximityRelation
- the proximity relation definition.- Returns:
- the Relation instance with the updated state (builder pattern).
-
clone
Description copied from interface:CloneableObject
Returns a clone of this instance.- Specified by:
clone
in interfaceCloneableObject
- Overrides:
clone
in classObject
- Returns:
- a clone of this instance.
- Throws:
CloneNotSupportedException
- if the instance cannot be cloned.
-