Class DisplayFactoryImpl
java.lang.Object
ch.tocco.nice2.model.entity.impl.entity.defaultdisplay.DisplayFactoryImpl
- All Implemented Interfaces:
DisplayFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionevaluate
(EntityReference entity, DisplayExpression expression) Evaluate a display expression.evaluate
(EntityReference entity, DisplayExpression expression, DefaultDisplay.Options options) Evaluate a display expression with options.evaluate
(EntityReference entity, String expression) Evaluate a expression in the systems default DisplayEvaluatorgetDisplayExpression
(String expression, @Nullable String language) void
setDefaultLanguage
(String defaultLanguage) void
setDisplayEvaluators
(List<DisplayEvaluator> evaluators)
-
Constructor Details
-
DisplayFactoryImpl
public DisplayFactoryImpl()
-
-
Method Details
-
evaluate
Description copied from interface:DisplayFactory
Evaluate a expression in the systems default DisplayEvaluator- Specified by:
evaluate
in interfaceDisplayFactory
-
evaluate
Description copied from interface:DisplayFactory
Evaluate a display expression. Shorthand forDisplayFactory.evaluate(EntityReference, DisplayExpression, DefaultDisplay.Options)
- Specified by:
evaluate
in interfaceDisplayFactory
-
evaluate
public String evaluate(EntityReference entity, DisplayExpression expression, DefaultDisplay.Options options) Description copied from interface:DisplayFactory
Evaluate a display expression with options.- Specified by:
evaluate
in interfaceDisplayFactory
-
getDisplayExpression
public DisplayExpression getDisplayExpression(String expression, @Nullable @Nullable String language) - Specified by:
getDisplayExpression
in interfaceDisplayFactory
-
setDefaultLanguage
@Value("${model.entity.display.factory.default.language}") public void setDefaultLanguage(String defaultLanguage) -
setDisplayEvaluators
-