Class 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 Detail

      • DefaultDocumentValidator

        public DefaultDocumentValidator()
    • Method Detail

      • validate

        public boolean validate​(ProblemHandler handler,
                                Source xml)
        Description copied from interface: DocumentValidator
        Method signature for checking to see if a label is valid.
        Specified by:
        validate in interface DocumentValidator
        Parameters:
        handler - A problem handler.
        xml - An object representation of a parsed xml document.
        Returns:
        flag indicating whether or not the step in validation was passed.