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
Modifier and Type Method Description XMLCatalogResolvergetCachedLSResolver()voidsetCatalogResolver(XMLCatalogResolver resolver)voidsetExternalLocations(String locations)ProblemContainervalidate(StreamSource schema)Validate the given schema.
-
Constructor Details
-
SchemaValidator
public SchemaValidator()Constructor.
-
-
Method Details
-
validate
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
-
setCatalogResolver
-