|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ocl.AbstractTypeResolver<EPackage,EClassifier,EOperation,EStructuralFeature,EParameter>
org.eclipse.ocl.ecore.internal.TypeResolverImpl
public class TypeResolverImpl
Ecore implementation of the TypeResolver
interface.
Field Summary |
---|
Fields inherited from class org.eclipse.ocl.AbstractTypeResolver |
---|
ADDITIONS_PACKAGE, COLLECTIONS_PACKAGE, MESSAGES_PACKAGE, TUPLES_PACKAGE, TYPES_PACKAGE |
Constructor Summary | |
---|---|
TypeResolverImpl(EcoreEnvironment env)
Initializes me with an environment. |
|
TypeResolverImpl(EcoreEnvironment env,
Resource resource)
Initializes me with a resource in which I will persist the model-based types that I generate in my associated Environment . |
Method Summary | |
---|---|
protected void |
addClassifier(EPackage pkg,
EClassifier classifier)
Adds a classifier to the specified package, which is one that I use to store OCL-generated types. |
protected void |
addOperation(EClassifier owner,
EOperation operation)
Adds the specified operation to a classifier. |
protected void |
addProperty(EClassifier owner,
EStructuralFeature property)
Adds the specified property to a classifier. |
protected EPackage |
createPackage(String name)
Creates a package with the specified name. |
protected Resource |
createResource()
Creates the resource that persists my generated types. |
protected EClass |
createShadowClass(EClassifier type)
Creates the shadow class to contain additional features defined for the specified OCL type . |
protected EPackage |
createTuplePackage()
Creates the package containing the tuple types that I generate. |
protected EPackage |
findPackage(String name)
Finds the existing package with the specified name in my resource. |
protected EClassifier |
getShadowedClassifier(EClassifier shadow)
Obtains the classifier for which the specified shadow stores additional features. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TypeResolverImpl(EcoreEnvironment env)
env
- the environment that I persistpublic TypeResolverImpl(EcoreEnvironment env, Resource resource)
Environment
.
env
- my environmentresource
- my resourceMethod Detail |
---|
protected Resource createResource()
AbstractTypeResolver
createResource
in class AbstractTypeResolver<EPackage,EClassifier,EOperation,EStructuralFeature,EParameter>
protected EPackage createTuplePackage()
AbstractTypeResolver
createTuplePackage
in class AbstractTypeResolver<EPackage,EClassifier,EOperation,EStructuralFeature,EParameter>
protected EPackage createPackage(String name)
AbstractTypeResolver
createPackage
in class AbstractTypeResolver<EPackage,EClassifier,EOperation,EStructuralFeature,EParameter>
name
- the package name
protected EPackage findPackage(String name)
AbstractTypeResolver
findPackage
in class AbstractTypeResolver<EPackage,EClassifier,EOperation,EStructuralFeature,EParameter>
name
- the package to seek
null
if noneprotected void addClassifier(EPackage pkg, EClassifier classifier)
AbstractTypeResolver
addClassifier
in class AbstractTypeResolver<EPackage,EClassifier,EOperation,EStructuralFeature,EParameter>
pkg
- one of my packagesclassifier
- a classifier to add to itprotected void addOperation(EClassifier owner, EOperation operation)
AbstractTypeResolver
addOperation
in class AbstractTypeResolver<EPackage,EClassifier,EOperation,EStructuralFeature,EParameter>
owner
- the classifier to own the operationoperation
- the operation to add to the classifierprotected void addProperty(EClassifier owner, EStructuralFeature property)
AbstractTypeResolver
addProperty
in class AbstractTypeResolver<EPackage,EClassifier,EOperation,EStructuralFeature,EParameter>
owner
- the classifier to own the propertyproperty
- the property to add to the classifierprotected EClass createShadowClass(EClassifier type)
AbstractTypeResolver
type
.
createShadowClass
in class AbstractTypeResolver<EPackage,EClassifier,EOperation,EStructuralFeature,EParameter>
type
- an OCL type
protected EClassifier getShadowedClassifier(EClassifier shadow)
AbstractTypeResolver
getShadowedClassifier
in class AbstractTypeResolver<EPackage,EClassifier,EOperation,EStructuralFeature,EParameter>
shadow
- a class originally created to shadow a model classifier
AbstractTypeResolver.createShadowClass(Object)
,
AbstractTypeResolver.getShadowClass(Object)
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |