Package com.hp.lft.sdk.ai
Class TextWithMatchOptions
java.lang.Object
com.hp.lft.sdk.ai.TextWithMatchOptions
Structure that contains the text together with the match method for describing an
AiObject
.-
Constructor Summary
ConstructorsConstructorDescriptionTextWithMatchOptions
(RegExpProperty regExp, MatchMethod matchMethod) Constructs a newTextWithMatchOptions
object that can be used to uniquely identify anAiObject
by its regex property and specifies the match method to be used for identification.TextWithMatchOptions
(String text, MatchMethod matchMethod) Constructs a newTextWithMatchOptions
object that can be used to uniquely identify anAiObject
by its text and specifies the match method to be used for identification. -
Method Summary
Modifier and TypeMethodDescriptionReturns the match method to use when identifying the AI object by its text.Returns the regular expression used to identify the AI object.getText()
Returns the text used to identify the AI Object.void
setMatchMethod
(MatchMethod matchMethod) Sets the match method to use when identifying the AI object by its text.void
setRegExp
(RegExpProperty regExp) Sets the regular expression to use to identify the AI object.void
Sets the text used to identify the AI Object.
-
Constructor Details
-
TextWithMatchOptions
Constructs a newTextWithMatchOptions
object that can be used to uniquely identify anAiObject
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
Constructs a newTextWithMatchOptions
object that can be used to uniquely identify anAiObject
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
Returns the regular expression used to identify the AI object.- Returns:
- the regular expression used to identify the AI object.
-
setRegExp
Sets the regular expression to use to identify the AI object.- Parameters:
regExp
- the regular expression to use to identify the AI object.
-
getText
Returns the text used to identify the AI Object.- Returns:
- the text used to identify the AI Object.
-
setText
Sets the text used to identify the AI Object.- Parameters:
text
- the text used to identify the AI Object.
-
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
Sets the match method to use when identifying the AI object by its text.- Parameters:
matchMethod
- the match method to use.
-