Module dev.metaschema.core
Interface IValidationFinding
- All Known Implementing Classes:
ConstraintValidationFinding,JsonSchemaContentValidator.JsonValidationFinding,XmlSchemaContentValidator.XmlValidationFinding
public interface IValidationFinding
Provides information about an individual finding that is the result of a
completed content validation.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongetCause()Get the exception associated with the finding.Get the document's URI.Get the unique identifier for the finding.getKind()Get the finding type.Get the location in the associated resource associated with the finding.Get the finding message.getPath()A format specific path to the finding in the source document.Get the path expression type provided by thegetPath()method.Get the finding's severity.
-
Method Details
-
getIdentifier
Get the unique identifier for the finding.- Returns:
- the identifier
-
getSeverity
Get the finding's severity.- Returns:
- the severity
-
getKind
Get the finding type.- Returns:
- the finding type
-
getDocumentUri
Get the document's URI.- Returns:
- the document's URI or
nullif it is not known
-
getLocation
Get the location in the associated resource associated with the finding.- Returns:
- the location or
nullif no location is known
-
getPathKind
Get the path expression type provided by thegetPath()method.- Returns:
- the path type identifier or
nullif unknown
-
getPath
A format specific path to the finding in the source document.- Returns:
- the path or
nullif unknown
-
getMessage
Get the finding message.- Returns:
- the message or
nullif there is no message
-
getCause
Throwable getCause()Get the exception associated with the finding.- Returns:
- the
Throwableornullif no thowable is associated with the finding
-