|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface SchemaLibrary.Results
The results from a validation
.
Method Summary | |
---|---|
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. |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
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()
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |