|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.validate.Validator
gov.nasa.pds.validate.DirectoryValidator
public class DirectoryValidator
Class that validates a directory containing PDS products.
Field Summary |
---|
Fields inherited from class gov.nasa.pds.validate.Validator |
---|
catalogs, modelVersion, report, schemas, schematrons |
Constructor Summary | |
---|---|
DirectoryValidator(String modelVersion,
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 file)
Validate a PDS product. |
void |
validate(URL directory)
Perform validation on a directory. |
Methods inherited from class gov.nasa.pds.validate.Validator |
---|
setCatalogs, setSchemas, setSchematrons |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectoryValidator(String modelVersion, Report report)
modelVersion
- The model version to use for validation.report
- A Report object to output the results.Method Detail |
---|
public void setRecurse(boolean value)
value
- A boolean value.public void setFileFilters(List<String> filters)
filters
- A list of file patterns to look for while
traversing a directory.public void validate(URL directory) throws Exception
validate
in class Validator
directory
- A directory path to start traversing.
Exception
public void validate(File file) throws Exception
Validator
validate
in class Validator
file
- A PDS product file.
gov.nasa.pds.tools.label.ValidatorException
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |