1 package org.andromda.core.translation; 2 3 /** 4 * Provides expression translation capabilities. Every expression translator must implement this interface. 5 * 6 * @author Chad Brandon 7 */ 8 public interface Translator 9 { 10 /** 11 * Translates the expression into a translated Expression instance. 12 * 13 * @param translationLibrary the library and translation to lookup perform the translation (i.e. sql.Oracle9i: 14 * library to use would be "sql" and translation from the sql library would be 15 * 'Oracle9i'). 16 * @param contextElement the optional element in the model to which the expression applies (the context element 17 * of an OCL expression for example). 18 * @param expression the expression (OCL, etc) to translate. 19 * @return Expression the expression containing the translated result. 20 * @see org.andromda.core.translation.Expression 21 */ 22 public Expression translate( 23 String translationLibrary, 24 String expression, 25 Object contextElement); 26 }