gov.nasa.pds.tools.label.validate
Class FileReferenceValidator

java.lang.Object
  extended by gov.nasa.pds.tools.label.validate.FileReferenceValidator
All Implemented Interfaces:
DocumentValidator

public class FileReferenceValidator
extends Object
implements DocumentValidator

Validator class that looks for file references in the PDS4 product label and performs the following checks: - Verify that the generated checksum matches the supplied checksum, if provided - Verify that the casing of the file reference matches the file name casing on the file system

Author:
mcayanan

Constructor Summary
FileReferenceValidator()
           
 
Method Summary
 void setChecksumManifest(Map<URL,String> checksumManifest)
           
 boolean validate(ExceptionContainer container, net.sf.saxon.om.DocumentInfo xml)
          Method signature for checking to see if a label is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileReferenceValidator

public FileReferenceValidator()
Method Detail

validate

public boolean validate(ExceptionContainer container,
                        net.sf.saxon.om.DocumentInfo xml)
Description copied from interface: DocumentValidator
Method signature for checking to see if a label is valid.

Specified by:
validate in interface DocumentValidator
Parameters:
container - An exception container.
xml - An object representation of a parsed xml document.
Returns:
flag indicating whether or not the step in validation was passed.

setChecksumManifest

public void setChecksumManifest(Map<URL,String> checksumManifest)


Copyright © 2010–2014 Planetary Data System. All rights reserved.