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 Details

    • FindUnreferencedIdentifiers

      public FindUnreferencedIdentifiers()
  • Method Details

    • 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 interface ValidationRule
      Specified by:
      isApplicable in class AbstractValidationRule
      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.