public static interface SchemaLibrary.Results extends Iterable<SchemaLibrary.Problem>
validation
.Modifier and Type | Method and Description |
---|---|
int |
errorCount()
Determine the number of errors within these results.
|
boolean |
hasErrors()
Determine if these results contain at least one error.
|
boolean |
hasOnlyTypeMismatchErrors()
Determine if these results contain only errors that are
mismatched fields , where the
value of a field has a type that does not match but can be converted to the type defined in the schema. |
boolean |
hasProblems()
Determine if these results contain at least one error or warning.
|
boolean |
hasWarnings()
Determine if these results contain at least one warning.
|
int |
problemCount()
Determine the number of problems (that is, errors and warnings) within these results.
|
int |
warningCount()
Determine the number of warnings within these results.
|
forEach, iterator, spliterator
boolean hasProblems()
hasErrors() || hasWarnings()or
problemCount() != 0or
errorCount() != 0 || warningCount() != 0
true
if there is at least one error or warning, or false
if there are no errors or
warningsboolean hasErrors()
true
if there is at least one error, or false
if there are no errorsboolean hasWarnings()
true
if there is at least one warning, or false
if there are no errorsboolean hasOnlyTypeMismatchErrors()
mismatched fields
, where the
value of a field has a type that does not match but can be converted to the type defined in the schema.
All type mismatch errors are considered errors
, but not all errors are type mismatch errors.
If this method return true, then consider calling SchemaLibrary.convertValues(Document, Results)
to convert the
mismatched values and then revalidating.
true
if there is at least one mismatched type error, or false
if there are no errorsSchemaLibrary.convertValues(Document, Results)
int errorCount()
int warningCount()
int problemCount()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.