protected static class JsonSchemaValidatorFactory.SingleProblem extends Object implements Problems
Modifier | Constructor and Description |
---|---|
protected |
SingleProblem() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
hasProblem() |
void |
recordError(Path path,
String message)
Record an error at the given path in a document.
|
void |
recordError(Path path,
String message,
Throwable exception)
Record an error at the given path in a document.
|
void |
recordSuccess()
Record a successful validation.
|
void |
recordTypeMismatch(Path path,
String message,
JsonSchema.Type actualType,
Object actualValue,
JsonSchema.Type requiredType,
Object convertedValue)
Record a field value was encountered whose type was not the expected type but could be converted to the expected type.
|
void |
recordWarning(Path path,
String message)
Record a warning at the given path in a document.
|
public void recordSuccess()
Problems
recordSuccess
in interface Problems
public void recordError(Path path, String message)
Problems
recordError
in interface Problems
path
- the path; may not be nullmessage
- the message describing the error; may not be nullpublic void recordError(Path path, String message, Throwable exception)
Problems
recordError
in interface Problems
path
- the path; may not be nullmessage
- the message describing the error; may not be nullexception
- the exception that occurred and that is considered the causepublic void recordWarning(Path path, String message)
Problems
recordWarning
in interface Problems
path
- the path; may not be nullmessage
- the message describing the warning; may not be nullpublic void recordTypeMismatch(Path path, String message, JsonSchema.Type actualType, Object actualValue, JsonSchema.Type requiredType, Object convertedValue)
Problems
recordTypeMismatch
in interface Problems
path
- the path; may not be nullmessage
- the message describing the warning; may not be nullactualType
- the actual type of the field value; may not be nullactualValue
- the actual field valuerequiredType
- the expected type; may not be nullconvertedValue
- the converted valuepublic boolean hasProblem()
public void clear()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.