Package org.mozilla.zest.core.v1
Class ZestAssignGlobalVariable
- java.lang.Object
-
- org.mozilla.zest.core.v1.ZestElement
-
- org.mozilla.zest.core.v1.ZestStatement
-
- org.mozilla.zest.core.v1.ZestAssignment
-
- org.mozilla.zest.core.v1.ZestAssignGlobalVariable
-
public class ZestAssignGlobalVariable extends ZestAssignment
AZestAssignmentfrom aglobal variable.- Since:
- 0.14.0
- See Also:
ZestActionGlobalVariableRemove,ZestActionGlobalVariableSet
-
-
Field Summary
-
Fields inherited from class org.mozilla.zest.core.v1.ZestElement
JSON_ELEMENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description ZestAssignGlobalVariable()Constructs aZestAssignGlobalVariablewith no target variable nor global variable.ZestAssignGlobalVariable(String variableName)Constructs aZestAssignGlobalVariablewith the given target variable.ZestAssignGlobalVariable(String variableName, String globalVariableName)Constructs aZestAssignGlobalVariablewith the given target variable and global variable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringassign(ZestResponse response, ZestRuntime runtime)Invoke.ZestAssignGlobalVariabledeepCopy()Deep copy.StringgetGlobalVariableName()Gets the name of the global variable.voidsetGlobalVariableName(String globalVariableName)Sets the name of the global variable.-
Methods inherited from class org.mozilla.zest.core.v1.ZestAssignment
getVariableName, isPassive, isSameSubclass, setVariableName
-
Methods inherited from class org.mozilla.zest.core.v1.ZestStatement
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
-
ZestAssignGlobalVariable
public ZestAssignGlobalVariable()
Constructs aZestAssignGlobalVariablewith no target variable nor global variable.
-
ZestAssignGlobalVariable
public ZestAssignGlobalVariable(String variableName)
Constructs aZestAssignGlobalVariablewith the given target variable.- Parameters:
variableName- the name of the variable where to assign the global variable, might benull.
-
ZestAssignGlobalVariable
public ZestAssignGlobalVariable(String variableName, String globalVariableName)
Constructs aZestAssignGlobalVariablewith the given target variable and global variable.- Parameters:
variableName- the name of the variable where to assign the global variable, might benull.globalVariableName- the name of the global variable, might benull.
-
-
Method Detail
-
getGlobalVariableName
public String getGlobalVariableName()
Gets the name of the global variable.- Returns:
- the name of the global variable, might be
null.
-
setGlobalVariableName
public void setGlobalVariableName(String globalVariableName)
Sets the name of the global variable.- Parameters:
globalVariableName- the name of the global variable.
-
assign
public String assign(ZestResponse response, ZestRuntime runtime)
Description copied from class:ZestAssignmentInvoke.- Specified by:
assignin classZestAssignment- Parameters:
response- the response- Returns:
- the string
-
deepCopy
public ZestAssignGlobalVariable deepCopy()
Description copied from class:ZestElementDeep copy.- Specified by:
deepCopyin classZestStatement- Returns:
- the zest element
-
-