org.andromda.core.translation
Interface Translator


public interface Translator

Provides expression translation capabilities. Every expression translator must implement this interface.

Author:
Chad Brandon

Method Summary
 Expression translate(java.lang.String translationLibrary, java.lang.String expression, java.lang.Object contextElement)
          Translates the expression into a translated Expression instance.
 

Method Detail

translate

Expression translate(java.lang.String translationLibrary,
                     java.lang.String expression,
                     java.lang.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-2008 AndroMDA.org. All Rights Reserved.