|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Utility classes to ease the generation of OCL queries over EMF models
Method Summary | |
Set |
executeOclStatement(org.eclipse.emf.ecore.EObject self,
org.eclipse.emf.ecore.EClass selfType,
String oclStatement,
org.eclipse.core.runtime.IProgressMonitor monitor)
Executes the OCL statement specified by oclStatement using
self as the context for the statement evaluation. |
Set |
executeQueryUsingOclFilter(org.eclipse.emf.ecore.EObject queryRoot,
org.eclipse.emf.ecore.EClass selfType,
String oclFilter,
org.eclipse.core.runtime.IProgressMonitor monitor)
Executes a query using queryRoot as the root of the
subtree where to perform the search and an OCL filter specified by
oclFilter . |
Method Detail |
public Set executeQueryUsingOclFilter(org.eclipse.emf.ecore.EObject queryRoot, org.eclipse.emf.ecore.EClass selfType, String oclFilter, org.eclipse.core.runtime.IProgressMonitor monitor) throws InterruptedException, InvalidOclExpressionException
queryRoot
as the root of the
subtree where to perform the search and an OCL filter specified by
oclFilter
.EObject
s satisfying the OCL
condition are returned.
queryRoot
- The root element to recusively apply the query toselfType
- Type of the "self" element specified in the query text. Pass
null to specify a context-free OCL query (no syntactic
validation of the OCL expression can be performed in this
case)oclFilter
- The string containing the OCL query textmonitor
- The monitor to use to display progress and/or cancel
EObject
produced by executing
the OCL query
InterruptedException
- The query operation was interrupted
InvalidOclExpressionException
- The specified OCL expression is invalid
IllegalArgumentException
- oclFilter
is an empty string
NullPointerException
- One of the passed parameters was null
public Set executeOclStatement(org.eclipse.emf.ecore.EObject self, org.eclipse.emf.ecore.EClass selfType, String oclStatement, org.eclipse.core.runtime.IProgressMonitor monitor) throws InterruptedException, InvalidOclExpressionException
oclStatement
using
self
as the context for the statement evaluation. The
statement will only be applied to the self without recursing into
children.
self
- The context to use for the OCL statement evaluationselfType
- Type of the self
. Pass null to specify a
context-free OCL statement (no syntactic validation of the OCL
statement can be performed in this case)oclStatement
- The string containing the OCL statementmonitor
- The monitor to use to display progress and/or cancel
Object
produced by executing the OCL
statement, could be EObject
,String
,
null
, anything
InterruptedException
- The query operation was interrupted
InvalidOclExpressionException
- The specified OCL statement is invalid
IllegalArgumentException
- oclStatement
is an empty string
NullPointerException
- One of the passed parameters was null
|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2004. All rights reserved.