|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.uml2.common.util.UML2Util org.eclipse.uml2.uml.util.UMLUtil org.eclipse.uml2.uml.resources.util.UMLResourcesUtil
public class UMLResourcesUtil
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.uml2.uml.util.UMLUtil |
---|
UMLUtil.Ecore2UMLConverter, UMLUtil.PackageMerger, UMLUtil.Profile2EPackageConverter, UMLUtil.ProfileApplicationHelper, UMLUtil.QualifiedTextProvider, UMLUtil.StereotypeApplicationHelper, UMLUtil.TemplateExpander, UMLUtil.UML2EcoreConverter |
Nested classes/interfaces inherited from class org.eclipse.uml2.common.util.UML2Util |
---|
UML2Util.Converter, UML2Util.EClassMatcher, UML2Util.EObjectMatcher, UML2Util.EStructuralFeatureMatcher |
Field Summary |
---|
Fields inherited from class org.eclipse.uml2.common.util.UML2Util |
---|
DEFAULT_URI_CONVERTER, EMPTY_STRING, LINE_SEPARATOR, PROPERTIES_FILE_EXTENSION, RESOURCE_BUNDLES, URI_SCHEME_PLATFORM, URI_SEGMENT_PLUGIN, URI_SEGMENT_RESOURCE |
Constructor Summary | |
---|---|
UMLResourcesUtil()
|
Method Summary | |
---|---|
static org.eclipse.emf.ecore.resource.ResourceSet |
init(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Initializes the registries for the specified resource set (and/or the global registries) with the registrations needed to work with UML2 resources in stand-alone mode (i.e., without Eclipse). |
static org.eclipse.emf.ecore.resource.ContentHandler.Registry |
initContentHandlerRegistry(org.eclipse.emf.ecore.resource.ContentHandler.Registry contentHandlerRegistry)
Adds content-type handlers required for working with UML models to the specified registry. |
static java.util.Map<java.lang.String,org.eclipse.emf.common.util.URI> |
initEPackageNsURIToProfileLocationMap(java.util.Map<java.lang.String,org.eclipse.emf.common.util.URI> ePackageNsURIToProfileLocationMap)
Adds profile namespace URI mappings required for working with UML models to the specified map. |
static void |
initGlobalRegistries()
Adds registrations to EMF's and UML2's global registries that enable working with UML models. |
static void |
initLocalRegistries(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Adds registrations to a resource set's local registries that enable working with UML models in that resource set. |
static org.eclipse.emf.ecore.EPackage.Registry |
initPackageRegistry(org.eclipse.emf.ecore.EPackage.Registry packageRegistry)
Adds packages required for working with UML models to the specified registry. |
static org.eclipse.emf.ecore.resource.Resource.Factory.Registry |
initResourceFactoryRegistry(org.eclipse.emf.ecore.resource.Resource.Factory.Registry resourceFactoryRegistry)
Adds resource factories required for working with UML models to the specified registry. |
static java.util.Map<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> |
initURIConverterURIMap(java.util.Map<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> uriMap)
Adds resource URI mappings required for working with UML models to the specified map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UMLResourcesUtil()
Method Detail |
---|
public static void initGlobalRegistries()
initLocalRegistries(ResourceSet)
method,
instead.
initLocalRegistries(ResourceSet)
public static void initLocalRegistries(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
initPackageRegistry(org.eclipse.emf.ecore.EPackage.Registry)
,
initResourceFactoryRegistry(org.eclipse.emf.ecore.resource.Resource.Factory.Registry)
,
initContentHandlerRegistry(org.eclipse.emf.ecore.resource.ContentHandler.Registry)
,
initURIConverterURIMap(Map)
,
initEPackageNsURIToProfileLocationMap(Map)
public static org.eclipse.emf.ecore.resource.ResourceSet init(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Initializes the registries for the specified resource set (and/or the global registries) with the registrations needed to work with UML2 resources in stand-alone mode (i.e., without Eclipse).
resourceSet
- The resource set whose registries to initialize, or
null
to perform only global registrations.
null
).initLocalRegistries(ResourceSet)
,
initGlobalRegistries()
public static org.eclipse.emf.ecore.EPackage.Registry initPackageRegistry(org.eclipse.emf.ecore.EPackage.Registry packageRegistry)
packageRegistry
- a package registry, perhaps local to a resource set or perhaps
the global registry
packageRegistry
public static org.eclipse.emf.ecore.resource.Resource.Factory.Registry initResourceFactoryRegistry(org.eclipse.emf.ecore.resource.Resource.Factory.Registry resourceFactoryRegistry)
resourceFactoryRegistry
- a resource-factory registry, perhaps local to a resource set
or perhaps the global registry
resourceFactoryRegistry
public static org.eclipse.emf.ecore.resource.ContentHandler.Registry initContentHandlerRegistry(org.eclipse.emf.ecore.resource.ContentHandler.Registry contentHandlerRegistry)
contentHandlerRegistry
- a content-type handler registry, perhaps local to a resource
set or perhaps the global registry
contentHandlerRegistry
public static java.util.Map<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> initURIConverterURIMap(java.util.Map<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> uriMap)
uriMap
- a URI map, perhaps local to a resource set or perhaps the
global URI map
uriMap
public static java.util.Map<java.lang.String,org.eclipse.emf.common.util.URI> initEPackageNsURIToProfileLocationMap(java.util.Map<java.lang.String,org.eclipse.emf.common.util.URI> ePackageNsURIToProfileLocationMap)
ePackageNsURIToProfileLocationMap
- a profile location map, perhaps local to a resource set or
perhaps the global location map
ePackageNsURIToProfileLocationMap
|
Copyright 2003, 2014 IBM Corporation, CEA, and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |