public class PivotMetamodelManager extends Object implements MetamodelManagerInternal.MetamodelManagerInternalExtension2
Modifier and Type | Class and Description |
---|---|
class |
PivotMetamodelManager.CompleteClassPropertiesIterable |
class |
PivotMetamodelManager.CompleteElementInvariantsIterable |
class |
PivotMetamodelManager.CompleteTypeOperationsIterable |
MetamodelManagerInternal.MetamodelManagerInternalExtension, MetamodelManagerInternal.MetamodelManagerInternalExtension2
Modifier and Type | Field and Description |
---|---|
static List<Constraint> |
EMPTY_CONSTRAINT_LIST |
static List<Element> |
EMPTY_ELEMENT_LIST |
static List<Operation> |
EMPTY_OPERATION_LIST |
static List<Property> |
EMPTY_PROPERTY_LIST |
static List<State> |
EMPTY_STATE_LIST |
static List<TemplateParameter> |
EMPTY_TEMPLATE_PARAMETER_LIST |
static List<Type> |
EMPTY_TYPE_LIST |
static TracingOption |
INSTALL_MODEL |
static WeakHashMap<PivotMetamodelManager,Object> |
liveMetamodelManagers
Leak debugging aid.
|
Constructor and Description |
---|
PivotMetamodelManager(EnvironmentFactoryInternal environmentFactory,
ResourceSet asResourceSet)
Construct a MetamodelManager that will use environmentFactory to create its artefacts
such as an asResourceSet to contain pivot copies of meta-models.
|
public static final TracingOption INSTALL_MODEL
public static final List<Constraint> EMPTY_CONSTRAINT_LIST
public static final List<TemplateParameter> EMPTY_TEMPLATE_PARAMETER_LIST
public static WeakHashMap<PivotMetamodelManager,Object> liveMetamodelManagers
public PivotMetamodelManager(EnvironmentFactoryInternal environmentFactory, ResourceSet asResourceSet)
public static PivotMetamodelManager findAdapter(ResourceSet asResourceSet)
public static PivotMetamodelManager getAdapter(ResourceSet asResourceSet)
public void addClassLoader(ClassLoader classLoader)
addClassLoader
in interface MetamodelManagerInternal
public void addExternal2AS(External2AS es2as)
addExternal2AS
in interface MetamodelManagerInternal
public void addGenModel(GenModel genModel)
addGenModel
in interface MetamodelManagerInternal
public void addGenPackage(GenPackage genPackage)
public Namespace addGlobalNamespace(String name, Namespace namespace)
addGlobalNamespace
in interface MetamodelManagerInternal
public boolean addGlobalTypes(Collection<Type> types)
public void addLockedElement(Object lockedElement)
addLockedElement
in interface MetamodelManagerInternal
@Deprecated public void assignLibraryIds(AS2XMIid as2xmIid, Map<String,Object> options)
public int compareOperationMatches(Operation reference, TemplateParameterSubstitutions referenceBindings, Operation candidate, TemplateParameterSubstitutions candidateBindings)
public boolean conformsTo(Type firstType, TemplateParameterSubstitutions firstSubstitutions, Type secondType, TemplateParameterSubstitutions secondSubstitutions)
conformsTo
in interface MetamodelManagerInternal
public BooleanLiteralExp createBooleanLiteralExp(boolean booleanSymbol)
public IfExp createIfExp(OperationCallExp asCondition, OCLExpression asThen, OCLExpression asElse)
public IfExp createIfExp(OCLExpression asCondition, OCLExpression asThen, OCLExpression asElse)
public IntegerLiteralExp createIntegerLiteralExp(Number integerSymbol)
public InvalidLiteralExp createInvalidExpression()
public NullLiteralExp createNullLiteralExp()
public Orphanage createOrphanage()
@Deprecated public ParserContext createParserContext(Element element, Object... todoParameters)
createParserContext
in interface MetamodelManagerInternal
public RealLiteralExp createRealLiteralExp(Number realSymbol)
public StringLiteralExp createStringLiteralExp(String stringSymbol)
public UnlimitedNaturalLiteralExp createUnlimitedNaturalLiteralExp(Number unlimitedNaturalSymbol)
public WildcardType createWildcardType(Class lowerBound, Class upperBound)
public void dispose()
public Class getASClass(String className)
getASClass
in interface MetamodelManager
public Element getASElement(URI uri)
@Deprecated public <T extends Element> T getASOf(Class<T> pivotClass, EObject eObject) throws ParserException
getASOf
in interface MetamodelManager
ParserException
public <T extends Element> T getASOfEcore(Class<T> pivotClass, EObject eObject)
getASOfEcore
in interface MetamodelManager
public Package getASmetamodel()
getASmetamodel
in interface MetamodelManagerInternal
public ResourceSet getASResourceSet()
getASResourceSet
in interface MetamodelManager
public Iterable<CompletePackageInternal> getAllCompletePackages()
public Iterable<Constraint> getAllInvariants(Type pivotType)
getAllInvariants
in interface MetamodelManagerInternal
public Iterable<Operation> getAllOperations(Type type, FeatureFilter featureFilter)
public Iterable<Operation> getAllOperations(Type type, FeatureFilter featureFilter, String name)
public Iterable<? extends Property> getAllProperties(Type type, FeatureFilter featureFilter)
public Iterable<? extends Property> getAllProperties(Type type, FeatureFilter featureFilter, String name)
public Iterable<CompleteClass> getAllSuperCompleteClasses(Type type)
@Deprecated public Iterable<Class> getAllTypes(Class pivotType)
@Deprecated public Iterable<Type> getAllTypes(Type pivotType)
public ExpressionInOCL getBodyExpression(Operation operation)
public CollectionType getCollectionType(boolean isOrdered, boolean isUnique)
public CollectionType getCollectionType(boolean isOrdered, boolean isUnique, Type elementType, boolean isNullFree, IntegerValue lower, UnlimitedNaturalValue upper)
@Deprecated public Class getCollectionType(String collectionTypeName, Type elementType, IntegerValue lower, UnlimitedNaturalValue upper)
public Class getCollectionType(String collectionTypeName, Type elementType, boolean isNullFree, IntegerValue lower, UnlimitedNaturalValue upper)
getCollectionType
in interface MetamodelManagerInternal
public Type getCommonType(Type leftType, TemplateParameterSubstitutions leftSubstitutions, Type rightType, TemplateParameterSubstitutions rightSubstitutions)
public CompleteClassInternal getCompleteClass(Type pivotType)
getCompleteClass
in interface MetamodelManagerInternal
public CompleteEnvironmentInternal getCompleteEnvironment()
public CompleteModelInternal getCompleteModel()
getCompleteModel
in interface MetamodelManagerInternal
getCompleteModel
in interface MetamodelManager
public CompletePackage getCompletePackage(Package asPackage)
getCompletePackage
in interface MetamodelManagerInternal
public ExpressionInOCL getDefaultExpression(Property property)
public <T extends EObject> T getEcoreOfPivot(Class<T> ecoreClass, Element element)
getEcoreOfPivot
in interface MetamodelManager
public ElementExtension getElementExtension(Element asStereotypedElement, Stereotype asStereotype)
public EnvironmentFactoryInternal getEnvironmentFactory()
getEnvironmentFactory
in interface MetamodelManagerInternal
getEnvironmentFactory
in interface MetamodelManager
public Class getEquivalentClass(Model thisModel, Class thatClass)
public External2AS getES2AS(Resource esResource)
public FinalAnalysis getFinalAnalysis()
getFinalAnalysis
in interface MetamodelManagerInternal.MetamodelManagerInternalExtension2
public FlowAnalysis getFlowAnalysis(OCLExpression oclExpression)
getFlowAnalysis
in interface MetamodelManagerInternal.MetamodelManagerInternalExtension2
public GenPackage getGenPackage(String nsURI)
getGenPackage
in interface MetamodelManagerInternal
public LibraryFeature getImplementation(Feature feature) throws ClassNotFoundException, SecurityException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException
public LibraryFeature getImplementation(Operation operation)
@Deprecated public LibraryProperty getImplementation(Object sourceValue, Property property)
public LibraryProperty getImplementation(Element asNavigationExp, Object sourceValue, Property property)
getImplementation
in interface MetamodelManagerInternal.MetamodelManagerInternalExtension
public ImplementationManager getImplementationManager()
public Precedence getInfixPrecedence(String operatorName)
public CompleteInheritance getInheritance(Class type)
public Resource getLibraryResource()
public <T extends Class> T getLibraryType(T libraryType, List<? extends Type> templateArguments)
public Iterable<Constraint> getLocalInvariants(Class type)
public EObject getLockingObject()
public Iterable<Operation> getMemberOperations(Class type, boolean selectStatic)
public Iterable<? extends CompletePackage> getMemberPackages(Package pkg)
public Iterable<? extends Operation> getOperationOverloads(Operation pivotOperation)
public Iterable<? extends Package> getPartialPackages(Package pkg, boolean loadASmetamodelFirst)
public Precedence getPrefixPrecedence(String operatorName)
public <T extends EObject> T getPrimaryElement(T element)
public Operation getPrimaryOperation(Operation pivotOperation)
getPrimaryOperation
in interface MetamodelManager
public Package getPrimaryPackage(String nsURI, String... subPackagePath)
public Package getPrimaryPackage(Package aPackage)
getPrimaryPackage
in interface MetamodelManager
public Property getPrimaryProperty(Property pivotProperty)
getPrimaryProperty
in interface MetamodelManager
public Class getPrimaryClass(Class type)
getPrimaryClass
in interface MetamodelManager
public Class getPrimaryType(String nsURI, String path, String... extraPath)
getPrimaryType
in interface MetamodelManagerInternal
public ASResource getResource(URI uri, String contentType)
public StandardLibraryInternal getStandardLibrary()
getStandardLibrary
in interface MetamodelManagerInternal
getStandardLibrary
in interface MetamodelManager
public Iterable<CompleteClass> getSuperCompleteClasses(Class pivotType)
public Iterable<CompleteClass> getSuperCompleteClasses(CompleteClass completeClass)
public ResourceSet getTarget()
public void installPropertyDeclaration(Property thisProperty)
public void installResource(Resource asResource)
public void installRoot(Model pivotModel)
installRoot
in interface MetamodelManagerInternal
public boolean isAdapterForType(Object type)
public boolean isLibraryLoadInProgress()
public boolean isSuperCompleteClassOf(CompleteClass unspecializedFirstType, CompleteClass secondType)
public boolean isTypeServeable(Type type)
public Resource loadDefaultLibrary(String uri)
public Element loadResource(URI uri, String zzalias, ResourceSet resourceSet) throws ParserException
loadResource
in interface MetamodelManagerInternal
ParserException
public LibraryFeature lookupImplementation(Operation dynamicOperation) throws SecurityException, IllegalArgumentException, ClassNotFoundException, NoSuchFieldException, IllegalAccessException
public void notifyChanged(Notification notification)
@Deprecated public ExpressionInOCL parseSpecification(LanguageExpression specification) throws ParserException
parseSpecification
in interface MetamodelManager
ParserException
- if text parsing failspublic void removeExternalResource(External2AS external2as)
public void removeExternalResource(Resource esResource)
public void resetFinalAnalysis()
resetFinalAnalysis
in interface MetamodelManagerInternal.MetamodelManagerInternalExtension2
public void resetFlowAnalysis()
resetFlowAnalysis
in interface MetamodelManagerInternal.MetamodelManagerInternalExtension2
public void setASmetamodel(Package asPackage)
public void setAutoLoadASmetamodel(boolean autoLoadASmetamodel)
public void setLibraryLoadInProgress(boolean libraryLoadInProgress)
public void setMetamodelNsURI(String metaNsURI)
public void setTarget(Notifier newTarget)
public Type specializeType(Type type, CallExp callExp, Type selfType, Type selfTypeValue)
public void unsetTarget(Notifier oldTarget)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.