gov.nasa.pds.validate
Class CollectionValidator
java.lang.Object
gov.nasa.pds.validate.Validator
gov.nasa.pds.validate.CollectionValidator
public class CollectionValidator
- extends Validator
Class that validates a PDS Collection file.
- Author:
- mcayanan
Method Summary |
void |
validate(File collection)
Validates a PDS Collection file and all files that it references to
inside the file. |
void |
validate(URL url)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectionValidator
public CollectionValidator(String modelVersion,
Report report)
- Constructor.
- Parameters:
modelVersion
- The model version to use for validation.report
- A Report to capture the results of the validation.
validate
public void validate(File collection)
throws Exception
- Validates a PDS Collection file and all files that it references to
inside the file.
- Specified by:
validate
in class Validator
- Parameters:
collection
- A PDS Collection file.
- Throws:
ParserConfigurationException
IOException
SAXException
XPathExpressionException
TransformerException
gov.nasa.pds.tools.label.ValidatorException
Exception
validate
public void validate(URL url)
throws Exception
- Specified by:
validate
in class Validator
- Throws:
Exception
Copyright © 2010-2014 Planetary Data System. All Rights Reserved.