Class FindUnreferencedIdentifiers
- java.lang.Object
-
- gov.nasa.pds.tools.validate.rule.AbstractValidationRule
-
- gov.nasa.pds.tools.validate.rule.pds4.FindUnreferencedIdentifiers
-
- All Implemented Interfaces:
ValidationRule
,org.apache.commons.chain.Command
public class FindUnreferencedIdentifiers extends AbstractValidationRule
Implements a validation rule that checks that all identifiers are referenced by some label.
-
-
Constructor Summary
Constructors Constructor Description FindUnreferencedIdentifiers()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
findUnreferencedIdentifiers()
Iterate over unreferenced targets, reporting an error for each.boolean
isApplicable(String location)
Tests whether a rule is applicable to a target location.-
Methods inherited from class gov.nasa.pds.tools.validate.rule.AbstractValidationRule
execute, getCaption, getChildContext, getContext, getExtraTarget, getListener, getParentTarget, getRegistrar, getTarget, isDebugLogLevel, isInfoLogLevel, reportError, reportError, setCaption, verifyLidPrefix
-
-
-
-
Method Detail
-
isApplicable
public boolean isApplicable(String location)
Description copied from class:AbstractValidationRule
Tests whether a rule is applicable to a target location.- Specified by:
isApplicable
in interfaceValidationRule
- Specified by:
isApplicable
in classAbstractValidationRule
- Parameters:
location
- the target location- Returns:
- true, if the rule is applicable to the target, false otherwise
-
findUnreferencedIdentifiers
@ValidationTest public void findUnreferencedIdentifiers()
Iterate over unreferenced targets, reporting an error for each.
-
-