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 Details

    • height

      public Integer height
      The horizontal component of the test object size.
    • width

      public Integer width
      The vertical component of the test object size.
  • Constructor Details

    • SizeProperty

      public SizeProperty()
      Initializes a new instance of the SizeProperty class.
    • SizeProperty

      public SizeProperty(Dimension size)
      Initializes a new instance of the SizeProperty class with the provided Dimension.
      Parameters:
      size - the Dimension to use.
    • SizeProperty

      public SizeProperty(Integer width, Integer height)
      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

      public SizeProperty(SizeProperty sizeToCopy)
      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

      public Object clone() throws CloneNotSupportedException
      Description copied from interface: CloneableObject
      Returns a clone of this instance.
      Specified by:
      clone in interface CloneableObject
      Overrides:
      clone in class Object
      Returns:
      a clone of this instance.
      Throws:
      CloneNotSupportedException - if the instance cannot be cloned.
    • getProperties

      public Map<String,Object> getProperties()
      Specified by:
      getProperties in interface com.hp.lft.sdk.internal.GroupedProperty
    • getHeight

      public Integer getHeight()
      Returns the horizontal component of the test object size.
      Returns:
      the horizontal component of the test object size.
    • setHeight

      public SizeProperty setHeight(Integer height)
      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

      public Integer getWidth()
      Returns the vertical component of the test object size.
      Returns:
      the vertical component of the test object size.
    • setWidth

      public SizeProperty setWidth(Integer width)
      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

      public String toString()
      Overrides:
      toString in class Object