public class DoubleParam extends PrimitiveOrWrapperParam<Double>
accessibleSchema, NOT_NULL_MARK_OBJ_DATE| Constructor and Description |
|---|
DoubleParam(String name,
PrimitiveOrWrapperType type,
AccessibleSchema accessibleSchema) |
DoubleParam(String name,
String type,
String fullTypeName,
Class<?> clazz,
AccessibleSchema accessibleSchema) |
| Modifier and Type | Method and Description |
|---|---|
DoubleParam |
copyStructure() |
ParamDto |
getDto()
get its dto format in order to further handle it with evomastr core
|
String |
getPrimitiveValue(String responseVarName) |
String |
getValueAsJavaString() |
boolean |
isValidInstance(Object instance) |
List<String> |
newAssertionWithJava(int indent,
String responseVarName,
int maxAssertionForDataInCollection)
create assertions with java for response
|
void |
setValueBasedOnStringValue(String stringValue) |
protected void |
setValueBasedOnValidInstance(Object instance)
set the value of the param based on instance
compared with [setValueBasedOnInstance], the type of the instance here is evaluated as valid
|
build, getMax, getMin, newInstance, newInstanceWithJava, setMax, setMin, setValueBasedOnDtogetCandidateReferences, getCandidates, getName, getType, getValue, isHasDependentCandidates, isNullable, newAssertionWithJava, newInstanceWithJava, sameParam, setCandidateReferences, setCandidates, setHasDependentCandidates, setNullable, setValue, setValueBasedOnInstancepublic DoubleParam(String name, String type, String fullTypeName, Class<?> clazz, AccessibleSchema accessibleSchema)
public DoubleParam(String name, PrimitiveOrWrapperType type, AccessibleSchema accessibleSchema)
public String getValueAsJavaString()
getValueAsJavaString in class NamedTypedValue<PrimitiveOrWrapperType,Double>public ParamDto getDto()
NamedTypedValuegetDto in class PrimitiveOrWrapperParam<Double>public DoubleParam copyStructure()
copyStructure in class NamedTypedValue<PrimitiveOrWrapperType,Double>public void setValueBasedOnStringValue(String stringValue)
setValueBasedOnStringValue in class PrimitiveOrWrapperParam<Double>protected void setValueBasedOnValidInstance(Object instance)
NamedTypedValuesetValueBasedOnValidInstance in class NamedTypedValue<PrimitiveOrWrapperType,Double>instance - is the instancepublic boolean isValidInstance(Object instance)
isValidInstance in class NamedTypedValue<PrimitiveOrWrapperType,Double>instance - a java object which is an instance of this param schemapublic List<String> newAssertionWithJava(int indent, String responseVarName, int maxAssertionForDataInCollection)
NamedTypedValuenewAssertionWithJava in class PrimitiveOrWrapperParam<Double>indent - specifies the current indent of the coderesponseVarName - a variable name for responsespublic String getPrimitiveValue(String responseVarName)
getPrimitiveValue in class PrimitiveOrWrapperParam<Double>responseVarName - refers to the variable name in responseCopyright © 2016–2022. All rights reserved.