01: package org.andromda.core.translation;
02:
03: /**
04: * Provides expression translation capabilities. Every expression translator must implement this interface.
05: *
06: * @author Chad Brandon
07: */
08: public interface Translator {
09: /**
10: * Translates the expression into a translated Expression instance.
11: *
12: * @param translationLibrary the library and translation to lookup perform the translation (i.e. sql.Oracle9i -->
13: * library to use would be "sql" and translation from the sql library would be
14: * 'Oracle9i').
15: * @param contextElement the optional element in the model to which the expression applies (the context element
16: * of an OCL expression for example).
17: * @param expression the expression (OCL, etc) to translate.
18: * @return Expression the expression containing the translated result.
19: * @see org.andromda.core.translation.Expression
20: */
21: public Expression translate(String translationLibrary,
22: String expression, Object contextElement);
23: }
|