public static interface OCL.Helper extends OCLHelper<org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.Constraint>
Modifier and Type | Method and Description |
---|---|
OCLExpression |
createQuery(java.lang.String expression)
Creates a query expression in the current classifier context.
|
OCL |
getOCL()
Obtains the OCL instance that created me.
|
createBodyCondition, createConstraint, createDerivedValueExpression, createInitialValueExpression, createInvariant, createPostcondition, createPrecondition, defineAttribute, defineOperation, getContextAttribute, getContextClassifier, getContextOperation, getEnvironment, getProblems, getSyntaxHelp, isValidating, setAttributeContext, setContext, setInstanceAttributeContext, setInstanceContext, setInstanceOperationContext, setOperationContext, setValidating
OCLExpression createQuery(java.lang.String expression) throws ParserException
The return type is narrowed to the UML binding for the generic OCLExpression<C> type.
createQuery
in interface OCLHelper<org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.Constraint>
expression
- the expression (without any context declaration).
This expression can have any result type; it needs not be a booleanParserException
- if the expression
fails to parseOCL getOCL()
The return type is narrowed to the Ecore binding for the generic OCLExpression<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E> type.