|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.andromda.core.translation.ExpressionTranslator
The expression translator class that all translations are performed through. This is the entry point to expression (OCL, etc) translation.
| Constructor Summary | |
ExpressionTranslator()
|
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ExpressionTranslator()
| Method Detail |
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.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||