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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanResolve(String toEvaluate) Return if this display-value can be evaluated.Evaluate the resource and return it as string
- 
Constructor Details- 
ConstantDisplayEvalutorpublic ConstantDisplayEvalutor()
 
- 
- 
Method Details- 
evaluateDescription copied from interface:DisplayEvaluatorEvaluate the resource and return it as string- Specified by:
- evaluatein interface- DisplayEvaluator
- Parameters:
- toEvaluate- the resource-identifier @return the resource, non-null
- Returns:
- text, non-null
 
- 
canResolveDescription copied from interface:DisplayEvaluatorReturn 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:
- canResolvein interface- DisplayEvaluator
- Returns:
- true/false
 
 
-