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 XMLCatalogResolver
getCachedLSResolver()
void
setCatalogResolver(XMLCatalogResolver resolver)
void
setExternalLocations(String locations)
ProblemContainer
validate(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:
SAXNotSupportedException
SAXNotRecognizedException
-
setExternalLocations
public void setExternalLocations(String locations) throws SAXNotRecognizedException, SAXNotSupportedException -
getCachedLSResolver
-
setCatalogResolver
-