Package gov.nasa.pds.tools.validate.rule
Class RegisterTargets
java.lang.Object
gov.nasa.pds.tools.validate.rule.AbstractValidationRule
gov.nasa.pds.tools.validate.rule.RegisterTargets
- All Implemented Interfaces:
ValidationRule,org.apache.commons.chain.Command
public class RegisterTargets extends AbstractValidationRule
Implements a rule that inserts this target into the target
registry, if not already present, and also adds all of its
child targets.
-
Field Summary
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE -
Constructor Summary
Constructors Constructor Description RegisterTargets() -
Method Summary
Modifier and Type Method Description booleanisApplicable(String location)Tests whether a rule is applicable to a target location.voidregisterTargets()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
-
Constructor Details
-
RegisterTargets
public RegisterTargets()
-
-
Method Details
-
isApplicable
Description copied from class:AbstractValidationRuleTests whether a rule is applicable to a target location.- Specified by:
isApplicablein interfaceValidationRule- Specified by:
isApplicablein classAbstractValidationRule- Parameters:
location- the target location- Returns:
- true, if the rule is applicable to the target, false otherwise
-
registerTargets
-