com.hp.lft.sdk.mobile

Class DeviceDescription.Init<T extends 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 Mobile Center.
      T manufacturer(java.lang.String manufacturer)
      Initializes the name of the manufacturer of the device used in Mobile Center.
      T model(java.lang.String model)
      Initializes the model of the device used in Mobile Center.
      T name(java.lang.String name)
      Initializes the logical name of the device used in Mobile Center.
      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()
      • id

        public T id(java.lang.String id)
        Initializes the device ID used in Mobile Center.
        Parameters:
        id - the device ID used in Mobile Center.
        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 Mobile Center.
        Parameters:
        name - the logical name of the device used in Mobile Center.
        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 Mobile Center.
        Parameters:
        manufacturer - the name of the manufacturer of the device used in Mobile Center.
        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 Mobile Center.
        Parameters:
        model - the model of the device used in Mobile Center.
        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).