Package com.intuit.karate.core
Class Variable
- java.lang.Object
-
- com.intuit.karate.core.Variable
-
public class Variable extends Object
- Author:
- pthomas3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVariable.Type
-
Field Summary
Fields Modifier and Type Field Description static VariableNOT_PRESENTstatic VariableNULLVariable.Typetype
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Variablecopy(boolean deep)byte[]getAsByteArray()intgetAsInt()StringgetAsPrettyString()StringgetAsPrettyXmlString()StringgetAsString()NodegetAsXml()StringgetTypeString()<T> TgetValue()ObjectgetValueAndConvertIfXmlToMap()ObjectgetValueAndForceParsingAsJson()booleanisBoolean()booleanisBytes()booleanisFeature()booleanisJavaFunction()booleanisJsFunction()booleanisJsOrJavaFunction()booleanisList()booleanisMap()booleanisMapOrList()booleanisNotPresent()booleanisNull()booleanisNumber()booleanisOther()booleanisString()booleanisTrue()booleanisXml()VariabletoLowerCase()StringtoString()
-
-
-
Field Detail
-
NULL
public static final Variable NULL
-
NOT_PRESENT
public static final Variable NOT_PRESENT
-
type
public final Variable.Type type
-
-
Constructor Detail
-
Variable
public Variable(Object o)
-
-
Method Detail
-
getValue
public <T> T getValue()
-
isJsOrJavaFunction
public boolean isJsOrJavaFunction()
-
isJavaFunction
public boolean isJavaFunction()
-
isJsFunction
public boolean isJsFunction()
-
isBytes
public boolean isBytes()
-
isString
public boolean isString()
-
isList
public boolean isList()
-
isMap
public boolean isMap()
-
isMapOrList
public boolean isMapOrList()
-
isXml
public boolean isXml()
-
isNumber
public boolean isNumber()
-
isNull
public boolean isNull()
-
isOther
public boolean isOther()
-
isFeature
public boolean isFeature()
-
isBoolean
public boolean isBoolean()
-
isTrue
public boolean isTrue()
-
getTypeString
public String getTypeString()
-
getAsXml
public Node getAsXml()
-
getValueAndConvertIfXmlToMap
public Object getValueAndConvertIfXmlToMap()
-
getValueAndForceParsingAsJson
public Object getValueAndForceParsingAsJson()
-
getAsByteArray
public byte[] getAsByteArray()
-
getAsString
public String getAsString()
-
getAsPrettyString
public String getAsPrettyString()
-
getAsPrettyXmlString
public String getAsPrettyXmlString()
-
getAsInt
public int getAsInt()
-
copy
public Variable copy(boolean deep)
-
toLowerCase
public Variable toLowerCase()
-
isNotPresent
public boolean isNotPresent()
-
-