gov.nasa.pds.validate
Class DirectoryValidator
java.lang.Object
gov.nasa.pds.validate.Validator
gov.nasa.pds.validate.DirectoryValidator
public class DirectoryValidator
- extends Validator
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)
- Constructor.
- Parameters:
modelVersion
- The model version to use for validation.report
- A Report object to output the results.
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(File directory)
- Perform validation on a directory.
- Specified by:
validate
in class Validator
- Parameters:
directory
- A directory path to start traversing.
Copyright © 2010-2012 Planetary Data System. All Rights Reserved.