Class XmlSchemaContentValidator
- java.lang.Object
-
- gov.nist.secauto.metaschema.core.resource.AbstractResourceLoader
-
- gov.nist.secauto.metaschema.core.model.validation.AbstractContentValidator
-
- gov.nist.secauto.metaschema.core.model.validation.XmlSchemaContentValidator
-
- All Implemented Interfaces:
IResourceLoader
,IContentValidator
public class XmlSchemaContentValidator extends AbstractContentValidator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
XmlSchemaContentValidator.XmlValidationFinding
-
Constructor Summary
Constructors Modifier Constructor Description XmlSchemaContentValidator(List<? extends Source> schemaSources)
protected
XmlSchemaContentValidator(Schema schema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Schema
getSchema()
IValidationResult
validate(InputStream is, URI documentUri)
Validate the resource associated with the provided input streamis
.-
Methods inherited from class gov.nist.secauto.metaschema.core.model.validation.AbstractContentValidator
validate
-
Methods inherited from class gov.nist.secauto.metaschema.core.resource.AbstractResourceLoader
getUriResolver, resolve, setUriResolver
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.validation.IContentValidator
validate, validate
-
-
-
-
Constructor Detail
-
XmlSchemaContentValidator
public XmlSchemaContentValidator(@NonNull List<? extends Source> schemaSources) throws SAXException
- Throws:
SAXException
-
XmlSchemaContentValidator
protected XmlSchemaContentValidator(@NonNull Schema schema)
-
-
Method Detail
-
validate
public IValidationResult validate(InputStream is, URI documentUri) throws IOException
Description copied from interface:IContentValidator
Validate the resource associated with the provided input streamis
.- Parameters:
is
- an input stream to access the resourcedocumentUri
- the URI of the resource to validate- Returns:
- the result of the validation
- Throws:
IOException
- if an error occurred while performing validation
-
-