Class SchemaValidator
- java.lang.Object
-
- gov.nasa.pds.tools.validate.rule.pds4.SchemaValidator
-
public class SchemaValidator extends Object
Class to validate schemas.- Author:
- mcayanan
-
-
Constructor Summary
Constructors Constructor Description SchemaValidator()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XMLCatalogResolvergetCachedLSResolver()voidsetCatalogResolver(XMLCatalogResolver resolver)voidsetExternalLocations(String locations)ProblemContainervalidate(StreamSource schema)Validate the given schema.
-
-
-
Method Detail
-
validate
public ProblemContainer validate(StreamSource schema)
Validate the given schema.- Parameters:
schema- URL of the schema.- Returns:
- An ExceptionContainer that contains any problems that were found during validation.
- Throws:
SAXNotSupportedExceptionSAXNotRecognizedException
-
setExternalLocations
public void setExternalLocations(String locations) throws SAXNotRecognizedException, SAXNotSupportedException
-
getCachedLSResolver
public XMLCatalogResolver getCachedLSResolver()
-
setCatalogResolver
public void setCatalogResolver(XMLCatalogResolver resolver)
-
-