1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package gov.nasa.pds.tools.label.validate;
17
18 import gov.nasa.pds.tools.label.Label;
19
20 /***
21 * This interface is a means to define an extension point for the parser to perform further validation.
22 * This type of validation is outside the realm of the syntax defined by the grammar and data dictionary.
23 * An example of this would be required file characteristic elements.
24 *
25 * @author pramirez
26 * @version $Revision$
27 *
28 */
29 public interface LabelValidator {
30 /***
31 * Method signature for checking to see if a label is valid.
32 * @param label object returned from parsing that reprsents the PDS label
33 * @return flag indicating whether or not the step in validation was passed.
34 */
35 public boolean isValid(Label label);
36
37 public boolean isValid(Label label, ValidationListener listener);
38 }