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 SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionInitializes 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 SummaryModifier 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- 
heightThe horizontal component of the test object size.
- 
widthThe vertical component of the test object size.
 
- 
- 
Constructor Details- 
SizePropertypublic SizeProperty()Initializes a new instance of the SizeProperty class.
- 
SizePropertyInitializes a new instance of the SizeProperty class with the provided Dimension.- Parameters:
- size- the- Dimensionto use.
 
- 
SizePropertyInitializes 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.
 
- 
SizePropertyInitializes 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- 
cloneDescription copied from interface:CloneableObjectReturns a clone of this instance.- Specified by:
- clonein interface- CloneableObject
- Overrides:
- clonein class- Object
- Returns:
- a clone of this instance.
- Throws:
- CloneNotSupportedException- if the instance cannot be cloned.
 
- 
getProperties- Specified by:
- getPropertiesin interface- com.hp.lft.sdk.internal.GroupedProperty
 
- 
getHeightReturns the horizontal component of the test object size.- Returns:
- the horizontal component of the test object size.
 
- 
setHeightSets 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).
 
- 
getWidthReturns the vertical component of the test object size.- Returns:
- the vertical component of the test object size.
 
- 
setWidthReturns 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
 
-