Class DeviceDescription.Init<T extends DeviceDescription.Init<T>>

java.lang.Object
com.hp.lft.sdk.mobile.DeviceDescription.Init<T>
Direct Known Subclasses:
DeviceDescription.Builder
Enclosing class:
DeviceDescription

protected abstract static class DeviceDescription.Init<T extends DeviceDescription.Init<T>> extends Object
Helper class for DeviceDescription.Builder.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    fleetType(String fleetType)
    Initializes the fleetType of the device used in OpenText Functional Testing Lab.
    id(String id)
    Initializes the device ID used in OpenText Functional Testing Lab.
    location(String location)
    Initializes the location of the device used in OpenText Functional Testing Lab.
    manufacturer(String manufacturer)
    Initializes the name of the manufacturer of the device used in OpenText Functional Testing Lab.
    model(String model)
    Initializes the model of the device used in OpenText Functional Testing Lab.
    name(String name)
    Initializes the logical name of the device used in OpenText Functional Testing Lab.
    osType(String osType)
    Initializes the operating system currently running on the device.
    osVersion(String osVersion)
    Initializes the version of the operating system currently running on the device.
    protected abstract T
     
    set(String capability, Object value)
    Initializes a DeviceDescription capability to the given value.
    source(String source)
    Initializes the source of the device used in OpenText Functional Testing Lab.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Init

      protected Init()
  • Method Details

    • self

      protected abstract T self()
    • build

      public DeviceDescription build()
    • id

      public T id(String id)
      Initializes the device ID used in OpenText Functional Testing Lab.
      Parameters:
      id - the device ID used in OpenText Functional Testing Lab.
      Returns:
      the description instance with the update state (builder pattern).
    • name

      public T name(String name)
      Initializes the logical name of the device used in OpenText Functional Testing Lab.
      Parameters:
      name - the logical name of the device used in OpenText Functional Testing Lab.
      Returns:
      the description instance with the update state (builder pattern).
    • osType

      public T osType(String osType)
      Initializes the operating system currently running on the device.
      Parameters:
      osType - the operating system currently running on the device.
      Returns:
      the description instance with the update state (builder pattern).
    • osVersion

      public T osVersion(String osVersion)
      Initializes the version of the operating system currently running on the device.

      The following symbols are supported:

      >, >=, <, <=

      For example:

      osVersion(">4.0")

      osVersion(">=4.1")

      Parameters:
      osVersion - the version of the operating system currently running on the device.
      Returns:
      the description instance with the update state (builder pattern).
    • manufacturer

      public T manufacturer(String manufacturer)
      Initializes the name of the manufacturer of the device used in OpenText Functional Testing Lab.
      Parameters:
      manufacturer - the name of the manufacturer of the device used in OpenText Functional Testing Lab.
      Returns:
      the description instance with the update state (builder pattern).
    • model

      public T model(String model)
      Initializes the model of the device used in OpenText Functional Testing Lab.
      Parameters:
      model - the model of the device used in OpenText Functional Testing Lab.
      Returns:
      the description instance with the update state (builder pattern).
    • fleetType

      public T fleetType(String fleetType)
      Initializes the fleetType of the device used in OpenText Functional Testing Lab.
      Parameters:
      fleetType - the fleetType of the device used in OpenText Functional Testing Lab.
      Returns:
      the description instance with the update state (builder pattern).
    • location

      public T location(String location)
      Initializes the location of the device used in OpenText Functional Testing Lab.
      Parameters:
      location - the location of the device used in OpenText Functional Testing Lab.
      Returns:
      the description instance with the update state (builder pattern).
    • source

      public T source(String source)
      Initializes the source of the device used in OpenText Functional Testing Lab.
      Parameters:
      source - the source of the device used in OpenText Functional Testing Lab.
      Returns:
      the description instance with the update state (builder pattern).
    • set

      public T set(String capability, Object value)
      Initializes a DeviceDescription capability to the given value.
      Parameters:
      capability - the name of the capability to set value for.
      value - the new value of the capability.
      Returns:
      the description instance with the update state (builder pattern).