gov.nasa.pds.validate
Class Validator
java.lang.Object
gov.nasa.pds.validate.Validator
- Direct Known Subclasses:
- DirectoryValidator, FileValidator
public abstract class Validator
- extends Object
Abstract class to validate a PDS4 product label.
- Author:
- mcayanan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
report
protected Report report
schema
protected Schema schema
Validator
public Validator(Report report)
- Constructor.
- Parameters:
report
- A Report object to output the results of the validation
run.
setSchema
public void setSchema(List<File> schemaFiles)
throws SAXException
- Sets the schemas to use during validation. By default, the validation
comes pre-loaded with schemas to use. This method would only be used
in cases where the user wishes to use their own set of schemas for
validation.
- Parameters:
schemaFiles
- A list of schema files.
- Throws:
SAXException
- If a schema is malformed.
setSchema
public void setSchema(Schema schema)
validate
public abstract void validate(File file)
- Validate a PDS product.
- Parameters:
file
- A PDS product file.
Copyright © 2005-2010 Planetary Data System. All Rights Reserved.