public class BigIntegerParam extends NamedTypedValue<BigIntegerType,BigInteger> implements NumericConstraintBase<BigInteger>
accessibleSchema, objectMaper| Constructor and Description |
|---|
BigIntegerParam(String name,
AccessibleSchema accessibleSchema,
JavaDtoSpec spec) |
BigIntegerParam(String name,
BigIntegerType type,
AccessibleSchema accessibleSchema) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyProperties(NamedTypedValue copy) |
NamedTypedValue<BigIntegerType,BigInteger> |
copyStructure() |
ParamDto |
getDto()
get its dto format in order to further handle it with evomastr core
|
BigInteger |
getMax() |
boolean |
getMaxInclusive() |
BigInteger |
getMin() |
boolean |
getMinInclusive() |
Integer |
getPrecision() |
Integer |
getScale() |
String |
getValueAsJavaString(boolean isJava) |
List<String> |
newAssertionWithJavaOrKotlin(int indent,
String responseVarName,
int maxAssertionForDataInCollection,
boolean isJava)
create assertions with java for response
|
Object |
newInstance() |
List<String> |
newInstanceWithJavaOrKotlin(boolean isDeclaration,
boolean doesIncludeName,
String variableName,
int indent,
boolean isJava,
boolean isVariableNullable)
create instances with Java
|
List<String> |
referenceTypes() |
void |
setMax(BigInteger max) |
void |
setMaxInclusive(boolean inclusive) |
void |
setMin(BigInteger min) |
void |
setMinInclusive(boolean inclusive) |
void |
setPrecision(Integer precision) |
void |
setScale(Integer scale) |
void |
setValueBasedOnDto(ParamDto dto)
set value based on dto
the value is basically obtained from evomaster core
|
void |
setValueBasedOnInstanceOrJson(Object json)
set value based on json
|
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
|
copyStructureWithProperties, getCandidateReferences, getCandidates, getDefaultValue, getName, getType, getValue, isHasDependentCandidates, isMutable, isNullable, isValidInstance, newAssertionWithJavaOrKotlin, newInstanceWithJavaOrKotlin, parseValueWithJson, sameParam, setCandidateReferences, setCandidates, setDefaultValue, setHasDependentCandidates, setMutable, setNullable, setValue, setValueBasedOnInstanceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleConstraintsInCopy, handleConstraintsInCopyDtopublic BigIntegerParam(String name, BigIntegerType type, AccessibleSchema accessibleSchema)
public BigIntegerParam(String name, AccessibleSchema accessibleSchema, JavaDtoSpec spec)
public Object newInstance() throws ClassNotFoundException
newInstance in class NamedTypedValue<BigIntegerType,BigInteger>ClassNotFoundExceptionpublic NamedTypedValue<BigIntegerType,BigInteger> copyStructure()
copyStructure in class NamedTypedValue<BigIntegerType,BigInteger>public void copyProperties(NamedTypedValue copy)
copyProperties in class NamedTypedValue<BigIntegerType,BigInteger>public void setValueBasedOnDto(ParamDto dto)
NamedTypedValuesetValueBasedOnDto in class NamedTypedValue<BigIntegerType,BigInteger>dto - contains value info with stringpublic void setValueBasedOnInstanceOrJson(Object json) throws com.fasterxml.jackson.core.JsonProcessingException
NamedTypedValuesetValueBasedOnInstanceOrJson in class NamedTypedValue<BigIntegerType,BigInteger>json - contains value info with json formatcom.fasterxml.jackson.core.JsonProcessingExceptionprotected void setValueBasedOnValidInstance(Object instance)
NamedTypedValuesetValueBasedOnValidInstance in class NamedTypedValue<BigIntegerType,BigInteger>instance - is the instancepublic ParamDto getDto()
NamedTypedValuegetDto in class NamedTypedValue<BigIntegerType,BigInteger>public List<String> newInstanceWithJavaOrKotlin(boolean isDeclaration, boolean doesIncludeName, String variableName, int indent, boolean isJava, boolean isVariableNullable)
NamedTypedValuenewInstanceWithJavaOrKotlin in class NamedTypedValue<BigIntegerType,BigInteger>isDeclaration - specifies whether it is used to declare the instance (ie, with type name).doesIncludeName - specifies whether it is required to have the variable name
eg, if true, var = new instance(); if yes, new instance();variableName - specifies the name of variableindent - specifies the indent of this block of the codepublic List<String> newAssertionWithJavaOrKotlin(int indent, String responseVarName, int maxAssertionForDataInCollection, boolean isJava)
NamedTypedValuenewAssertionWithJavaOrKotlin in class NamedTypedValue<BigIntegerType,BigInteger>indent - specifies the current indent of the coderesponseVarName - a variable name for responsespublic String getValueAsJavaString(boolean isJava)
getValueAsJavaString in class NamedTypedValue<BigIntegerType,BigInteger>public BigInteger getMin()
getMin in interface NumericConstraintBase<BigInteger>public void setMin(BigInteger min)
setMin in interface NumericConstraintBase<BigInteger>public BigInteger getMax()
getMax in interface NumericConstraintBase<BigInteger>public void setMax(BigInteger max)
setMax in interface NumericConstraintBase<BigInteger>public boolean getMinInclusive()
getMinInclusive in interface NumericConstraintBase<BigInteger>public void setMinInclusive(boolean inclusive)
setMinInclusive in interface NumericConstraintBase<BigInteger>public boolean getMaxInclusive()
getMaxInclusive in interface NumericConstraintBase<BigInteger>public void setMaxInclusive(boolean inclusive)
setMaxInclusive in interface NumericConstraintBase<BigInteger>public Integer getPrecision()
getPrecision in interface NumericConstraintBase<BigInteger>public void setPrecision(Integer precision)
setPrecision in interface NumericConstraintBase<BigInteger>public Integer getScale()
getScale in interface NumericConstraintBase<BigInteger>public void setScale(Integer scale)
setScale in interface NumericConstraintBase<BigInteger>public List<String> referenceTypes()
referenceTypes in class NamedTypedValue<BigIntegerType,BigInteger>Copyright © 2016–2024. All rights reserved.