Package | Description |
---|---|
org.eclipse.ocl |
Definition of the extensible environment API for OCL parsing and evaluation.
|
org.eclipse.ocl.ecore |
Implementation of an OCL binding for the Ecore metamodel.
|
org.eclipse.ocl.examples.interpreter.console | |
org.eclipse.ocl.helper |
Definition of the OCL Helper API for syntax completion support and a simplified
parsing model for embedded OCL constraints and expressions.
|
org.eclipse.ocl.uml |
Implementation of an OCL binding for the UML metamodel.
|
Modifier and Type | Class and Description |
---|---|
class |
AmbiguousLookupException
A specialized
LookupException denoting specifically that the
problem is multiple ambiguous results. |
class |
InvalidLookupException
A specialized
LookupException denoting specifically that the
problem is a single result that is invalid or otherwise unexpected. |
class |
LookupException
Exception indicating a semantic error in looking up a definition, typically
resulting from an ambiguity.
|
class |
SemanticException
Exception indicating a semantic error in parsing or validating OCL
expressions.
|
class |
SyntaxException
Exception indicating a syntax error in parsing OCL expressions.
|
Modifier and Type | Method and Description |
---|---|
char[] |
OCLInput.getContent()
The contents of the OCL document as a character array, suitable for
consumption by the OCL parser.
|
java.lang.String |
OCLInput.getContentAsString()
The contents of the OCL document as a character array, suitable for
consumption by the OCL parser.
|
java.util.List<CT> |
OCL.parse(OCLInput input)
Parses an OCL document, returning the constraints parsed from it.
|
Modifier and Type | Method and Description |
---|---|
OCLExpression |
OCL.Helper.createQuery(java.lang.String expression)
Creates a query expression in the current classifier context.
|
Modifier and Type | Method and Description |
---|---|
static void |
OCLResource.save(java.lang.String path,
OCLDocument document,
java.lang.String expression)
Saves the specified OCL expression to an XMI file.
|
<C,O,P> ConstraintKind |
ModelingLevel.setContext(OCLHelper<C,O,P,?> helper,
org.eclipse.emf.ecore.EObject element,
IOCLFactory<C> factory)
Set the context of the specified OCL helper to the given element (in the
ModelingLevel.M1 case) or its metaclass (ModelingLevel.M2 case). |
Modifier and Type | Method and Description |
---|---|
CT |
OCLHelper.createBodyCondition(java.lang.String expression)
Creates an operation body.
|
CT |
OCLHelper.createConstraint(ConstraintKind kind,
java.lang.String expression)
Creates a constraint of the specified kind, by parsing the given
expression.
|
CT |
OCLHelper.createDerivedValueExpression(java.lang.String expression)
Creates a property derived value expression.
|
CT |
OCLHelper.createInitialValueExpression(java.lang.String expression)
Creates a property initial value expression.
|
CT |
OCLHelper.createInvariant(java.lang.String expression)
Creates an invariant constraint in the current classifier context.
|
CT |
OCLHelper.createPostcondition(java.lang.String expression)
Creates an operation postcondition constraint.
|
CT |
OCLHelper.createPrecondition(java.lang.String expression)
Creates an operation precondition constraint.
|
OCLExpression<C> |
OCLHelper.createQuery(java.lang.String expression)
Creates a query expression in the current classifier context.
|
P |
OCLHelper.defineAttribute(java.lang.String defExpression)
Defines an additional attribute in the context classifier,
for use in formulating OCL queries and constraints.
|
O |
OCLHelper.defineOperation(java.lang.String defExpression)
Defines an additional operation in the context classifier,
for use in formulating OCL queries and constraints.
|
Modifier and Type | Method and Description |
---|---|
OCLExpression |
OCL.Helper.createQuery(java.lang.String expression)
Creates a query expression in the current classifier context.
|