protected static class JsonSchemaValidatorFactory.SingleProblem extends Object implements Problems
| Modifier | Constructor and Description |
|---|---|
protected |
JsonSchemaValidatorFactory.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 |
recordIn(Problems otherProblems) |
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.
|
protected JsonSchemaValidatorFactory.SingleProblem()
public void recordSuccess()
ProblemsrecordSuccess in interface Problemspublic void recordError(Path path, String message)
ProblemsrecordError in interface Problemspath - the path; may not be nullmessage - the message describing the error; may not be nullpublic void recordError(Path path, String message, Throwable exception)
ProblemsrecordError in interface Problemspath - 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)
ProblemsrecordWarning in interface Problemspath - 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)
ProblemsrecordTypeMismatch in interface Problemspath - 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 recordIn(Problems otherProblems)
public void clear()
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.