gov.nasa.pds.validate
Class FileValidator
java.lang.Object
gov.nasa.pds.validate.Validator
gov.nasa.pds.validate.FileValidator
- Direct Known Subclasses:
- DirectoryValidator
public class FileValidator
- extends Validator
Class that validates a single file.
- Author:
- mcayanan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileValidator
public FileValidator(String modelVersion,
Report report)
throws ParserConfigurationException,
gov.nasa.pds.tools.label.ValidatorException,
TransformerConfigurationException
- Constructor.
- Parameters:
modelVersion
- The model version to use for validation.report
- A Report object to output the results.
- Throws:
ParserConfigurationException
gov.nasa.pds.tools.label.ValidatorException
TransformerConfigurationException
validate
public void validate(File file)
throws Exception
- Validate a PDS product file.
- Specified by:
validate
in class Validator
- Parameters:
file
- A PDS product file.
- Throws:
ParserConfigurationException
IOException
SAXException
XPathExpressionException
TransformerException
InventoryReaderException
gov.nasa.pds.tools.label.ValidatorException
Exception
validate
public void validate(URL url)
throws Exception
- Specified by:
validate
in class Validator
- Throws:
Exception
Copyright © 2010–2015 Planetary Data System. All rights reserved.