public interface EnvironmentFactoryInternal extends EnvironmentFactory
This interface is not intended to be implemented to be implemented
"directly" by providers of metamodel bindings.
It is highly recommended to extend the AbstractEnvironmentFactory
class, instead.
Modifier and Type | Interface and Description |
---|---|
static interface |
EnvironmentFactoryInternal.EnvironmentFactoryInternalExtension |
EnvironmentFactory.EnvironmentFactoryExtension
Modifier and Type | Method and Description |
---|---|
void |
addExternal2AS(External2AS external2as) |
void |
addExternalResources(org.eclipse.emf.ecore.resource.ResourceSet externalResourceSet)
Add all resources in ResourceSet to the externalResourceSet.
|
void |
attach(java.lang.Object object) |
void |
configureLoadFirstStrategy()
Configure the PackageRegistry associated with the (external) ResourceSet to use a load strategy that uses whichever of
the namespace or platform URI is first encountered and which suppresses diagnostics about subsequent use of the
other form of URI.
|
void |
configureLoadStrategy(ProjectManager.IResourceLoadStrategy packageLoadStrategy,
ProjectManager.IConflictHandler conflictHandler)
Configure the PackageRegistry associated with the (external) ResourceSet to use a packageLoadStrategy and conflictHandler when
resolving namespace and platform URIs.
|
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl |
createASResourceSet()
Create and initialize the AS ResourceSet used by metamodelManager to contain the AS forms of CS and Ecore/UML resources.
|
CompleteEnvironmentInternal |
createCompleteEnvironment() |
IdResolver |
createIdResolver()
Create and initialize the IdResolver used by metamodelManager to convert Ids to Elements.
|
ImplementationManager |
createImplementationManager() |
PivotMetamodelManager |
createMetamodelManager() |
OCLInternal |
createOCL()
Creates a new
OCL instance attached to this EnvironmentFactory . |
ParserContext |
createParserContext(org.eclipse.emf.ecore.EObject context)
Create a ParserContext that may be used to parse OCL expressions in the given context,
which may be an EClassifier/EOperation/EStructuralFeature or Type/Operation/Property.
|
void |
detach(java.lang.Object object) |
void |
dispose() |
CompleteEnvironmentInternal |
getCompleteEnvironment()
Return the CompleteEnvironment that supervises the additional types need for collections specializations and tuples.
|
CompleteModelInternal |
getCompleteModel()
Return the CompleteModel that contains all the CompletePackages, which in turn contain all the CompleteClasses that
define the merge of individual Packages and Classes.
|
ICSI2ASMapping |
getCSI2ASMapping() |
java.lang.String |
getDoSetupName(org.eclipse.emf.common.util.URI uri) |
PivotMetamodelManager |
getMetamodelManager()
Return the MetamodelManager used to supervise the normalized Abstract Syntax representations of the metamodels.
|
StandardLibraryInternal |
getStandardLibrary()
Return the (OCL) Standard Library that provides the build-in language facilities such as the OclAny and Set types.
|
Technology |
getTechnology() |
org.eclipse.emf.ecore.EPackage |
loadEPackage(org.eclipse.emf.ecore.EPackage ePackage)
Ensure that EPackage has been loaded in the externalResourceSet PackageRegistry.
|
Element |
loadResource(org.eclipse.emf.ecore.resource.Resource resource,
org.eclipse.emf.common.util.URI uri) |
void |
setCSI2ASMapping(ICSI2ASMapping csi2asMapping) |
void |
setEvaluationTracingEnabled(boolean b) |
void |
setProject(org.eclipse.core.resources.IProject project)
Specify an Eclipse project with respect to which project-specific preferences are resolved.
|
void |
setSafeNavigationValidationSeverity(StatusCodes.Severity severity) |
adapt, createEvaluationEnvironment, createEvaluationEnvironment, createEvaluationVisitor, createEvaluationVisitor, createModelManager, getIdResolver, getProjectManager, getResourceSet, getSeverity, setSeverity
getAdapter
clearOptions, getOptions, getValue, isEnabled, putOptions, removeOption, removeOptions, setOption
void addExternal2AS(@NonNull External2AS external2as)
void addExternalResources(@NonNull org.eclipse.emf.ecore.resource.ResourceSet externalResourceSet)
void attach(java.lang.Object object)
void configureLoadFirstStrategy()
void configureLoadStrategy(ProjectManager.IResourceLoadStrategy packageLoadStrategy, ProjectManager.IConflictHandler conflictHandler)
@NonNull org.eclipse.emf.ecore.resource.impl.ResourceSetImpl createASResourceSet()
@NonNull CompleteEnvironmentInternal createCompleteEnvironment()
@NonNull IdResolver createIdResolver()
@NonNull ImplementationManager createImplementationManager()
@NonNull PivotMetamodelManager createMetamodelManager()
@NonNull OCLInternal createOCL()
EnvironmentFactory
Creates a new OCL
instance attached to this EnvironmentFactory
.
Clients should call OCL.dispose()
to detach once they have no further use for
the OCL.
createOCL
in interface EnvironmentFactory
OCL
instance attached to this EnvironmentFactory
@NonNull ParserContext createParserContext(@Nullable org.eclipse.emf.ecore.EObject context)
void detach(java.lang.Object object)
void dispose()
@Nullable ICSI2ASMapping getCSI2ASMapping()
@NonNull CompleteEnvironmentInternal getCompleteEnvironment()
EnvironmentFactory
getCompleteEnvironment
in interface EnvironmentFactory
@NonNull CompleteModelInternal getCompleteModel()
EnvironmentFactory
getCompleteModel
in interface EnvironmentFactory
@Nullable java.lang.String getDoSetupName(@NonNull org.eclipse.emf.common.util.URI uri)
@NonNull PivotMetamodelManager getMetamodelManager()
EnvironmentFactory
getMetamodelManager
in interface EnvironmentFactory
@NonNull StandardLibraryInternal getStandardLibrary()
EnvironmentFactory
getStandardLibrary
in interface EnvironmentFactory
@NonNull Technology getTechnology()
org.eclipse.emf.ecore.EPackage loadEPackage(@NonNull org.eclipse.emf.ecore.EPackage ePackage)
@Nullable Element loadResource(@NonNull org.eclipse.emf.ecore.resource.Resource resource, @Nullable org.eclipse.emf.common.util.URI uri) throws ParserException
ParserException
void setCSI2ASMapping(ICSI2ASMapping csi2asMapping)
void setEvaluationTracingEnabled(boolean b)
void setProject(@Nullable org.eclipse.core.resources.IProject project)
void setSafeNavigationValidationSeverity(StatusCodes.Severity severity)