Package gov.nasa.pds.citool.validate
Class ReferenceFinderValidator
- java.lang.Object
-
- gov.nasa.pds.citool.validate.ReferenceFinderValidator
-
- All Implemented Interfaces:
gov.nasa.pds.tools.label.validate.LabelValidator
public class ReferenceFinderValidator extends Object implements gov.nasa.pds.tools.label.validate.LabelValidator
Class that finds references in a statement and makes sure that it is found in a REFERENCE_KEY_ID within the label. References in a non REFERENCE_KEY_ID statement are denoted within square brackets [].- Author:
- mcayanan
-
-
Constructor Summary
Constructors Constructor Description ReferenceFinderValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
validate(gov.nasa.pds.tools.label.Label catalog)
Validates a label by checking references and matching that with REFERENCE_KEY_ID values found within the given label.
-
-
-
Method Detail
-
validate
public boolean validate(gov.nasa.pds.tools.label.Label catalog)
Validates a label by checking references and matching that with REFERENCE_KEY_ID values found within the given label.- Specified by:
validate
in interfacegov.nasa.pds.tools.label.validate.LabelValidator
- Parameters:
catalog
- An object representation of a catalog file.- Returns:
- A flag indicating wheter or not a reference catalog if valid.
-
-