public class FileValidator extends Validator
catalogs, force, labelValidator, report, schemas, schematronTransformer
Constructor and Description |
---|
FileValidator(String modelVersion,
Report report)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
validate(File file)
Validate a PDS product file.
|
void |
validate(URL url) |
addValidator, setCachedEntityResolver, setCachedLSResourceResolver, setCatalogs, setForce, setSchemas, setSchematrons
public FileValidator(String modelVersion, Report report) throws ParserConfigurationException, ValidatorException, TransformerConfigurationException
modelVersion
- The model version to use for validation.report
- A Report object to output the results.ParserConfigurationException
ValidatorException
TransformerConfigurationException
public void validate(File file) throws Exception
validate
in class Validator
file
- A PDS product file.ParserConfigurationException
IOException
SAXException
XPathExpressionException
TransformerException
InventoryReaderException
ValidatorException
Exception
Copyright © 2010–2016 Planetary Data System. All rights reserved.