|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.ocl.parser.AbstractEnvironmentFactory org.eclipse.emf.ocl.parser.EcoreEnvironmentFactory
Environment factory for the Ecore metamodel.
Field Summary |
---|
Fields inherited from interface org.eclipse.emf.ocl.parser.EnvironmentFactory |
---|
ECORE_INSTANCE |
Constructor Summary | |
---|---|
protected |
EcoreEnvironmentFactory()
Initializes me. |
|
EcoreEnvironmentFactory(org.eclipse.emf.ecore.EPackage.Registry reg)
Initializes me with an EPackage.Registry |
Method Summary | |
---|---|
protected org.eclipse.emf.ecore.EClassifier |
asEClassifier(java.lang.Object context)
Adapts the specified client metamodel context to the
EClassifier API. |
protected org.eclipse.emf.ecore.EOperation |
asEOperation(java.lang.Object operation)
Adapts the specified client metamodel operation to the
EOperation API. |
protected org.eclipse.emf.ecore.EStructuralFeature |
asEStructuralFeature(java.lang.Object property)
Adapts the specified client metamodel property to the
EStructuralFeature API. |
Environment |
createEnvironment(Environment parent)
Creates a child environment of a specified parent , for
definition of nested scopes. |
protected Environment |
createEnvironment(org.eclipse.emf.ecore.EPackage packageContext)
Creates an environment for OCL constraints in the context of the specified classifier . |
Environment |
createPackageContext(java.util.List pathname)
Creates an environment suitable for parsing OCL expressions in the specified package context. |
Methods inherited from class org.eclipse.emf.ocl.parser.AbstractEnvironmentFactory |
---|
createClassifierContext, createEvaluationEnvironment, createExtentMap, createOperationContext, createPropertyContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected EcoreEnvironmentFactory()
public EcoreEnvironmentFactory(org.eclipse.emf.ecore.EPackage.Registry reg)
EPackage.Registry
Method Detail |
public Environment createPackageContext(java.util.List pathname)
EnvironmentFactory
createPackageContext
in interface EnvironmentFactory
createPackageContext
in class AbstractEnvironmentFactory
protected org.eclipse.emf.ecore.EClassifier asEClassifier(java.lang.Object context)
AbstractEnvironmentFactory
context
to the
EClassifier
API. This might just return the context
if it already is an EClassifier
, or might return its type if it
is an instance of an EClassifier
, or adapt it by some other
means to the EClassifier
API.
asEClassifier
in class AbstractEnvironmentFactory
context
- a classifier in the client metamodel's definition of
what an OCL classifier is, or an instance thereof
protected org.eclipse.emf.ecore.EOperation asEOperation(java.lang.Object operation)
AbstractEnvironmentFactory
operation
to the
EOperation
API.
asEOperation
in class AbstractEnvironmentFactory
operation
- an operation in the client metamodel's definition of
what an OCL operation is
protected org.eclipse.emf.ecore.EStructuralFeature asEStructuralFeature(java.lang.Object property)
AbstractEnvironmentFactory
property
to the
EStructuralFeature
API.
asEStructuralFeature
in class AbstractEnvironmentFactory
property
- a property in the client metamodel's definition of
what an OCL property is
protected Environment createEnvironment(org.eclipse.emf.ecore.EPackage packageContext)
classifier
.
createEnvironment
in class AbstractEnvironmentFactory
packageContext
- the OCL package context (not null
)
public Environment createEnvironment(Environment parent)
EnvironmentFactory
parent
, for
definition of nested scopes.
parent
- the parent environment
|
Copyright 2002, 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |