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

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

public class DefaultDocumentValidator
extends Object
implements DocumentValidator

The intent of this class is to perform some default semantic validation on the parsed PDS4 label.

Author:
mcayanan

Constructor Summary
DefaultDocumentValidator()
           
 
Method Summary
 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

DefaultDocumentValidator

public DefaultDocumentValidator()
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.


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