|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.ocltf.ExpressionTranslator
The "OCL" translator class that all translations are performed through. This is the entry point to the framework.
| Constructor Summary | |
ExpressionTranslator()
|
|
| Method Summary | |
void |
initialize()
Initializes the ExpressionTranslator. |
static ExpressionTranslator |
instance()
Gets the shared ExpressionTranslator instance. |
Expression |
translate(java.lang.String translationName,
java.lang.Object contextElement,
java.lang.String expression)
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(java.lang.String translationName,
java.lang.Object contextElement,
java.lang.String expression)
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.contextElement - the element which provides the context of this expression. This
is passed from the model.expression - the actual expression to translate.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||