org.andromda.core.translation
Interface Translator
- public interface Translator
Provides expression translation capabilities. Every expression translator must implement this interface.
- Author:
- Chad Brandon
translate
public Expression translate(String translationLibrary,
String expression,
Object contextElement)
- Translates the expression into a translated Expression instance.
- Parameters:
translationLibrary - the library and translation to lookup perform the translation (i.e. sql.Oracle9i -->
library to use would be "sql" and translation from the sql library would be
'Oracle9i').contextElement - the optional element in the model to which the expression applies (the context element
of an OCL expression for example).expression - the expression (OCL, etc) to translate.
- Returns:
- Expression the expression containing the translated result.
- See Also:
Expression
Copyright © 2003-2006 The AndroMDA Team. All Rights Reserved.