Share this page

com.hp.lft.sdk.mobile

## Class UiObjectBaseDescription.Init<T extends UiObjectBaseDescription.Init<T>>

- java.lang.Object
- - com.hp.lft.sdk.mobile.UiObjectBaseDescription.Init<T>

- Direct Known Subclasses:
    ButtonDescription.Init, CalendarDescription.Init, CheckBoxDescription.Init, DropDownDescription.Init, EditFieldDescription.Init, LabelDescription.Init, PaginatorDescription.Init, RadioGroupDescription.Init, RecyclerViewDescription.Init, SliderDescription.Init, StepperDescription.Init, TableDescription.Init, TabStripDescription.Init, ToggleDescription.Init, UiObjectDescription.Init, ViewDescription.Init, WebViewDescription.Init
  Enclosing class:
    UiObjectBaseDescription

      protected abstract static class UiObjectBaseDescription.Init<T extends UiObjectBaseDescription.Init<T>>
      extends java.lang.Object

  Helper class for derived Builder classes.

- - ### Constructor Summary

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

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `T` | `accessibilityId(java.lang.String accessibilityId)` Initializes the accessibility ID of the mobile control.
    `T` | `accessibilityId(StringProperty accessibilityId)` Initializes the accessibility ID of the mobile control.
    `T` | `className(java.lang.String className)` Initializes the test object class name used by UFT Mobile.
    `T` | `container(java.lang.String container)` Initializes containing table item information if object is in a table (iOS only).
    `T` | `mobileCenterIndex(java.lang.Integer mobileCenterIndex)` Initializes the ordinal number assigned to the object to indicate the order in which the object appears on the device relative to other objects with an otherwise identical description.
    `T` | `resourceId(java.lang.String resourceId)` Initializes the resource ID of the control (Android only).
    `T` | `resourceId(StringProperty resourceId)` Initializes the resource ID of the control (Android only).
    `protected abstract T` | `self()`
    `T` | `vri(java.util.List<VisualRelation> visualRelations)` Initializes a VisualRelation definition.
    `T` | `vri(VisualRelation... visualRelations)` Initializes a VisualRelation definition.

    - ### 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()

    - #### accessibilityId

          public T accessibilityId(StringProperty accessibilityId)

      Initializes the accessibility ID of the mobile control.
      Parameters:
        `accessibilityId` - a StringProperty (or RegExpProperty) representing the accessibility ID of the mobile control.
      Returns:
        the description instance with the updated state (builder pattern).

    - #### accessibilityId

          public T accessibilityId(java.lang.String accessibilityId)

      Initializes the accessibility ID of the mobile control.
      Parameters:
        `accessibilityId` - the accessibility ID of the mobile control.
      Returns:
        the description instance with the updated state (builder pattern).

    - #### className

          public T className(java.lang.String className)

      Initializes the test object class name used by UFT Mobile.
      Parameters:
        `className` - the test object class name used by UFT Mobile.
      Returns:
        the description instance with the updated state (builder pattern).

    - #### container

          public T container(java.lang.String container)

      Initializes containing table item information if object is in a table (iOS only).
      Parameters:
        `container` - containing table item information if object is in a table (iOS only).
      Returns:
        the description instance with the updated state (builder pattern).

    - #### resourceId

          public T resourceId(StringProperty resourceId)

      Initializes the resource ID of the control (Android only).
      Parameters:
        `resourceId` - a StringProperty (or RegExpProperty) representing the resource ID of the control (Android only).
      Returns:
        the description instance with the updated state (builder pattern).

    - #### resourceId

          public T resourceId(java.lang.String resourceId)

      Initializes the resource ID of the control (Android only).
      Parameters:
        `resourceId` - the resource ID of the control (Android only).
      Returns:
        the description instance with the updated state (builder pattern).

    - #### mobileCenterIndex

          public T mobileCenterIndex(java.lang.Integer mobileCenterIndex)

      Initializes the ordinal number assigned to the object to indicate the order in which the object appears on the device relative to other objects with an otherwise identical description.
      Parameters:
        `mobileCenterIndex` - the ordinal number assigned to the object.
      Returns:
        the description instance with the updated state (builder pattern).

    - #### vri

          public T vri(java.util.List<VisualRelation> visualRelations)

      Initializes a VisualRelation definition.
      The VRI definition helps to distinguish this object from other objects with otherwise identical descriptions, based on this object's visual relationship to another object in the application.
      Parameters:
        `visualRelations` - the `VisualRelation` object containing the VRI definition for this object.
      Returns:
        the description instance with the updated state (builder pattern).

    - #### vri

          public T vri(VisualRelation... visualRelations)

      Initializes a VisualRelation definition.
      The VRI definition helps to distinguish this object from other objects with otherwise identical descriptions, based on this object's visual relationship to another object in the application.
      Parameters:
        `visualRelations` - the `VisualRelation` object containing the VRI definition for this object.
      Returns:
        the description instance with the updated 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: