Package org.mozilla.zest.core.v1
Class ZestExpressionClientElementExists
- java.lang.Object
-
- org.mozilla.zest.core.v1.ZestElement
-
- org.mozilla.zest.core.v1.ZestExpression
-
- org.mozilla.zest.core.v1.ZestExpressionClientElementExists
-
- All Implemented Interfaces:
ZestExpressionElement
public class ZestExpressionClientElementExists extends ZestExpression
The Class ZestExpressionStatusCode.
-
-
Field Summary
-
Fields inherited from class org.mozilla.zest.core.v1.ZestElement
JSON_ELEMENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description ZestExpressionClientElementExists()Instantiates a newZestExpressionClientElementExists.ZestExpressionClientElementExists(String windowHandle, String type, String element)Instantiates a newZestExpressionClientElementExists.ZestExpressionClientElementExists(String windowHandle, String type, String element, boolean inverse)Constructs aZestExpressionClientElementExistswith the given data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZestExpressionClientElementExistsdeepCopy()Deep copy.StringgetElement()StringgetType()StringgetWindowHandle()booleanisTrue(ZestRuntime runtime)the boolean value result of the expression without inverse flag.voidsetElement(String element)voidsetType(String type)voidsetWindowHandle(String windowHandle)-
Methods inherited from class org.mozilla.zest.core.v1.ZestExpression
evaluate, isInverse, isLeaf, setInverse
-
Methods inherited from class org.mozilla.zest.core.v1.ZestElement
getElementType, isSameSubclass, setElementType
-
-
-
-
Constructor Detail
-
ZestExpressionClientElementExists
public ZestExpressionClientElementExists()
Instantiates a newZestExpressionClientElementExists.
-
ZestExpressionClientElementExists
public ZestExpressionClientElementExists(String windowHandle, String type, String element)
Instantiates a newZestExpressionClientElementExists.- Parameters:
windowHandle- the window handle.type- the type of the expression.element- the element to check for existence.
-
ZestExpressionClientElementExists
public ZestExpressionClientElementExists(String windowHandle, String type, String element, boolean inverse)
Constructs aZestExpressionClientElementExistswith the given data.- Parameters:
windowHandle- the window handle.type- the type of the expression.element- the element to check for existence.inverse- if the expression should be the inverse.- Since:
- 0.14.0
-
-
Method Detail
-
getWindowHandle
public String getWindowHandle()
-
setWindowHandle
public void setWindowHandle(String windowHandle)
-
getElement
public String getElement()
-
getType
public String getType()
-
setType
public void setType(String type)
-
setElement
public void setElement(String element)
-
isTrue
public boolean isTrue(ZestRuntime runtime)
Description copied from interface:ZestExpressionElementthe boolean value result of the expression without inverse flag.- Parameters:
runtime- the runtime- Returns:
- the boolean value of the expression without inverse flag
-
deepCopy
public ZestExpressionClientElementExists deepCopy()
Description copied from class:ZestElementDeep copy.- Specified by:
deepCopyin interfaceZestExpressionElement- Specified by:
deepCopyin classZestExpression- Returns:
- the zest element
- See Also:
ZestElement
-
-