Class AiObjectDescription.Init<T extends AiObjectDescription.Init<T>>

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

protected abstract static class AiObjectDescription.Init<T extends AiObjectDescription.Init<T>> extends Object
  • Constructor Details

    • Init

      protected Init()
  • Method Details

    • self

      protected abstract T self()
    • build

      public AiObjectDescription build()
    • aiClass

      public T aiClass(String aiClass)
      Initializes the object's aiClass property.
      Parameters:
      aiClass - the AI Class type of the AI object (you can use the AiTypes helper class).
      Returns:
      the description instance with the updated state (builder pattern).
    • text

      public T text(String text)
      Initializes the object's text property.
      Parameters:
      text - the text used to identify the AI Object.
      Returns:
      the description instance with the updated state (builder pattern).
    • regExp

      public T regExp(String pattern)
      Initializes the object's regex pattern property.
      Parameters:
      pattern - the regular expression used to identify the AI Object.
      Returns:
      the description instance with the updated state (builder pattern).
    • textWithMatchOptions

      public T textWithMatchOptions(TextWithMatchOptions textWithMatchOptions)
      Initializes the object's text with options property.
      Parameters:
      textWithMatchOptions - the text and match method used to identify the AI Object.
      Returns:
      the description instance with the updated state (builder pattern).
    • locator

      public T locator(Locator locator)
      Initializes the object's locator property.
      Parameters:
      locator - used to describe the unique location of an object that may appear multiple times in the application.
      Returns:
      the description instance with the updated state (builder pattern).