public class ShortParam extends PrimitiveOrWrapperParam<Short>
accessibleSchema| Constructor and Description |
|---|
ShortParam(String name,
PrimitiveOrWrapperType type,
AccessibleSchema accessibleSchema) |
ShortParam(String name,
String type,
String fullTypeName,
Class<?> clazz,
AccessibleSchema accessibleSchema) |
| Modifier and Type | Method and Description |
|---|---|
ShortParam |
copyStructure() |
String |
getCastType() |
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) |
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, convertValueTo, copyProperties, getMax, getMaxInclusive, getMin, getMinInclusive, getPrecision, getPrimitiveOrWrapper, getScale, newAssertionWithJava, newInstance, newInstanceWithJava, setMax, setMaxInclusive, setMin, setMinInclusive, setPrecision, setScale, setValueBasedOnDtocopyStructureWithProperties, getCandidateReferences, getCandidates, getDefaultValue, getName, getType, getValue, isHasDependentCandidates, isMutable, isNullable, newAssertionWithJava, newInstanceWithJava, parseValueWithJson, sameParam, setCandidateReferences, setCandidates, setDefaultValue, setHasDependentCandidates, setMutable, setNullable, setValue, setValueBasedOnInstance, setValueBasedOnInstanceOrJsonclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleConstraintsInCopy, handleConstraintsInCopyDtopublic ShortParam(String name, String type, String fullTypeName, Class<?> clazz, AccessibleSchema accessibleSchema)
public ShortParam(String name, PrimitiveOrWrapperType type, AccessibleSchema accessibleSchema)
public String getValueAsJavaString()
getValueAsJavaString in class NamedTypedValue<PrimitiveOrWrapperType,Short>public ParamDto getDto()
NamedTypedValuegetDto in class PrimitiveOrWrapperParam<Short>public ShortParam copyStructure()
copyStructure in class NamedTypedValue<PrimitiveOrWrapperType,Short>public void setValueBasedOnStringValue(String stringValue)
setValueBasedOnStringValue in class PrimitiveOrWrapperParam<Short>protected void setValueBasedOnValidInstance(Object instance)
NamedTypedValuesetValueBasedOnValidInstance in class NamedTypedValue<PrimitiveOrWrapperType,Short>instance - is the instancepublic boolean isValidInstance(Object instance)
isValidInstance in class NamedTypedValue<PrimitiveOrWrapperType,Short>instance - a java object which is an instance of this param schemapublic String getPrimitiveValue(String responseVarName)
getPrimitiveValue in class PrimitiveOrWrapperParam<Short>responseVarName - refers to the variable name in responsepublic String getCastType()
getCastType in class PrimitiveOrWrapperParam<Short>Copyright © 2016–2023. All rights reserved.