Package com.axway.ats.uiengine.elements
Class UiElementProperties
- java.lang.Object
-
- com.axway.ats.uiengine.elements.UiElementProperties
-
public class UiElementProperties extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringMAP_ID_INTERNAL_PARAM
-
Constructor Summary
Constructors Constructor Description UiElementProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInternalProperty(String name, String value)UiElementPropertiesaddProperty(String name, String value)String[]checkTypeAndRules(String userType, String userTypePrefix, String... rules)Check types and rules for matching/finding an UI elementbooleancontainsInternalProperty(String name)StringgetInternalProperty(String name)PropertiesgetPropertiesCopy()Set<Object>getPropertiesKeys()For internal useintgetPropertiesSize()Number of element's non-internal propertiesStringgetProperty(String name)StringtoString()
-
-
-
Field Detail
-
MAP_ID_INTERNAL_PARAM
public static final String MAP_ID_INTERNAL_PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
containsInternalProperty
public boolean containsInternalProperty(String name)
-
addProperty
public UiElementProperties addProperty(String name, String value)
-
getPropertiesSize
public int getPropertiesSize()
Number of element's non-internal properties- Returns:
- the number of element's properties
-
getPropertiesKeys
public Set<Object> getPropertiesKeys()
For internal use- Returns:
- get all property keys
-
getPropertiesCopy
public Properties getPropertiesCopy()
-
checkTypeAndRules
public String[] checkTypeAndRules(String userType, String userTypePrefix, String... rules) throws BadUiElementPropertyException, ErrorMatchingElementRules
Check types and rules for matching/finding an UI element- Parameters:
userType- the class name, e.g. "HtmlTextBox"userTypePrefix- the element family prefix, e.g. "Html"rules- the element identification rules- Returns:
- the parsed matching rule as String array of attributes which should be found
- Throws:
BadUiElementPropertyExceptionErrorMatchingElementRules
-
-