gov.nasa.pds.validate
Class DirectoryValidator

java.lang.Object
  extended by gov.nasa.pds.validate.Validator
      extended by gov.nasa.pds.validate.DirectoryValidator

public class DirectoryValidator
extends Validator

Class that validates a directory containing PDS products.

Author:
mcayanan

Field Summary
 
Fields inherited from class gov.nasa.pds.validate.Validator
report, schema
 
Constructor Summary
DirectoryValidator(Report report)
          Constructor.
 
Method Summary
 void setFileFilters(List<String> filters)
          Sets the file filter.
 void setRecurse(boolean value)
          Sets the recursion flag.
 void validate(File directory)
          Perform validation on a directory.
 
Methods inherited from class gov.nasa.pds.validate.Validator
setSchema, setSchema
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryValidator

public DirectoryValidator(Report report)
Constructor.

Parameters:
report - A Report object to output the results.
Method Detail

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 © 2005-2010 Planetary Data System. All Rights Reserved.