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
modelVersion, report, schema
 
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.
 
Methods inherited from class gov.nasa.pds.validate.Validator
setSchema, setSchema
 
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 InventoryReaderException
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


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