|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ocl.examples.domain.types.AbstractStandardLibrary org.eclipse.ocl.examples.pivot.manager.PivotStandardLibrary org.eclipse.ocl.examples.pivot.manager.MetaModelManager
public class MetaModelManager
Nested Class Summary | |
---|---|
class |
MetaModelManager.CompleteClassPropertiesIterable
|
class |
MetaModelManager.CompleteClassSuperClassesIterable
|
class |
MetaModelManager.CompleteElementCommentsIterable
|
class |
MetaModelManager.CompleteElementConstraintsIterable
|
class |
MetaModelManager.CompletePackagePackagesIterable
|
class |
MetaModelManager.CompletePackageTypesIterable
|
class |
MetaModelManager.CompleteTypeOperationsIterable
|
static interface |
MetaModelManager.Factory
An OrphanClient adapts an EObject with an eReference to an OrphanServer within the domina of a TypeCache. |
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter |
---|
org.eclipse.emf.common.notify.Adapter.Internal |
Field Summary | |
---|---|
protected org.eclipse.emf.ecore.resource.impl.ResourceSetImpl |
externalResourceSet
|
protected java.util.List<Library> |
pivotLibraries
All Library packages imported into the current type managed domain. |
protected org.eclipse.emf.ecore.resource.Resource |
pivotLibraryResource
The resource of the first of the pivotLibraries. |
protected Package |
pivotMetaModel
|
protected org.eclipse.emf.ecore.resource.ResourceSet |
pivotResourceSet
|
Fields inherited from class org.eclipse.ocl.examples.pivot.manager.PivotStandardLibrary |
---|
DEFAULT_OCL_STDLIB_URI, defaultStandardLibraryURI |
Constructor Summary | |
---|---|
MetaModelManager()
|
|
MetaModelManager(org.eclipse.emf.ecore.resource.ResourceSet pivotResourceSet)
Construct a MetaModelManager that will use pivotResourceSet to contain pivot copies of meta-models, and ProjectMap.getAdapter(ResourceSet) to assist in locating resources. |
|
MetaModelManager(StandaloneProjectMap projectMap)
Construct a MetaModelManager that will use projectMap to assist in locating resources. |
Method Summary | ||
---|---|---|
void |
addClassLoader(java.lang.ClassLoader classLoader)
|
|
void |
addExternalResource(External2Pivot external2Pivot)
|
|
static void |
addFactory(MetaModelManager.Factory factory)
|
|
Namespace |
addGlobalNamespace(java.lang.String name,
Namespace namespace)
|
|
boolean |
addGlobalTypes(java.util.Collection<Type> types)
|
|
void |
addListener(MetaModelManagerListener listener)
|
|
void |
addLockedElement(java.lang.Object lockedElement)
|
|
void |
addOrphanClass(Type pivotElement)
|
|
void |
addPackage(Package pivotPackage)
|
|
int |
compareOperationMatches(Operation reference,
java.util.Map<TemplateParameter,ParameterableElement> referenceBindings,
Operation candidate,
java.util.Map<TemplateParameter,ParameterableElement> candidateBindings)
Return -ve if match1 is inferior to match2, +ve if match2 is inferior to match1, or zero if both matches are of equal validity. |
|
java.util.Collection<Package> |
computePivotRootPackages()
|
|
boolean |
conformsTo(Type firstType,
Type secondType)
Deprecated. |
|
boolean |
conformsTo(Type firstType,
Type secondType,
java.util.Map<TemplateParameter,ParameterableElement> bindings)
|
|
protected boolean |
conformsToClassifierType(ClassifierType firstType,
ClassifierType secondType,
java.util.Map<TemplateParameter,ParameterableElement> bindings)
|
|
protected boolean |
conformsToCollectionType(CollectionType firstType,
CollectionType secondType,
java.util.Map<TemplateParameter,ParameterableElement> bindings)
|
|
boolean |
conformsToCollectionType(DomainCollectionType firstCollectionType,
DomainCollectionType secondCollectionType)
|
|
protected boolean |
conformsToLambdaType(LambdaType actualType,
LambdaType requiredType,
java.util.Map<TemplateParameter,ParameterableElement> bindings)
|
|
protected boolean |
conformsToTupleType(TupleType actualType,
TupleType requiredType,
java.util.Map<TemplateParameter,ParameterableElement> bindings)
|
|
protected ImplementationManager |
createImplementationManager()
|
|
InvalidLiteralExp |
createInvalidExpression()
|
|
protected LambdaTypeManager |
createLambdaManager()
|
|
Model |
createModel(java.lang.String string,
java.lang.String nsURI)
|
|
protected org.eclipse.emf.ecore.resource.Resource |
createOrphanage()
|
|
|
createPackage(java.lang.Class<T> pivotClass,
org.eclipse.emf.ecore.EClass pivotEClass,
java.lang.String name,
java.lang.String nsURI)
|
|
protected PackageManager |
createPackageManager()
|
|
protected PrecedenceManager |
createPrecedenceManager()
|
|
org.eclipse.emf.ecore.resource.Resource |
createResource(org.eclipse.emf.common.util.URI uri,
java.lang.String contentType)
|
|
protected TupleTypeManager |
createTupleManager()
|
|
UnspecifiedType |
createUnspecifiedType()
|
|
protected ValueFactory |
createValueFactory()
|
|
void |
dispose()
|
|
static MetaModelManager |
findAdapter(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
|
|
PackageTracker |
findPackageTracker(Package pivotPackage)
|
|
TypeTracker |
findTypeTracker(Type pivotType)
|
|
static MetaModelManager |
getAdapter(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
|
|
java.lang.Iterable<Constraint> |
getAllConstraints(Type pivotType)
Return all constraints applicable to a type and its superclasses. |
|
protected java.util.Set<Constraint> |
getAllConstraints(Type type,
java.util.Set<Constraint> knownConstraints)
|
|
java.lang.Iterable<Operation> |
getAllOperations(Operation pivotOperation)
|
|
java.lang.Iterable<Package> |
getAllPackages()
|
|
java.lang.Iterable<Package> |
getAllPackages(Package pkg,
boolean loadPivotMetaModelFirst)
|
|
java.lang.Iterable<Property> |
getAllProperties(Property pivotProperty)
|
|
java.lang.Iterable<Type> |
getAllTypes(Type pivotType)
|
|
CollectionType |
getBagType(DomainType elementType)
Return the instance of the Bag metatype whose elements are of elementType. |
|
CollectionType |
getBagType(Type elementType)
|
|
ClassifierType |
getClassifierType(DomainType instanceType)
Return the instance of the Classifier metatype whose class is classType. |
|
ClassifierType |
getClassifierType(Type instanceType)
|
|
CollectionType |
getCollectionType(boolean isOrdered,
boolean isUnique)
|
|
CollectionType |
getCollectionType(boolean isOrdered,
boolean isUnique,
Type elementType)
|
|
CollectionType |
getCollectionType(DomainType genericType,
DomainType elementType)
|
|
Type |
getCollectionType(java.lang.String collectionTypeName,
Type elementType)
|
|
java.util.List<Type> |
getCommonClasses(Type leftClass,
Type rightClass)
|
|
Type |
getCommonType(Type leftType,
Type rightType,
java.util.Map<TemplateParameter,ParameterableElement> templateParameterSubstitutions)
|
|
java.lang.String |
getDefaultStandardLibraryURI()
|
|
org.eclipse.emf.ecore.resource.ResourceSet |
getExternalResourceSet()
|
|
java.util.Set<java.util.Map.Entry<java.lang.String,Namespace>> |
getGlobalNamespaces()
|
|
java.lang.Iterable<Type> |
getGlobalTypes()
|
|
LibraryFeature |
getImplementation(Feature feature)
|
|
LibraryFeature |
getImplementation(Operation operation)
|
|
LibraryFeature |
getImplementation(Property property)
|
|
ImplementationManager |
getImplementationManager()
|
|
Precedence |
getInfixPrecedence(java.lang.String operatorName)
|
|
ReflectiveType |
getInheritance(DomainType type)
Return the Inheritance dispatch table for a given type. |
|
LambdaTypeManager |
getLambdaManager()
|
|
LambdaType |
getLambdaType(java.lang.String typeName,
Type contextType,
java.util.List<? extends Type> parameterTypes,
Type resultType,
java.util.Map<TemplateParameter,ParameterableElement> bindings)
|
|
java.util.List<Library> |
getLibraries()
|
|
org.eclipse.emf.ecore.resource.Resource |
getLibraryResource()
|
|
Type |
getLibraryType(java.lang.String string,
java.util.List<? extends ParameterableElement> templateArguments)
|
|
|
getLibraryType(T libraryType,
java.util.List<? extends ParameterableElement> templateArguments)
|
|
java.lang.Iterable<Type> |
getLocalClasses(Package pkg)
|
|
java.lang.Iterable<Comment> |
getLocalComments(Operation operation)
|
|
java.lang.Iterable<Comment> |
getLocalComments(Property property)
|
|
java.lang.Iterable<Comment> |
getLocalComments(Type type)
|
|
java.lang.Iterable<Constraint> |
getLocalConstraints(Operation operation)
|
|
java.lang.Iterable<Constraint> |
getLocalConstraints(Property property)
|
|
java.lang.Iterable<Constraint> |
getLocalConstraints(Type type)
|
|
java.lang.Iterable<Operation> |
getLocalOperations(Type type,
java.lang.Boolean selectStatic)
|
|
java.lang.Iterable<Package> |
getLocalPackages(Package pkg)
|
|
java.lang.Iterable<Property> |
getLocalProperties(Type type,
java.lang.Boolean selectStatic)
|
|
org.eclipse.emf.ecore.EObject |
getLockingObject()
|
|
MetaModelManager |
getMetaModelManager()
|
|
DomainType |
getMetaType(DomainType instanceType)
Returns the meta-type of a given type. |
|
DomainType |
getOclType(java.lang.String typeName)
|
|
CollectionType |
getOrderedSetType(DomainType elementType)
Return the instance of the OrderedSet metatype whose elements are of elementType. |
|
CollectionType |
getOrderedSetType(Type elementType)
|
|
PackageManager |
getPackageManager()
|
|
PackageTracker |
getPackageTracker(Package pivotPackage)
|
|
Package |
getPivotMetaModel()
|
|
|
getPivotOfEcore(java.lang.Class<T> pivotClass,
org.eclipse.emf.ecore.EObject eObject)
|
|
org.eclipse.emf.ecore.resource.ResourceSet |
getPivotResourceSet()
|
|
Type |
getPivotType(java.lang.String className)
Return the pivot model class for className with the Pivot Model. |
|
protected PrecedenceManager |
getPrecedenceManager()
|
|
java.lang.Iterable<? extends Nameable> |
getPrecedences(Package pivotPackage)
|
|
Precedence |
getPrefixPrecedence(java.lang.String operatorName)
|
|
|
getPrimaryElement(T element)
|
|
Operation |
getPrimaryOperation(Operation pivotOperation)
|
|
Package |
getPrimaryPackage(Package pivotPackage)
|
|
Package |
getPrimaryPackage(Package parentPackage,
java.lang.String subPackageName)
Lookup a primary sub-package. |
|
Package |
getPrimaryPackage(java.lang.String nsURI,
java.lang.String... subPackagePath)
Lookup a primary package by its URI and optionally a sub-package path. |
|
Property |
getPrimaryProperty(Property pivotProperty)
|
|
Type |
getPrimaryType(Package parentPackage,
java.lang.String typeName)
Lookup a primary type. |
|
Type |
getPrimaryType(java.lang.String nsURI,
java.lang.String path,
java.lang.String... extraPath)
|
|
Type |
getPrimaryType(Type pivotType)
|
|
org.eclipse.emf.common.util.URI |
getResourceIdentifier(java.lang.Object uniqueContext,
java.lang.String subContext)
Return the URI to be used for a concrete syntax resource for an expression associated with a uniqueContext. |
|
CollectionType |
getSequenceType(DomainType elementType)
Return the instance of the Sequence metatype whose elements are of elementType. |
|
CollectionType |
getSequenceType(Type elementType)
|
|
CollectionType |
getSetType(DomainType elementType)
Return the instance of the Set metatype whose elements are of elementType. |
|
CollectionType |
getSetType(Type elementType)
|
|
protected Type |
getSpecializedLambdaType(LambdaType type,
java.util.Map<TemplateParameter,ParameterableElement> usageBindings)
|
|
Type |
getSpecializedType(Type type,
java.util.Map<TemplateParameter,ParameterableElement> usageBindings)
|
|
protected
|
getSpecializedTypeServer(T unspecializedType,
java.util.List<? extends ParameterableElement> templateArguments)
|
|
java.lang.Iterable<Type> |
getSuperClasses(Type pivotType)
|
|
org.eclipse.emf.ecore.resource.ResourceSet |
getTarget()
|
|
TupleTypeManager |
getTupleManager()
|
|
DomainTupleType |
getTupleType(java.util.List<? extends DomainTypedElement> parts)
Obtains the instance of the TupleType metatype for the given list of parts,
which must be alphabetical order by name. |
|
TupleType |
getTupleType(java.lang.String typeName,
java.util.Collection<? extends DomainTypedElement> parts,
java.util.Map<TemplateParameter,ParameterableElement> bindings)
|
|
TupleType |
getTupleType(TupleType tupleType,
java.util.Map<TemplateParameter,ParameterableElement> bindings)
|
|
DomainType |
getType(DomainElement element)
|
|
Type |
getType(DomainType dType)
|
|
DomainType |
getType(org.eclipse.emf.ecore.EClassifier eClassifier)
|
|
TypeServer |
getTypeServer(Type pivotType)
|
|
TypeTracker |
getTypeTracker(Type pivotType)
|
|
Type |
getTypeWithMultiplicity(TypedMultiplicityElement element)
|
|
ValueFactory |
getValueFactory()
|
|
static void |
initializePivotResourceSet(org.eclipse.emf.ecore.resource.ResourceSet pivotResourceSet)
|
|
protected void |
installLibrary(Library pivotLibrary)
|
|
void |
installPackage(Package pivotPackage)
|
|
void |
installPropertyDeclaration(Property thisProperty)
Create implicit an opposite property if there is no explicit opposite. |
|
void |
installResource(org.eclipse.emf.ecore.resource.Resource pivotResource)
|
|
boolean |
isAdapterFor(MetaModelManager metaModelManager)
|
|
boolean |
isAdapterForType(java.lang.Object type)
|
|
boolean |
isSuperClassOf(Type unspecializedFirstType,
Type secondType)
|
|
boolean |
isUnderspecified(ParameterableElement type)
Retyurn true if this type involves an UnspecifiedType. |
|
protected boolean |
isUnspecialized(java.util.List<TemplateParameter> templateParameters,
java.util.List<? extends ParameterableElement> templateArguments)
|
|
protected void |
lazyLoadPivotMetaModel()
|
|
protected org.eclipse.emf.ecore.resource.Resource |
loadDefaultLibrary(java.lang.String uri)
|
|
void |
loadLibrary(org.eclipse.emf.ecore.resource.Resource pivotResource)
|
|
protected void |
loadLibraryPackage(Package pivotPackage)
|
|
protected void |
loadPivotMetaModel(Library pivotLibrary)
|
|
Element |
loadResource(org.eclipse.emf.ecore.resource.Resource resource,
java.lang.String fragmentURI)
|
|
Element |
loadResource(org.eclipse.emf.common.util.URI uri,
java.lang.String alias,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
|
|
LibraryFeature |
lookupImplementation(DomainOperation dynamicOperation)
|
|
void |
notifyChanged(org.eclipse.emf.common.notify.Notification notification)
|
|
void |
removeExternalResource(External2Pivot external2Pivot)
|
|
void |
removeListener(MetaModelManagerListener listener)
|
|
protected void |
resolveAllOperations(java.util.Set<Operation> allOperations,
Type forType,
java.lang.Boolean selectStatic,
java.lang.String operationName,
java.util.List<Parameter> parameters,
java.util.Set<Type> alreadyVisited)
Return all matching operations. |
|
Operation |
resolveBaseOperation(Operation operation)
Return the un-overloaded operation. |
|
java.util.Set<Operation> |
resolveLocalOperation(Type pivotClass,
java.lang.String operationName,
Type... pivotArguments)
|
|
Operation |
resolveOperation(Type leftType,
java.lang.String operationName,
Type... rightTypes)
|
|
java.util.Set<Operation> |
resolveOperations(Type pivotClass,
java.lang.String operationName,
Type... pivotArguments)
|
|
void |
setDefaultStandardLibraryURI(java.lang.String defaultStandardLibraryURI)
|
|
void |
setLibraryLoadInProgress(boolean libraryLoadInProgress)
|
|
void |
setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
|
|
void |
unsetTarget(org.eclipse.emf.common.notify.Notifier oldTarget)
|
Methods inherited from class org.eclipse.ocl.examples.domain.types.AbstractStandardLibrary |
---|
conformsToLambdaType, conformsToTupleType, getCollectionType, getEnumeration, getTuplePart, getTupleType, isEqualToCollectionType, isEqualToTupleType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Package pivotMetaModel
protected final org.eclipse.emf.ecore.resource.ResourceSet pivotResourceSet
protected final java.util.List<Library> pivotLibraries
protected org.eclipse.emf.ecore.resource.Resource pivotLibraryResource
protected org.eclipse.emf.ecore.resource.impl.ResourceSetImpl externalResourceSet
Constructor Detail |
---|
public MetaModelManager()
public MetaModelManager(StandaloneProjectMap projectMap)
public MetaModelManager(org.eclipse.emf.ecore.resource.ResourceSet pivotResourceSet)
ProjectMap.getAdapter(ResourceSet)
to assist in locating resources.
Method Detail |
---|
public static void addFactory(MetaModelManager.Factory factory)
public static MetaModelManager findAdapter(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
public static MetaModelManager getAdapter(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
public static void initializePivotResourceSet(org.eclipse.emf.ecore.resource.ResourceSet pivotResourceSet)
public void addClassLoader(java.lang.ClassLoader classLoader)
public void addExternalResource(External2Pivot external2Pivot)
public Namespace addGlobalNamespace(java.lang.String name, Namespace namespace)
public boolean addGlobalTypes(java.util.Collection<Type> types)
public void addListener(MetaModelManagerListener listener)
public void addLockedElement(java.lang.Object lockedElement)
public void addOrphanClass(Type pivotElement)
public void addPackage(Package pivotPackage)
public int compareOperationMatches(Operation reference, java.util.Map<TemplateParameter,ParameterableElement> referenceBindings, Operation candidate, java.util.Map<TemplateParameter,ParameterableElement> candidateBindings)
@Deprecated public boolean conformsTo(Type firstType, Type secondType)
public boolean conformsTo(Type firstType, Type secondType, java.util.Map<TemplateParameter,ParameterableElement> bindings)
protected boolean conformsToClassifierType(ClassifierType firstType, ClassifierType secondType, java.util.Map<TemplateParameter,ParameterableElement> bindings)
public java.util.Collection<Package> computePivotRootPackages()
public boolean conformsToCollectionType(DomainCollectionType firstCollectionType, DomainCollectionType secondCollectionType)
conformsToCollectionType
in interface DomainStandardLibrary
conformsToCollectionType
in class AbstractStandardLibrary
protected boolean conformsToCollectionType(CollectionType firstType, CollectionType secondType, java.util.Map<TemplateParameter,ParameterableElement> bindings)
protected boolean conformsToLambdaType(LambdaType actualType, LambdaType requiredType, java.util.Map<TemplateParameter,ParameterableElement> bindings)
protected boolean conformsToTupleType(TupleType actualType, TupleType requiredType, java.util.Map<TemplateParameter,ParameterableElement> bindings)
protected ImplementationManager createImplementationManager()
public InvalidLiteralExp createInvalidExpression()
protected LambdaTypeManager createLambdaManager()
public Model createModel(java.lang.String string, java.lang.String nsURI)
protected org.eclipse.emf.ecore.resource.Resource createOrphanage()
public <T extends Package> T createPackage(java.lang.Class<T> pivotClass, org.eclipse.emf.ecore.EClass pivotEClass, java.lang.String name, java.lang.String nsURI)
protected PackageManager createPackageManager()
protected PrecedenceManager createPrecedenceManager()
public org.eclipse.emf.ecore.resource.Resource createResource(org.eclipse.emf.common.util.URI uri, java.lang.String contentType)
protected TupleTypeManager createTupleManager()
public UnspecifiedType createUnspecifiedType()
protected ValueFactory createValueFactory()
public void dispose()
dispose
in class PivotStandardLibrary
public PackageTracker findPackageTracker(Package pivotPackage)
public TypeTracker findTypeTracker(Type pivotType)
public java.lang.Iterable<Constraint> getAllConstraints(Type pivotType)
protected java.util.Set<Constraint> getAllConstraints(Type type, java.util.Set<Constraint> knownConstraints)
public java.lang.Iterable<Operation> getAllOperations(Operation pivotOperation)
public java.lang.Iterable<Package> getAllPackages()
public java.lang.Iterable<Package> getAllPackages(Package pkg, boolean loadPivotMetaModelFirst)
public java.lang.Iterable<Property> getAllProperties(Property pivotProperty)
public java.lang.Iterable<Type> getAllTypes(Type pivotType)
public CollectionType getBagType(DomainType elementType)
DomainStandardLibrary
getBagType
in interface DomainStandardLibrary
public CollectionType getBagType(Type elementType)
public ClassifierType getClassifierType(DomainType instanceType)
DomainStandardLibrary
getClassifierType
in interface DomainStandardLibrary
public ClassifierType getClassifierType(Type instanceType)
public CollectionType getCollectionType(boolean isOrdered, boolean isUnique)
public CollectionType getCollectionType(boolean isOrdered, boolean isUnique, Type elementType)
public Type getCollectionType(java.lang.String collectionTypeName, Type elementType)
public CollectionType getCollectionType(DomainType genericType, DomainType elementType)
public java.util.List<Type> getCommonClasses(Type leftClass, Type rightClass)
public Type getCommonType(Type leftType, Type rightType, java.util.Map<TemplateParameter,ParameterableElement> templateParameterSubstitutions)
public java.lang.String getDefaultStandardLibraryURI()
public org.eclipse.emf.ecore.resource.ResourceSet getExternalResourceSet()
public java.util.Set<java.util.Map.Entry<java.lang.String,Namespace>> getGlobalNamespaces()
public java.lang.Iterable<Type> getGlobalTypes()
public LibraryFeature getImplementation(Feature feature) throws java.lang.ClassNotFoundException, java.lang.SecurityException, java.lang.NoSuchFieldException, java.lang.IllegalArgumentException, java.lang.IllegalAccessException
java.lang.ClassNotFoundException
java.lang.SecurityException
java.lang.NoSuchFieldException
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
public LibraryFeature getImplementation(Operation operation) throws java.lang.ClassNotFoundException, java.lang.SecurityException, java.lang.NoSuchFieldException, java.lang.IllegalArgumentException, java.lang.IllegalAccessException
java.lang.ClassNotFoundException
java.lang.SecurityException
java.lang.NoSuchFieldException
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
public LibraryFeature getImplementation(Property property) throws java.lang.ClassNotFoundException, java.lang.SecurityException, java.lang.NoSuchFieldException, java.lang.IllegalArgumentException, java.lang.IllegalAccessException
java.lang.ClassNotFoundException
java.lang.SecurityException
java.lang.NoSuchFieldException
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
public ImplementationManager getImplementationManager()
public Precedence getInfixPrecedence(java.lang.String operatorName)
public ReflectiveType getInheritance(DomainType type)
DomainStandardLibrary
getInheritance
in interface DomainStandardLibrary
public LambdaTypeManager getLambdaManager()
public LambdaType getLambdaType(java.lang.String typeName, Type contextType, java.util.List<? extends Type> parameterTypes, Type resultType, java.util.Map<TemplateParameter,ParameterableElement> bindings)
public java.util.List<Library> getLibraries()
public org.eclipse.emf.ecore.resource.Resource getLibraryResource()
public Type getLibraryType(java.lang.String string, java.util.List<? extends ParameterableElement> templateArguments)
public <T extends Type> T getLibraryType(T libraryType, java.util.List<? extends ParameterableElement> templateArguments)
public java.lang.Iterable<Type> getLocalClasses(Package pkg)
public java.lang.Iterable<Comment> getLocalComments(Operation operation)
public java.lang.Iterable<Comment> getLocalComments(Property property)
public java.lang.Iterable<Comment> getLocalComments(Type type)
public java.lang.Iterable<Constraint> getLocalConstraints(Operation operation)
public java.lang.Iterable<Constraint> getLocalConstraints(Property property)
public java.lang.Iterable<Constraint> getLocalConstraints(Type type)
public java.lang.Iterable<Operation> getLocalOperations(Type type, java.lang.Boolean selectStatic)
public java.lang.Iterable<Package> getLocalPackages(Package pkg)
public java.lang.Iterable<Property> getLocalProperties(Type type, java.lang.Boolean selectStatic)
public org.eclipse.emf.ecore.EObject getLockingObject()
public MetaModelManager getMetaModelManager()
getMetaModelManager
in interface MetaModelManageable
public DomainType getMetaType(DomainType instanceType)
DomainStandardLibrary
getMetaType
in interface DomainStandardLibrary
getMetaType
in class AbstractStandardLibrary
public DomainType getOclType(java.lang.String typeName)
getOclType
in interface DomainStandardLibrary
public CollectionType getOrderedSetType(DomainType elementType)
DomainStandardLibrary
getOrderedSetType
in interface DomainStandardLibrary
public CollectionType getOrderedSetType(Type elementType)
public PackageManager getPackageManager()
public PackageTracker getPackageTracker(Package pivotPackage)
public Package getPivotMetaModel()
public <T extends NamedElement> T getPivotOfEcore(java.lang.Class<T> pivotClass, org.eclipse.emf.ecore.EObject eObject)
public org.eclipse.emf.ecore.resource.ResourceSet getPivotResourceSet()
public Type getPivotType(java.lang.String className)
protected PrecedenceManager getPrecedenceManager()
public java.lang.Iterable<? extends Nameable> getPrecedences(Package pivotPackage)
public Precedence getPrefixPrecedence(java.lang.String operatorName)
public <T extends org.eclipse.emf.ecore.EObject> T getPrimaryElement(T element)
public Operation getPrimaryOperation(Operation pivotOperation)
public Package getPrimaryPackage(java.lang.String nsURI, java.lang.String... subPackagePath)
public Package getPrimaryPackage(Package parentPackage, java.lang.String subPackageName)
public Package getPrimaryPackage(Package pivotPackage)
public Property getPrimaryProperty(Property pivotProperty)
public Type getPrimaryType(Type pivotType)
public Type getPrimaryType(java.lang.String nsURI, java.lang.String path, java.lang.String... extraPath)
public Type getPrimaryType(Package parentPackage, java.lang.String typeName)
public org.eclipse.emf.common.util.URI getResourceIdentifier(java.lang.Object uniqueContext, java.lang.String subContext)
public CollectionType getSequenceType(DomainType elementType)
DomainStandardLibrary
getSequenceType
in interface DomainStandardLibrary
public CollectionType getSequenceType(Type elementType)
public CollectionType getSetType(DomainType elementType)
DomainStandardLibrary
getSetType
in interface DomainStandardLibrary
public CollectionType getSetType(Type elementType)
protected Type getSpecializedLambdaType(LambdaType type, java.util.Map<TemplateParameter,ParameterableElement> usageBindings)
public Type getSpecializedType(Type type, java.util.Map<TemplateParameter,ParameterableElement> usageBindings)
protected <T extends Type> T getSpecializedTypeServer(T unspecializedType, java.util.List<? extends ParameterableElement> templateArguments)
public java.lang.Iterable<Type> getSuperClasses(Type pivotType)
public org.eclipse.emf.ecore.resource.ResourceSet getTarget()
getTarget
in interface org.eclipse.emf.common.notify.Adapter
public TupleTypeManager getTupleManager()
public DomainTupleType getTupleType(java.util.List<? extends DomainTypedElement> parts)
DomainStandardLibrary
TupleType
metatype for the given list of parts,
which must be alphabetical order by name.
getTupleType
in interface DomainStandardLibrary
public TupleType getTupleType(java.lang.String typeName, java.util.Collection<? extends DomainTypedElement> parts, java.util.Map<TemplateParameter,ParameterableElement> bindings)
public TupleType getTupleType(TupleType tupleType, java.util.Map<TemplateParameter,ParameterableElement> bindings)
public DomainType getType(DomainElement element)
getType
in interface DomainStandardLibrary
getType
in class AbstractStandardLibrary
public Type getType(DomainType dType)
public DomainType getType(org.eclipse.emf.ecore.EClassifier eClassifier)
getType
in interface DomainStandardLibrary
public TypeServer getTypeServer(Type pivotType)
public TypeTracker getTypeTracker(Type pivotType)
public Type getTypeWithMultiplicity(TypedMultiplicityElement element)
public ValueFactory getValueFactory()
protected void installLibrary(Library pivotLibrary)
public void installPackage(Package pivotPackage)
public void installPropertyDeclaration(Property thisProperty)
public void installResource(org.eclipse.emf.ecore.resource.Resource pivotResource)
public boolean isAdapterFor(MetaModelManager metaModelManager)
protected boolean isUnspecialized(java.util.List<TemplateParameter> templateParameters, java.util.List<? extends ParameterableElement> templateArguments)
protected void lazyLoadPivotMetaModel()
public boolean isAdapterForType(java.lang.Object type)
isAdapterForType
in interface org.eclipse.emf.common.notify.Adapter
public boolean isSuperClassOf(Type unspecializedFirstType, Type secondType)
public boolean isUnderspecified(ParameterableElement type)
protected org.eclipse.emf.ecore.resource.Resource loadDefaultLibrary(java.lang.String uri)
loadDefaultLibrary
in class PivotStandardLibrary
public void loadLibrary(org.eclipse.emf.ecore.resource.Resource pivotResource)
protected void loadLibraryPackage(Package pivotPackage)
protected void loadPivotMetaModel(Library pivotLibrary)
public Element loadResource(org.eclipse.emf.common.util.URI uri, java.lang.String alias, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
public Element loadResource(org.eclipse.emf.ecore.resource.Resource resource, java.lang.String fragmentURI)
public LibraryFeature lookupImplementation(DomainOperation dynamicOperation) throws java.lang.SecurityException, java.lang.IllegalArgumentException, java.lang.ClassNotFoundException, java.lang.NoSuchFieldException, java.lang.IllegalAccessException
java.lang.SecurityException
java.lang.IllegalArgumentException
java.lang.ClassNotFoundException
java.lang.NoSuchFieldException
java.lang.IllegalAccessException
public void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
notifyChanged
in interface org.eclipse.emf.common.notify.Adapter
public void removeExternalResource(External2Pivot external2Pivot)
public void removeListener(MetaModelManagerListener listener)
protected void resolveAllOperations(java.util.Set<Operation> allOperations, Type forType, java.lang.Boolean selectStatic, java.lang.String operationName, java.util.List<Parameter> parameters, java.util.Set<Type> alreadyVisited)
public Operation resolveBaseOperation(Operation operation)
public java.util.Set<Operation> resolveLocalOperation(Type pivotClass, java.lang.String operationName, Type... pivotArguments)
public Operation resolveOperation(Type leftType, java.lang.String operationName, Type... rightTypes)
public java.util.Set<Operation> resolveOperations(Type pivotClass, java.lang.String operationName, Type... pivotArguments)
public void setDefaultStandardLibraryURI(java.lang.String defaultStandardLibraryURI)
public void setLibraryLoadInProgress(boolean libraryLoadInProgress)
public void setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
setTarget
in interface org.eclipse.emf.common.notify.Adapter
public void unsetTarget(org.eclipse.emf.common.notify.Notifier oldTarget)
unsetTarget
in interface org.eclipse.emf.common.notify.Adapter.Internal
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |