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 classThis class can be used to construct an instance of theAiObjectDescriptionclass using the builder pattern.protected static classAiObjectDescription.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.protectedAiObjectDescription(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 theLocatorthat 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.voidsetAiClass(String aiClass) Sets the AI Class type of the AI object.voidsetLocator(Locator locator) Sets the locator to distinguish between objects matching the same description.voidSets the regular expression used to identify the AI Object.voidSets the text used to identify the AI Object.voidsetTextWithMatchOptions(TextWithMatchOptions textWithMatchOptions) Sets the text and match method used to identify the AI Object.Methods inherited from class com.hp.lft.sdk.PropertiesDescription
cloneMethods 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 theAiTypeshelper class).
-
AiObjectDescription
Constructs a new AiObjectDescription.- Parameters:
aiClass- the AI Class type of the AI object (you can use theAiTypeshelper 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 theAiTypeshelper class).regExp- theRegExpPropertyused to identify the AI object.
-
AiObjectDescription
Constructs a new AiObjectDescription.- Parameters:
aiClass- the AI Class type of the AI object (you can use theAiTypeshelper 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 theAiTypeshelper 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 theLocatorthat distinguishes between objects matching the same description.- Returns:
- the
Locatorthat distinguishes between objects matching the same description.
-
getMap
For internal use only.- Specified by:
getMapin interfacecom.hp.lft.sdk.internal.MapHolder- Returns:
- for internal use only.
-