Interface DisplayEvaluator

All Known Subinterfaces:
TextResourceDisplayAndReporter
All Known Implementing Classes:
ConstantDisplayEvalutor, TextResourceDisplayEvaluator

public interface DisplayEvaluator
Evaluate an abstract display-value to a concrete text at runtime.

The implementations has to be THREAD-SAFE!

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canResolve(String toEvaluate)
    Return if this display-value can be evaluated.
    evaluate(String toEvaluate)
    Evaluate the resource and return it as string
  • Method Details

    • evaluate

      String evaluate(String toEvaluate)
      Evaluate the resource and return it as string
      Parameters:
      toEvaluate - the resource-identifier @return the resource, non-null
      Returns:
      text, non-null
    • canResolve

      boolean canResolve(String toEvaluate)
      Return if this display-value can be evaluated. If it cannot, the evaluate(String)-Method still has to return a string. This will may be called allready during the configuration-reading process and out of the evaluation-context. So this method cannot expect a 'real'-evaluation-context to evaluate in.
      Returns:
      true/false