Package com.hp.lft.sdk.ai
Class AiObjectDescription
java.lang.Object
com.hp.lft.sdk.internal.PropertiesDescriptionBase
com.hp.lft.sdk.PropertiesDescription
com.hp.lft.sdk.ai.AiObjectDescription
- All Implemented Interfaces:
CloneableObject
,Description
,com.hp.lft.sdk.internal.MapHolder
,Cloneable
public class AiObjectDescription
extends PropertiesDescription
implements com.hp.lft.sdk.internal.MapHolder
The description of a AiObject test object.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
This class can be used to construct an instance of theAiObjectDescription
class using the builder pattern.protected static class
AiObjectDescription.Init<T extends AiObjectDescription.Init<T>>
-
Field Summary
Fields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
properties
-
Constructor Summary
ConstructorsModifierConstructorDescriptionConstructs a new AiObjectDescription.protected
AiObjectDescription
(String aiClass) Constructs a new AiObjectDescription.AiObjectDescription
(String aiClass, TextWithMatchOptions textWithMatchOptions) Constructs a new AiObjectDescription.AiObjectDescription
(String aiClass, RegExpProperty regExp) Constructs a new AiObjectDescription.AiObjectDescription
(String aiClass, String text) Constructs a new AiObjectDescription. -
Method Summary
Modifier and TypeMethodDescriptionReturns the AI Class type of the AI object.Returns theLocator
that distinguishes between objects matching the same description.getMap()
For internal use only.Returns the regular expression used to identify the AI Object.getText()
Returns the text used to identify the AI Object.Returns the text and match method used to identify the AI Object.void
setAiClass
(String aiClass) Sets the AI Class type of the AI object.void
setLocator
(Locator locator) Sets the locator to distinguish between objects matching the same description.void
Sets the regular expression used to identify the AI Object.void
Sets the text used to identify the AI Object.void
setTextWithMatchOptions
(TextWithMatchOptions textWithMatchOptions) Sets the text and match method used to identify the AI Object.Methods inherited from class com.hp.lft.sdk.PropertiesDescription
clone
Methods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
cloneTo, getValueAs, getValueAsStringProperty, insertValue
-
Constructor Details
-
AiObjectDescription
public AiObjectDescription()Constructs a new AiObjectDescription. -
AiObjectDescription
Constructs a new AiObjectDescription.- Parameters:
aiClass
- the AI Class type of the AI object (you can use theAiTypes
helper class).
-
AiObjectDescription
Constructs a new AiObjectDescription.- Parameters:
aiClass
- the AI Class type of the AI object (you can use theAiTypes
helper class).text
- the text used to identify the AI Object.
-
AiObjectDescription
Constructs a new AiObjectDescription.- Parameters:
aiClass
- the AI Class type of the AI object (you can use theAiTypes
helper class).regExp
- theRegExpProperty
used to identify the AI object.
-
AiObjectDescription
Constructs a new AiObjectDescription.- Parameters:
aiClass
- the AI Class type of the AI object (you can use theAiTypes
helper class).textWithMatchOptions
- the text and match method used to identify the AI Object.
-
AiObjectDescription
-
-
Method Details
-
setAiClass
Sets the AI Class type of the AI object.- Parameters:
aiClass
- the AI Class type of the AI object (you can use theAiTypes
helper class).
-
getAiClass
Returns the AI Class type of the AI object.- Returns:
- the AI Class type of the AI object.
-
setText
Sets the text used to identify the AI Object.- Parameters:
text
- the text used to identify the AI Object.
-
setRegExp
Sets the regular expression used to identify the AI Object.- Parameters:
pattern
- the regular expression used to identify the AI Object.
-
getRegExp
Returns the regular expression used to identify the AI Object.- Returns:
- the regular expression used to identify the AI Object.
-
getText
Returns the text used to identify the AI Object.- Returns:
- the text used to identify the AI Object.
-
setTextWithMatchOptions
Sets the text and match method used to identify the AI Object.- Parameters:
textWithMatchOptions
- the text and match method used to identify the AI Object .
-
getTextWithMatchOptions
Returns the text and match method used to identify the AI Object.- Returns:
- the text and match method used to identify the AI Object.
-
setLocator
Sets the locator to distinguish between objects matching the same description.- Parameters:
locator
- the locator to use to uniquely identify the object.
-
getLocator
Returns theLocator
that distinguishes between objects matching the same description.- Returns:
- the
Locator
that distinguishes between objects matching the same description.
-
getMap
For internal use only.- Specified by:
getMap
in interfacecom.hp.lft.sdk.internal.MapHolder
- Returns:
- for internal use only.
-