Module dev.metaschema.core
Class XmlSchemaContentValidator.XmlValidationFinding
java.lang.Object
dev.metaschema.core.model.validation.XmlSchemaContentValidator.XmlValidationFinding
- All Implemented Interfaces:
IResourceLocation,IValidationFinding
- Enclosing class:
- XmlSchemaContentValidator
public static class XmlSchemaContentValidator.XmlValidationFinding
extends Object
implements IValidationFinding, IResourceLocation
Records an identified individual validation result found during XML schema
validation.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.metaschema.core.model.validation.IValidationFinding
IValidationFinding.Kind -
Constructor Summary
ConstructorsConstructorDescriptionXmlValidationFinding(IConstraint.Level severity, SAXParseException exception, URI resourceUri) Construct a new XML schema validation finding, which represents an issue identified during XML schema validation. -
Method Summary
Modifier and TypeMethodDescriptionlongGet the zero-based byte offset for a location within a resource.getCause()Get the exception associated with the finding.longGet the zero-based character offset for a location within a resource.intGet the line column for a location within a resource.Get the document's URI.Get the unique identifier for the finding.getKind()Get the finding type.intgetLine()Get the line for a location within a resource.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
-
XmlValidationFinding
public XmlValidationFinding(@NonNull IConstraint.Level severity, @NonNull SAXParseException exception, @NonNull URI resourceUri) Construct a new XML schema validation finding, which represents an issue identified during XML schema validation.- Parameters:
severity- the finding significanceexception- the XML 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
-
getLine
public int getLine()Description copied from interface:IResourceLocationGet the line for a location within a resource.- Specified by:
getLinein interfaceIResourceLocation- Returns:
- the line number or
-1if unknown
-
getColumn
public int getColumn()Description copied from interface:IResourceLocationGet the line column for a location within a resource.- Specified by:
getColumnin interfaceIResourceLocation- Returns:
- the column number or
-1if unknown
-
getCharOffset
public long getCharOffset()Description copied from interface:IResourceLocationGet the zero-based character offset for a location within a resource.- Specified by:
getCharOffsetin interfaceIResourceLocation- Returns:
- the character offset or
-1if unknown
-
getByteOffset
public long getByteOffset()Description copied from interface:IResourceLocationGet the zero-based byte offset for a location within a resource.- Specified by:
getByteOffsetin interfaceIResourceLocation- Returns:
- the byte offset or
-1if unknown
-
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
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
-