| Package | Description |
|---|---|
| org.eclipse.emf.ecore |
Provides an API for the Ecore dialect of
UML.
|
| org.eclipse.emf.ecore.impl |
Provides an implementation of Ecore.
|
| org.eclipse.emf.ecore.resource |
Provides an API for modeling abstract
persistent resources.
|
| org.eclipse.emf.ecore.resource.impl |
Provides an implementation of the resource API.
|
| org.eclipse.emf.ecore.util |
Provides utilities.
|
| org.eclipse.emf.ecore.xml.type.util |
| Modifier and Type | Method and Description |
|---|---|
Resource |
EObject.eResource()
Returns the containing resource, or
null. |
| Modifier and Type | Method and Description |
|---|---|
protected Resource |
EPackageImpl.createResource(java.lang.String uri) |
Resource |
BasicEObjectImpl.eResource() |
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Resource.Internal
An internal interface implemented by all resources.
|
| Modifier and Type | Method and Description |
|---|---|
Resource |
ResourceSet.createResource(URI uri)
Creates a new resource, of the appropriate type, and returns it.
|
Resource |
Resource.Factory.createResource(URI uri)
Creates a resource with the given URI and returns it.
|
Resource |
ResourceSet.createResource(URI uri,
java.lang.String contentType)
Creates a new resource, of the appropriate type, and returns it.
|
Resource |
ResourceSet.getResource(URI uri,
boolean loadOnDemand)
Returns the resource resolved by the URI.
|
| Modifier and Type | Method and Description |
|---|---|
void |
URIConverter.Loadable.loadResource(Resource resource)
Load the contents of the resource directly from the backing store for which the stream implementing this interface is a facade.
|
void |
URIConverter.Saveable.saveResource(Resource resource)
Save the contents of the resource directly to the backing store for which the stream implementing this interface is a facade.
|
| Modifier and Type | Class and Description |
|---|---|
protected class |
ResourceSetImpl.ResourcesEList<E extends java.lang.Object & Resource>
A notifying list implementation for supporting
ResourceSet.getResources(). |
| Modifier and Type | Class and Description |
|---|---|
class |
BinaryResourceImpl
An API for efficiently producing and consuming a compact binary serialization that's suitable for long term storage.
|
class |
ResourceImpl
A highly extensible resource implementation.
|
| Modifier and Type | Field and Description |
|---|---|
protected Resource |
BinaryResourceImpl.BinaryIO.resource |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<URI,Resource> |
ResourceSetImpl.uriResourceMap
A map to cache the resource associated with a specific URI.
|
| Modifier and Type | Method and Description |
|---|---|
protected Resource |
ResourceSetImpl.ResourceLocator.basicGetResource(URI uri,
boolean loadOnDemand)
Delegates to the
resource set's ResourceSetImpl.getResource(URI, boolean)
making sure the resource set's locator is temporarily null to ensure it doesn't delegate back circularly. |
Resource |
ResourceSetImpl.createResource(URI uri) |
Resource |
ResourceFactoryImpl.createResource(URI uri)
Returns a newly allocated default resource
implementation. |
Resource |
ResourceSetImpl.createResource(URI uri,
java.lang.String contentType) |
protected Resource |
ResourceSetImpl.delegatedGetResource(URI uri,
boolean loadOnDemand)
Returns a resolved resource available outside of the resource set.
|
protected Resource |
ResourceSetImpl.ResourceLocator.delegatedGetResource(URI uri,
boolean loadOnDemand)
Delegates to the
resource set's ResourceSetImpl.delegatedGetResource(URI, boolean)
or, if the resource set has a resource locator at the time this one was created, delegates to its ResourceSetImpl.ResourceLocator.delegatedGetResource(URI, boolean). |
protected Resource |
ResourceSetImpl.demandCreateResource(URI uri)
Creates a new resource appropriate for the URI.
|
protected Resource |
ResourceSetImpl.ResourceLocator.demandCreateResource(URI uri)
Delegates to the
resource set's ResourceSetImpl.demandCreateResource(URI)
or, if the resource set has a resource locator at the time this one was created, delegates to its ResourceSetImpl.ResourceLocator.demandCreateResource(URI). |
Resource |
ResourceSetImpl.getResource(URI uri,
boolean loadOnDemand) |
abstract Resource |
ResourceSetImpl.ResourceLocator.getResource(URI uri,
boolean loadOnDemand)
The utility method used by a resource set for
locating a resource. |
Resource |
ResourceSetImpl.MappedResourceLocator.getResource(URI uri,
boolean loadOnDemand) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<URI,Resource> |
ResourceSetImpl.getURIResourceMap()
Returns the map used to cache the resource
associated with a specific URI. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ResourceSetImpl.demandLoad(Resource resource)
Loads the given resource.
|
protected void |
ResourceSetImpl.ResourceLocator.demandLoad(Resource resource)
Delegates to the
resource set's ResourceSetImpl.demandLoad(Resource)
or, if the resource set has a resource locator at the time this one was created, delegates to its ResourceSetImpl.ResourceLocator.demandCreateResource(URI). |
protected void |
ResourceSetImpl.demandLoadHelper(Resource resource)
Demand loads the given resource using
ResourceSetImpl.demandLoad(Resource)
and wraps any IOException as a runtime exception. |
protected void |
ResourceSetImpl.ResourceLocator.demandLoadHelper(Resource resource)
Delegates to the
resource set's ResourceSetImpl.demandLoadHelper(Resource)
or, if the resource set has a resource locator at the time this one was created, delegates to its ResourceSetImpl.ResourceLocator.demandLoadHelper(Resource). |
protected void |
ResourceSetImpl.handleDemandLoadException(Resource resource,
java.io.IOException exception)
Handles the exception thrown during demand load
by recording it as an error diagnostic
and throwing a wrapping runtime exception.
|
protected void |
ResourceSetImpl.ResourceLocator.handleDemandLoadException(Resource resource,
java.io.IOException exception)
Delegates to the
resource set's ResourceSetImpl.handleDemandLoadException(Resource, IOException)
or, if the resource set has a resource locator at the time this one was created, delegates to its ResourceSetImpl.ResourceLocator.handleDemandLoadException(Resource, IOException). |
void |
BinaryResourceImpl.EObjectInputStream.loadResource(Resource resource) |
protected void |
ResourceSetImpl.MappedResourceLocator.map(URI normalizedURI,
Resource resource)
Creates a
resource map entry for the resource with the given normalized URI. |
void |
BinaryResourceImpl.EObjectOutputStream.saveResource(Resource resource) |
protected void |
ResourceSetImpl.MappedResourceLocator.ResourceAdapter.setTarget(Resource target) |
protected void |
ResourceSetImpl.MappedResourceLocator.ResourceAdapter.unsetTarget(Resource target) |
| Modifier and Type | Method and Description |
|---|---|
void |
ResourceSetImpl.setURIResourceMap(java.util.Map<URI,Resource> uriResourceMap)
Sets the map used to cache the resource associated with a specific URI.
|
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<? extends Resource> |
EcoreUtil.ContentTreeIterator.ResourcesIterator.resources
The resources to iterator over.
|
protected java.util.Map<EObject,Resource> |
ECrossReferenceAdapter.unloadedEObjects |
protected java.util.Set<Resource> |
ECrossReferenceAdapter.unloadedResources |
| Modifier and Type | Method and Description |
|---|---|
Resource |
EcoreUtil.ContentTreeIterator.ResourcesIterator.next()
Returns the next item, or
null if there isn't one. |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Iterator<Resource> |
EcoreUtil.ContentTreeIterator.getResourceSetChildren(ResourceSet resourceSet)
Returns an iterator over the
children of the given parent resource set. |
| Modifier and Type | Method and Description |
|---|---|
static Diagnostic |
EcoreUtil.computeDiagnostic(Resource resource,
boolean includeWarnings)
Computes a
Diagnostic from the errors and warnings stored in the specified resource. |
static java.util.Collection<EStructuralFeature.Setting> |
EcoreUtil.UsageCrossReferencer.find(EObject eObjectOfInterest,
Resource resource)
Returns a collection of usage references from the specified content tree.
|
static java.util.Map<EObject,java.util.Collection<EStructuralFeature.Setting>> |
EcoreUtil.ExternalCrossReferencer.find(Resource resource)
Returns a map of all external cross references from the specified content tree.
|
static java.util.Map<EObject,java.util.Collection<EStructuralFeature.Setting>> |
EcoreUtil.ProxyCrossReferencer.find(Resource resource)
Returns a map of all proxy references from the specified content tree.
|
static java.util.Map<EObject,java.util.Collection<EStructuralFeature.Setting>> |
EcoreUtil.UnresolvedProxyCrossReferencer.find(Resource resource)
Returns a map of all unresolvable proxies from the specified content tree.
|
static java.util.Map<EObject,java.util.Collection<EStructuralFeature.Setting>> |
EcoreUtil.UsageCrossReferencer.findAll(java.util.Collection<?> eObjectsOfInterest,
Resource resource)
Returns a map of usage references from the specified content tree.
|
static <T> <any> |
EcoreUtil.getAllContents(Resource resource,
boolean resolve)
Returns a tree iterator that iterates over all the
direct contents and indirect contents of the resource. |
static <T> <any> |
EcoreUtil.getAllProperContents(Resource resource,
boolean resolve)
Returns a tree iterator that iterates over all the
direct contents and indirect contents of the resource,
skipping over any child object that's in a different resource from its parent. |
static Adapter |
EcoreUtil.getRegisteredAdapter(Resource resource,
java.lang.Object type)
Returns the specified resource's adapter of the specified type.
|
protected java.util.Iterator<EObject> |
EcoreUtil.ContentTreeIterator.getResourceChildren(Resource resource)
Returns an iterator over the
children of the given parent resource. |
static boolean |
EcoreUtil.isAncestor(Resource ancestorResource,
EObject eObject)
Returns whether the given resource is that of the object,
i.e., whether the object is in the
content tree of the resource. |
static EObject |
EcoreUtil.resolve(EObject proxy,
Resource resourceContext)
Returns the resolved object represented by proxy.
|
static void |
EcoreUtil.resolveAll(Resource resource)
Visits all proxies in the resource and tries to resolve them.
|
protected void |
ECrossReferenceAdapter.resolveProxy(Resource resource,
EObject eObject,
EObject proxy,
EStructuralFeature.Setting setting) |
boolean |
EcoreValidator.validateEResource(Resource eResource,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
| Constructor and Description |
|---|
CrossReferencer(Resource resource)
Creates an instance for the given resource.
|
ExternalCrossReferencer(Resource resource)
Creates an instance for the given resource.
|
ProxyCrossReferencer(Resource resource)
Creates an instance for the given resource.
|
UnresolvedProxyCrossReferencer(Resource resource)
Creates an instance for the given resource.
|
UsageCrossReferencer(Resource resource)
Creates an instance for the given resource.
|
| Constructor and Description |
|---|
ResourcesIterator(java.util.List<? extends Resource> resources)
Constructs an instance.
|
| Modifier and Type | Class and Description |
|---|---|
class |
XMLTypeResourceImpl
Provides access to the generated frame factory for the built-in XML types.
|
Copyright © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature