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 MetamodelManagerInternalpublic void addExternal2AS(External2AS es2as)
addExternal2AS in interface MetamodelManagerInternalpublic void addGenModel(GenModel genModel)
addGenModel in interface MetamodelManagerInternalpublic void addGenPackage(GenPackage genPackage)
public Namespace addGlobalNamespace(String name, Namespace namespace)
addGlobalNamespace in interface MetamodelManagerInternalpublic 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 MetamodelManagerInternalpublic 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 MetamodelManagerInternalpublic 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 MetamodelManagerpublic Element getASElement(URI uri)
@Deprecated public <T extends Element> T getASOf(Class<T> pivotClass, EObject eObject) throws ParserException
getASOf in interface MetamodelManagerParserExceptionpublic <T extends Element> T getASOfEcore(Class<T> pivotClass, EObject eObject)
getASOfEcore in interface MetamodelManagerpublic Package getASmetamodel()
getASmetamodel in interface MetamodelManagerInternalpublic ResourceSet getASResourceSet()
getASResourceSet in interface MetamodelManagerpublic Iterable<CompletePackageInternal> getAllCompletePackages()
public Iterable<Constraint> getAllInvariants(Type pivotType)
getAllInvariants in interface MetamodelManagerInternalpublic 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 MetamodelManagerInternalpublic Type getCommonType(Type leftType, TemplateParameterSubstitutions leftSubstitutions, Type rightType, TemplateParameterSubstitutions rightSubstitutions)
public CompleteClassInternal getCompleteClass(Type pivotType)
getCompleteClass in interface MetamodelManagerInternalpublic CompleteEnvironmentInternal getCompleteEnvironment()
public CompleteModelInternal getCompleteModel()
getCompleteModel in interface MetamodelManagerInternalgetCompleteModel in interface MetamodelManagerpublic CompletePackage getCompletePackage(Package asPackage)
getCompletePackage in interface MetamodelManagerInternalpublic ExpressionInOCL getDefaultExpression(Property property)
public <T extends EObject> T getEcoreOfPivot(Class<T> ecoreClass, Element element)
getEcoreOfPivot in interface MetamodelManagerpublic ElementExtension getElementExtension(Element asStereotypedElement, Stereotype asStereotype)
public EnvironmentFactoryInternal getEnvironmentFactory()
getEnvironmentFactory in interface MetamodelManagerInternalgetEnvironmentFactory in interface MetamodelManagerpublic Class getEquivalentClass(Model thisModel, Class thatClass)
public External2AS getES2AS(Resource esResource)
public FinalAnalysis getFinalAnalysis()
getFinalAnalysis in interface MetamodelManagerInternal.MetamodelManagerInternalExtension2public FlowAnalysis getFlowAnalysis(OCLExpression oclExpression)
getFlowAnalysis in interface MetamodelManagerInternal.MetamodelManagerInternalExtension2public GenPackage getGenPackage(String nsURI)
getGenPackage in interface MetamodelManagerInternalpublic 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.MetamodelManagerInternalExtensionpublic 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 MetamodelManagerpublic Package getPrimaryPackage(String nsURI, String... subPackagePath)
public Package getPrimaryPackage(Package aPackage)
getPrimaryPackage in interface MetamodelManagerpublic Property getPrimaryProperty(Property pivotProperty)
getPrimaryProperty in interface MetamodelManagerpublic Class getPrimaryClass(Class type)
getPrimaryClass in interface MetamodelManagerpublic Class getPrimaryType(String nsURI, String path, String... extraPath)
getPrimaryType in interface MetamodelManagerInternalpublic ASResource getResource(URI uri, String contentType)
public StandardLibraryInternal getStandardLibrary()
getStandardLibrary in interface MetamodelManagerInternalgetStandardLibrary in interface MetamodelManagerpublic 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 MetamodelManagerInternalpublic 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 MetamodelManagerInternalParserExceptionpublic 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 MetamodelManagerParserException - if text parsing failspublic void removeExternalResource(External2AS external2as)
public void removeExternalResource(Resource esResource)
public void resetFinalAnalysis()
resetFinalAnalysis in interface MetamodelManagerInternal.MetamodelManagerInternalExtension2public void resetFlowAnalysis()
resetFlowAnalysis in interface MetamodelManagerInternal.MetamodelManagerInternalExtension2public 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.