gov.nasa.pds.validate
Class BundleValidator

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

public class BundleValidator
extends Validator

A class that validates a PDS Bundle file.

Author:
mcayanan

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

BundleValidator

public BundleValidator(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 bundle)
              throws Exception
Validates a PDS bundle file and all files that it references inside the file.

Specified by:
validate in class Validator
Parameters:
bundle - A PDS Bundle file.
Throws:
InventoryReaderException
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-2013 Planetary Data System. All Rights Reserved.