Class ConstantDisplayEvalutor
java.lang.Object
ch.tocco.nice2.model.base.impl.display.ConstantDisplayEvalutor
- All Implemented Interfaces:
DisplayEvaluator
A display-evaluator which just displays a constant string.
Intended for stuff like seperation-characters like'/', '-' etc
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canResolve
(String toEvaluate) Return if this display-value can be evaluated.Evaluate the resource and return it as string
-
Constructor Details
-
ConstantDisplayEvalutor
public ConstantDisplayEvalutor()
-
-
Method Details
-
evaluate
Description copied from interface:DisplayEvaluator
Evaluate the resource and return it as string- Specified by:
evaluate
in interfaceDisplayEvaluator
- Parameters:
toEvaluate
- the resource-identifier @return the resource, non-null- Returns:
- text, non-null
-
canResolve
Description copied from interface:DisplayEvaluator
Return if this display-value can be evaluated. If it cannot, theDisplayEvaluator.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.- Specified by:
canResolve
in interfaceDisplayEvaluator
- Returns:
- true/false
-