Package cdc.validation.checkers
Class RefChecker<T>
java.lang.Object
cdc.validation.checkers.RefChecker<T>
- Type Parameters:
T- The value type.
Checker that lazily delegates its task to a named checker.
The delegate must be compliant with the type of this checker.
- Author:
- Damien Carbonne
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cdc.validation.checkers.Checker
after, after, afterRaw, and, andRaw, cast, cast, explain, explain, negate, or, orRaw, testAndExplain, testAndExplain, testAndExplainRaw, testAndExplainRaw, testRaw, wrap
-
Constructor Details
-
RefChecker
-
-
Method Details
-
getName
- Returns:
- The delegate name.
-
resolve
public void resolve(cdc.util.lang.FailureReaction reaction) Resolves the delegate.The delegate is searched only the first time this method is called.
- Parameters:
reaction- The reaction to adopt if resolution fails.
-
getResolutionStatus
public cdc.util.refs.ResolutionStatus getResolutionStatus() -
getDelegate
- Returns:
- The associated delegate, possibly
nullif resolution is not yet done or failed.
-
getValueClass
- Specified by:
getValueClassin interfaceChecker<T>- Returns:
- The class of tested values.
-
test
-
explain
Description copied from interface:CheckerExplains the conditions at which a positive or negative result is obtained.
-