Module dev.metaschema.core
Class JsonSchemaContentValidator.JsonValidationFinding
java.lang.Object
dev.metaschema.core.model.validation.JsonSchemaContentValidator.JsonValidationFinding
- All Implemented Interfaces:
IValidationFinding
- Enclosing class:
- JsonSchemaContentValidator
public static class JsonSchemaContentValidator.JsonValidationFinding
extends Object
implements IValidationFinding
Records an identified individual validation result found during JSON schema
validation.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.metaschema.core.model.validation.IValidationFinding
IValidationFinding.Kind -
Constructor Summary
ConstructorsConstructorDescriptionJsonValidationFinding(org.everit.json.schema.ValidationException exception, URI resourceUri) Construct a new XML schema validation finding, which represents an issue identified during XML schema validation. -
Method Summary
Modifier and TypeMethodDescriptionorg.everit.json.schema.ValidationExceptiongetCause()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 theIValidationFinding.getPath()method.Get the finding's severity.
-
Constructor Details
-
JsonValidationFinding
public JsonValidationFinding(@NonNull org.everit.json.schema.ValidationException exception, @NonNull URI resourceUri) Construct a new XML schema validation finding, which represents an issue identified during XML schema validation.- Parameters:
exception- the JSON schema validation exception generated during schema validation representing the issueresourceUri- the resource the issue was found in
-
-
Method Details
-
getIdentifier
Description copied from interface:IValidationFindingGet the unique identifier for the finding.- Specified by:
getIdentifierin interfaceIValidationFinding- Returns:
- the identifier
-
getKind
Description copied from interface:IValidationFindingGet the finding type.- Specified by:
getKindin interfaceIValidationFinding- Returns:
- the finding type
-
getSeverity
Description copied from interface:IValidationFindingGet the finding's severity.- Specified by:
getSeverityin interfaceIValidationFinding- Returns:
- the severity
-
getDocumentUri
Description copied from interface:IValidationFindingGet the document's URI.- Specified by:
getDocumentUriin interfaceIValidationFinding- Returns:
- the document's URI or
nullif it is not known
-
getLocation
Description copied from interface:IValidationFindingGet the location in the associated resource associated with the finding.- Specified by:
getLocationin interfaceIValidationFinding- Returns:
- the location or
nullif no location is known
-
getPathKind
Description copied from interface:IValidationFindingGet the path expression type provided by theIValidationFinding.getPath()method.- Specified by:
getPathKindin interfaceIValidationFinding- Returns:
- the path type identifier or
nullif unknown
-
getPath
Description copied from interface:IValidationFindingA format specific path to the finding in the source document.- Specified by:
getPathin interfaceIValidationFinding- Returns:
- the path or
nullif unknown
-
getMessage
Description copied from interface:IValidationFindingGet the finding message.- Specified by:
getMessagein interfaceIValidationFinding- Returns:
- the message or
nullif there is no message
-
getCause
@NonNull public org.everit.json.schema.ValidationException getCause()Description copied from interface:IValidationFindingGet the exception associated with the finding.- Specified by:
getCausein interfaceIValidationFinding- Returns:
- the
Throwableornullif no thowable is associated with the finding
-