Class RawRefChecker

java.lang.Object
cdc.validation.checkers.RawRefChecker
All Implemented Interfaces:
Checker<Object>, Predicate<Object>

public final class RawRefChecker extends Object implements Checker<Object>
  • Constructor Details

    • RawRefChecker

      public RawRefChecker(String name)
  • Method Details

    • 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 null if resolution is not yet done or failed.
    • getValueClass

      public Class<Object> getValueClass()
      Specified by:
      getValueClass in interface Checker<Object>
      Returns:
      The class of tested values.
    • test

      public boolean test(Object value)
      Specified by:
      test in interface Checker<Object>
      Specified by:
      test in interface Predicate<Object>
    • explain

      public String explain(boolean result, String argName)
      Description copied from interface: Checker
      Explains the conditions at which a positive or negative result is obtained.
      Specified by:
      explain in interface Checker<Object>
      Parameters:
      result - The result to explain.
      argName - The argument name to use in explanations.
      Returns:
      A string explaining the conditions leading to result.