gov.nasa.pds.validate
Class CollectionValidator

java.lang.Object
  extended by gov.nasa.pds.validate.Validator
      extended by gov.nasa.pds.validate.CollectionValidator

public class CollectionValidator
extends Validator

Class that validates a PDS Collection file.

Author:
mcayanan

Field Summary
 
Fields inherited from class gov.nasa.pds.validate.Validator
catalogs, modelVersion, report, schemas, schematrons
 
Constructor Summary
CollectionValidator(String modelVersion, Report report)
          Constructor.
 
Method Summary
 void validate(File collection)
          Validates a PDS Collection file and all files that it references to inside the file.
 
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

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.
Method Detail

validate

public void validate(File collection)
              throws InventoryReaderException,
                     XPathExpressionException,
                     SAXException,
                     IOException,
                     ParserConfigurationException,
                     TransformerException
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
InventoryReaderException


Copyright © 2010-2012 Planetary Data System. All Rights Reserved.