| |
|
| org.andromda.translation.ocl.BaseTranslator org.andromda.translation.ocl.testsuite.ContextElementFinder
ContextElementFinder | public class ContextElementFinder extends BaseTranslator (Code) | | Finds the context element defined in the OCL expression.
author: Chad Brandon |
Constructor Summary | |
public | ContextElementFinder(ModelAccessFacade model) The Constructor which takes model , which is an instance of ModelAccessFacade that will allow us to
search the model for the context element. |
Method Summary | |
protected boolean | argumentsMatch(OperationDeclaration oclOperation, OperationFacade facadeOperation) Returns true if the arguments contained within oclOperation and facadeOperation match,
false otherwise. | public Object | getContextElement() Returns the context element found in the model from the expression. | public void | inAOperationContextDeclaration(AOperationContextDeclaration declaration) | public void | postProcess() We use the postProcess method to retrieve the contextType from the expression and then find the actual model
element using metafacades. |
operation | protected OperationDeclaration operation(Code) | | The operation that is set if the context of the constraint happens to be an operation.
|
ContextElementFinder | public ContextElementFinder(ModelAccessFacade model)(Code) | | The Constructor which takes model , which is an instance of ModelAccessFacade that will allow us to
search the model for the context element.
Parameters: model - the ModelAccessFacade to search. |
argumentsMatch | protected boolean argumentsMatch(OperationDeclaration oclOperation, OperationFacade facadeOperation)(Code) | | Returns true if the arguments contained within oclOperation and facadeOperation match,
false otherwise.
Parameters: oclOperation - an OCL Operation Parameters: facadeOperation - a metafacade Operation boolean whether the arguments match. |
getContextElement | public Object getContextElement()(Code) | | Returns the context element found in the model from the expression.
the context type as a ModelElementFacade. |
inAOperationContextDeclaration | public void inAOperationContextDeclaration(AOperationContextDeclaration declaration)(Code) | | See Also: org.andromda.core.translation.analysis.DepthFirstAdapter.inAOperationContextDeclaration(org.andromda.core.translation.node.AOperationContextDeclaration) |
Fields inherited from org.andromda.translation.ocl.BaseTranslator | protected Logger logger(Code)(Java Doc)
|
|
|
|