Package com.hp.lft.sdk
Class SizeProperty
java.lang.Object
com.hp.lft.sdk.SizeProperty
- All Implemented Interfaces:
CloneableObject
,com.hp.lft.sdk.internal.GroupedProperty
,Cloneable
public class SizeProperty
extends Object
implements com.hp.lft.sdk.internal.GroupedProperty, CloneableObject
The size properties of a test object.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the SizeProperty class.SizeProperty
(SizeProperty sizeToCopy) Initializes a new instance of the SizeProperty class by copying the values of the provided SizeProperty.SizeProperty
(Dimension size) Initializes a new instance of the SizeProperty class with the provided Dimension.SizeProperty
(Integer width, Integer height) Initializes a new instance of the SizeProperty class with the specified width and height values. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns a clone of this instance.Returns the horizontal component of the test object size.getWidth()
Returns the vertical component of the test object size.Sets the horizontal component of the test object size.Returns the vertical component of the test object size.toString()
-
Field Details
-
height
The horizontal component of the test object size. -
width
The vertical component of the test object size.
-
-
Constructor Details
-
SizeProperty
public SizeProperty()Initializes a new instance of the SizeProperty class. -
SizeProperty
Initializes a new instance of the SizeProperty class with the provided Dimension.- Parameters:
size
- theDimension
to use.
-
SizeProperty
Initializes a new instance of the SizeProperty class with the specified width and height values.- Parameters:
width
- the width to initialize the SizeProperty with.height
- the height to initialize the SizeProperty with.
-
SizeProperty
Initializes a new instance of the SizeProperty class by copying the values of the provided SizeProperty.- Parameters:
sizeToCopy
- a SizeProperty whose values will be copied to the new instance.
-
-
Method Details
-
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.
-
getProperties
- Specified by:
getProperties
in interfacecom.hp.lft.sdk.internal.GroupedProperty
-
getHeight
Returns the horizontal component of the test object size.- Returns:
- the horizontal component of the test object size.
-
setHeight
Sets the horizontal component of the test object size.- Parameters:
height
- the horizontal component of the test object size.- Returns:
- the SizeProperty instance with the updated state (builder pattern).
-
getWidth
Returns the vertical component of the test object size.- Returns:
- the vertical component of the test object size.
-
setWidth
Returns the vertical component of the test object size.- Parameters:
width
- the vertical component of the test object size.- Returns:
- the SizeProperty instance with the updated state (builder pattern).
-
toString
-