Share this page

com.hp.lft.sdk.mobile

## 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 java.lang.Object

  Helper class for DeviceDescription.Builder.

- - ### Constructor Summary

    Modifier | Constructor and Description
    --- | ---
    `protected` | `Init()`

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `DeviceDescription` | `build()`
    `T` | `id(java.lang.String id)` Initializes the device ID used in UFT Mobile.
    `T` | `manufacturer(java.lang.String manufacturer)` Initializes the name of the manufacturer of the device used in UFT Mobile.
    `T` | `model(java.lang.String model)` Initializes the model of the device used in UFT Mobile.
    `T` | `name(java.lang.String name)` Initializes the logical name of the device used in UFT Mobile.
    `T` | `osType(java.lang.String osType)` Initializes the operating system currently running on the device.
    `T` | `osVersion(java.lang.String osVersion)` Initializes the version of the operating system currently running on the device.
    `protected abstract T` | `self()`
    `T` | `set(java.lang.String capability, java.lang.Object value)` Initializes a `DeviceDescription` capability to the given value.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Init

          protected Init()

  - ### Method Detail

    - #### self

          protected abstract T self()

    - #### build

          public DeviceDescription build()

    - #### id

          public T id(java.lang.String id)

      Initializes the device ID used in UFT Mobile.
      Parameters:
        `id` - the device ID used in UFT Mobile.
      Returns:
        the description instance with the update state (builder pattern).

    - #### name

          public T name(java.lang.String name)

      Initializes the logical name of the device used in UFT Mobile.
      Parameters:
        `name` - the logical name of the device used in UFT Mobile.
      Returns:
        the description instance with the update state (builder pattern).

    - #### osType

          public T osType(java.lang.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(java.lang.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(java.lang.String manufacturer)

      Initializes the name of the manufacturer of the device used in UFT Mobile.
      Parameters:
        `manufacturer` - the name of the manufacturer of the device used in UFT Mobile.
      Returns:
        the description instance with the update state (builder pattern).

    - #### model

          public T model(java.lang.String model)

      Initializes the model of the device used in UFT Mobile.
      Parameters:
        `model` - the model of the device used in UFT Mobile.
      Returns:
        the description instance with the update state (builder pattern).

    - #### set

          public T set(java.lang.String capability,
                       java.lang.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).

Tips to improve your search results... UFT Developer Java SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: