Package org.mozilla.zest.core.v1
Class ZestAssignment
- java.lang.Object
-
- org.mozilla.zest.core.v1.ZestElement
-
- org.mozilla.zest.core.v1.ZestStatement
-
- org.mozilla.zest.core.v1.ZestAssignment
-
- Direct Known Subclasses:
ZestAssignCalc,ZestAssignFieldValue,ZestAssignFromElement,ZestAssignGlobalVariable,ZestAssignRandomInteger,ZestAssignRegexDelimiters,ZestAssignReplace,ZestAssignString,ZestAssignStringDelimiters
public abstract class ZestAssignment extends ZestStatement
The Class ZestAction.
-
-
Field Summary
-
Fields inherited from class org.mozilla.zest.core.v1.ZestElement
JSON_ELEMENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description ZestAssignment()Instantiates a new zest action.ZestAssignment(int index)Instantiates a new zest action.ZestAssignment(String variableName)Instantiates a new zest assignment.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Stringassign(ZestResponse response, ZestRuntime runtime)Invoke.StringgetVariableName()Returns the variable name.booleanisPassive()Checks if is passive.booleanisSameSubclass(ZestElement ze)Checks if is same subclass.voidsetVariableName(String name)Sets the variable name.-
Methods inherited from class org.mozilla.zest.core.v1.ZestStatement
deepCopy, getIndex, getNext, getPrevious, init, insertAfter, insertBefore, isEnabled, remove, setEnabled, setNext, setPrev
-
Methods inherited from class org.mozilla.zest.core.v1.ZestElement
getElementType, setElementType
-
-
-
-
Constructor Detail
-
ZestAssignment
public ZestAssignment()
Instantiates a new zest action.
-
ZestAssignment
public ZestAssignment(String variableName)
Instantiates a new zest assignment.- Parameters:
variableName- the variable name
-
ZestAssignment
public ZestAssignment(int index)
Instantiates a new zest action.- Parameters:
index- the index
-
-
Method Detail
-
isSameSubclass
public boolean isSameSubclass(ZestElement ze)
Description copied from class:ZestElementChecks if is same subclass.- Overrides:
isSameSubclassin classZestStatement- Parameters:
ze- the ze- Returns:
- true, if is same subclass
-
getVariableName
public String getVariableName()
Returns the variable name.- Returns:
- the variable name
-
setVariableName
public void setVariableName(String name)
Sets the variable name.- Parameters:
name- the new variable name
-
isPassive
public boolean isPassive()
Description copied from class:ZestStatementChecks if is passive.- Specified by:
isPassivein classZestStatement- Returns:
- true, if is passive
-
assign
public abstract String assign(ZestResponse response, ZestRuntime runtime) throws ZestAssignFailException
Invoke.- Parameters:
response- the response- Returns:
- the string
- Throws:
ZestAssignFailException- the zest assign fail exception
-
-