public class ExpressionTranslator extends Object
Constructor and Description |
---|
ExpressionTranslator() |
Modifier and Type | Method and Description |
---|---|
void |
initialize()
Initializes the ExpressionTranslator.
|
static ExpressionTranslator |
instance()
Gets the shared ExpressionTranslator instance.
|
Expression |
translate(String translationName,
String expression,
Object contextElement)
Performs translation of the
expression by looking up the
translationName from the available Translation-Libraries
found on the classpath. |
public ExpressionTranslator()
public static ExpressionTranslator instance()
public void initialize()
public Expression translate(String translationName, String expression, Object contextElement)
expression
by looking up the
translationName
from the available Translation-Libraries
found on the classpath.translationName
- the name of the translation to use for translating
(i.e. a translationName like 'query.EJB-QL' would mean use the
EJB-QL
translation from the query
library.expression
- the actual expression to translate.contextElement
- the element which provides the context of this
expression. This is passed from the model. This can be null.Copyright © 2003–2014 AndroMDA.org. All rights reserved.