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, getTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCause, getPath, getReason, getTypepublic ValidationTypeMismatchProblem(SchemaLibrary.ProblemType type, Path path, Object actualValue, JsonSchema.Type actualType, JsonSchema.Type expectedType, Object convertedValue, String reason, Throwable cause)
public Object getActualValue()
SchemaLibrary.MismatchedTypeProblemgetActualValue in interface SchemaLibrary.MismatchedTypeProblempublic Object getConvertedValue()
SchemaLibrary.MismatchedTypeProblemgetConvertedValue in interface SchemaLibrary.MismatchedTypeProblempublic JsonSchema.Type getActualType()
getActualType in interface SchemaLibrary.MismatchedTypeProblempublic JsonSchema.Type getExpectedType()
getExpectedType in interface SchemaLibrary.MismatchedTypeProblempublic String toString()
toString in class ValidationProblemCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.