Package cdc.validation.checkers
Class RawRefChecker
- java.lang.Object
-
- cdc.validation.checkers.RawRefChecker
-
-
Constructor Summary
Constructors Constructor Description RawRefChecker(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringexplain(boolean result, String argName)Explains the conditions at which a positive or negative result is obtained.Checker<?>getDelegate()StringgetName()cdc.util.refs.ResolutionStatusgetResolutionStatus()Class<Object>getValueClass()voidresolve(cdc.util.lang.FailureReaction reaction)Resolves the delegate.booleantest(Object value)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods 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 Detail
-
RawRefChecker
public RawRefChecker(String name)
-
-
Method Detail
-
getName
public String 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
public Checker<?> getDelegate()
- Returns:
- The associated delegate, possibly
nullif resolution is not yet done or failed.
-
getValueClass
public Class<Object> getValueClass()
- Specified by:
getValueClassin interfaceChecker<Object>- Returns:
- The class of tested values.
-
test
public boolean test(Object value)
-
-