Class TextWithMatchOptions

java.lang.Object
com.hp.lft.sdk.ai.TextWithMatchOptions

public class TextWithMatchOptions extends Object
Structure that contains the text together with the match method for describing an AiObject.
  • Constructor Details

    • TextWithMatchOptions

      public TextWithMatchOptions(String text, MatchMethod matchMethod)
      Constructs a new TextWithMatchOptions object that can be used to uniquely identify an AiObject by its text and specifies the match method to be used for identification.
      Parameters:
      text - the text to use to identify the AI Object.
      matchMethod - the text match method to use when identifying the AI object by its text.
    • TextWithMatchOptions

      public TextWithMatchOptions(RegExpProperty regExp, MatchMethod matchMethod)
      Constructs a new TextWithMatchOptions object that can be used to uniquely identify an AiObject by its regex property and specifies the match method to be used for identification.
      Parameters:
      regExp - the regular expression to match to the AI object's text.
      matchMethod - the match method to use.
  • Method Details

    • getRegExp

      public RegExpProperty getRegExp()
      Returns the regular expression used to identify the AI object.
      Returns:
      the regular expression used to identify the AI object.
    • setRegExp

      public void setRegExp(RegExpProperty regExp)
      Sets the regular expression to use to identify the AI object.
      Parameters:
      regExp - the regular expression to use to identify the AI object.
    • getText

      public StringProperty getText()
      Returns the text used to identify the AI Object.
      Returns:
      the text used to identify the AI Object.
    • setText

      public void setText(String text)
      Sets the text used to identify the AI Object.
      Parameters:
      text - the text used to identify the AI Object.
    • getMatchMethod

      public MatchMethod getMatchMethod()
      Returns the match method to use when identifying the AI object by its text.
      Returns:
      the match method to use when identifying the AI object by its text.
    • setMatchMethod

      public void setMatchMethod(MatchMethod matchMethod)
      Sets the match method to use when identifying the AI object by its text.
      Parameters:
      matchMethod - the match method to use.