|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.infinispan.schematic.internal.schema.JsonSchemaValidatorFactory.SingleProblem
protected static class JsonSchemaValidatorFactory.SingleProblem
| Constructor Summary | |
|---|---|
protected |
JsonSchemaValidatorFactory.SingleProblem()
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected JsonSchemaValidatorFactory.SingleProblem()
| Method Detail |
|---|
public void recordSuccess()
Problems
recordSuccess in interface Problems
public void recordError(Path path,
String message)
Problems
recordError in interface Problemspath - the path; may not be nullmessage - the message describing the error; may not be null
public void recordError(Path path,
String message,
Throwable exception)
Problems
recordError 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 cause
public void recordWarning(Path path,
String message)
Problems
recordWarning in interface Problemspath - the path; may not be nullmessage - the message describing the warning; may not be null
public void recordTypeMismatch(Path path,
String message,
JsonSchema.Type actualType,
Object actualValue,
JsonSchema.Type requiredType,
Object convertedValue)
Problems
recordTypeMismatch 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()
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||