Package org.mozilla.zest.core.v1
Class ZestAssignFieldValue
- 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.ZestAssignFieldValue
-
public class ZestAssignFieldValue extends ZestAssignment
The Class ZestTransformFieldReplace.
-
-
Field Summary
-
Fields inherited from class org.mozilla.zest.core.v1.ZestElement
JSON_ELEMENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description ZestAssignFieldValue()Instantiates a new zest transform field replace.ZestAssignFieldValue(String variableName)Instantiates a new zest transform field replace.ZestAssignFieldValue(String variableName, ZestFieldDefinition fieldDefinition)Instantiates a new zest transform field replace.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringassign(ZestResponse response, ZestRuntime runtime)Invoke.ZestAssignFieldValuedeepCopy()Deep copy.ZestFieldDefinitiongetFieldDefinition()Gets the field definition.voidsetFieldDefinition(ZestFieldDefinition fieldDefinition)Sets the field definition.-
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
-
ZestAssignFieldValue
public ZestAssignFieldValue()
Instantiates a new zest transform field replace.
-
ZestAssignFieldValue
public ZestAssignFieldValue(String variableName)
Instantiates a new zest transform field replace.- Parameters:
variableName- the variable name
-
ZestAssignFieldValue
public ZestAssignFieldValue(String variableName, ZestFieldDefinition fieldDefinition)
Instantiates a new zest transform field replace.- Parameters:
variableName- the variable namefieldDefinition- the field definition
-
-
Method Detail
-
deepCopy
public ZestAssignFieldValue deepCopy()
Description copied from class:ZestElementDeep copy.- Specified by:
deepCopyin classZestStatement- Returns:
- the zest element
-
getFieldDefinition
public ZestFieldDefinition getFieldDefinition()
Gets the field definition.- Returns:
- the field definition
-
setFieldDefinition
public void setFieldDefinition(ZestFieldDefinition fieldDefinition)
Sets the field definition.- Parameters:
fieldDefinition- the new field definition
-
assign
public String assign(ZestResponse response, ZestRuntime runtime) throws ZestAssignFailException
Description copied from class:ZestAssignmentInvoke.- Specified by:
assignin classZestAssignment- Parameters:
response- the response- Returns:
- the string
- Throws:
ZestAssignFailException- the zest assign fail exception
-
-