public final class ValidationTypeMismatchProblem extends ValidationProblem implements SchemaLibrary.MismatchedTypeProblem
Constructor and Description |
---|
ValidationTypeMismatchProblem(SchemaLibrary.ProblemType type,
Path path,
Object actualValue,
JsonSchema.Type actualType,
JsonSchema.Type expectedType,
Object convertedValue,
String reason,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
JsonSchema.Type |
getActualType() |
Object |
getActualValue()
Get the actual field value.
|
Object |
getConvertedValue()
Get the converted field value that would satisfy the type expected by the schema.
|
JsonSchema.Type |
getExpectedType() |
String |
toString() |
getCause, getPath, getReason, getType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCause, getPath, getReason, getType
public ValidationTypeMismatchProblem(SchemaLibrary.ProblemType type, Path path, Object actualValue, JsonSchema.Type actualType, JsonSchema.Type expectedType, Object convertedValue, String reason, Throwable cause)
public Object getActualValue()
SchemaLibrary.MismatchedTypeProblem
getActualValue
in interface SchemaLibrary.MismatchedTypeProblem
public Object getConvertedValue()
SchemaLibrary.MismatchedTypeProblem
getConvertedValue
in interface SchemaLibrary.MismatchedTypeProblem
public JsonSchema.Type getActualType()
getActualType
in interface SchemaLibrary.MismatchedTypeProblem
public JsonSchema.Type getExpectedType()
getExpectedType
in interface SchemaLibrary.MismatchedTypeProblem
public String toString()
toString
in class ValidationProblem
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.