org.ocltf.translation
Interface Translator
- All Known Implementing Classes:
- BaseTranslator
- public interface Translator
Provides OCL translation capabilities. Every
OCL translator must implement this interface.
- Author:
- Chad Brandon
Field Summary |
static java.lang.String |
CONTEXT_ELEMENT
This is the name of the element "constrained" by the OCL
expression which is made available to the TemplateEngine context. |
Method Summary |
Expression |
translate(java.lang.String translationLibrary,
java.lang.Object contextModelElement,
java.lang.String oclExpression)
Translates the OCL into a translated Expression instance. |
CONTEXT_ELEMENT
public static final java.lang.String CONTEXT_ELEMENT
- This is the name of the element "constrained" by the OCL
expression which is made available to the TemplateEngine context.
(in other words, it will be made available as an scripting element
on a template processed by the TemplateEngine implementation)
- See Also:
- Constant Field Values
translate
public Expression translate(java.lang.String translationLibrary,
java.lang.Object contextModelElement,
java.lang.String oclExpression)
- Translates the OCL 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').contextModelElement
- the element in the model to which
the OCL constraint applies.oclExpression
- the OCL expression to translate.
- Returns:
- Expression
- See Also:
Expression
Copyright © 2003-2004 Chad Brandon. All Rights Reserved.