Class DefaultDocumentValidator
- java.lang.Object
-
- 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
Constructors Constructor Description DefaultDocumentValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
validate(ProblemHandler handler, Source xml)
Method signature for checking to see if a label is valid.
-
-
-
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 interfaceDocumentValidator
- 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.
-
-