|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.validate.Validator
public abstract class Validator
Abstract class to validate a PDS4 product label.
Field Summary | |
---|---|
protected List<String> |
catalogs
A list of user specified catalogs to use during validation. |
protected String |
modelVersion
The model version to validate against. |
protected Report |
report
An object representation of a report to capture the results of validation. |
protected List<String> |
schemas
A list of user specified schemas to validate against. |
Constructor Summary | |
---|---|
Validator(String modelVersion,
Report report)
Constructor. |
Method Summary | |
---|---|
void |
setCatalogs(List<String> catalogs)
Sets the catalogs to use during validation. |
void |
setSchemas(List<String> schemaFiles)
Sets the schemas to use during validation. |
abstract void |
validate(File file)
Validate a PDS product. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Report report
protected List<String> schemas
protected List<String> catalogs
protected String modelVersion
Constructor Detail |
---|
public Validator(String modelVersion, Report report)
modelVersion
- The model version to use for validation.report
- A Report object to output the results of the validation
run.Method Detail |
---|
public void setSchemas(List<String> schemaFiles)
schemaFiles
- A list of schema files.public void setCatalogs(List<String> catalogs)
catalogs
- A list of catalog files.public abstract void validate(File file) throws SAXException, IOException, ParserConfigurationException, XPathExpressionException, InventoryReaderException
file
- A PDS product file.
SAXException
IOException
ParserConfigurationException
XPathExpressionException
InventoryReaderException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |