gov.nasa.pds.validate
Class DirectoryValidator
java.lang.Object
gov.nasa.pds.validate.Validator
gov.nasa.pds.validate.FileValidator
gov.nasa.pds.validate.DirectoryValidator
public class DirectoryValidator
- extends FileValidator
Class that validates a directory containing PDS products.
- Author:
- mcayanan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectoryValidator
public DirectoryValidator(String modelVersion,
Report report)
throws ParserConfigurationException,
gov.nasa.pds.tools.label.ValidatorException
- 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
setRecurse
public void setRecurse(boolean value)
- Sets the recursion flag. By default, it is set to 'true'.
- Parameters:
value
- A boolean value.
setFileFilters
public void setFileFilters(List<String> filters)
- Sets the file filter.
- Parameters:
filters
- A list of file patterns to look for while
traversing a directory.
validate
public void validate(URL directory)
throws Exception
- Perform validation on a directory.
- Overrides:
validate
in class FileValidator
- Parameters:
directory
- A directory path to start traversing.
- Throws:
Exception
Copyright © 2010–2014 Planetary Data System. All rights reserved.