|
||||||||||
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 String |
modelVersion
The model version to validate against. |
protected Report |
report
An object representation of a report to capture the results of validation. |
protected Schema |
schema
An object representataion of a schema to validate against. |
Constructor Summary | |
---|---|
Validator(String modelVersion,
Report report)
Constructor. |
Method Summary | |
---|---|
void |
setSchema(List<File> schemaFiles)
Sets the schemas to use during validation. |
void |
setSchema(Schema schema)
Set the schema. |
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 Schema schema
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 setSchema(List<File> schemaFiles) throws SAXException
schemaFiles
- A list of schema files.
SAXException
- If a schema is malformed.public void setSchema(Schema schema)
schema
- An object representation of a schema.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 |