public interface IIndexWriter
IIndexProvider.createIndexEntries(org.eclipse.emf.common.util.URI, IIndexWriter, IProgressMonitor)
method. Clients use this to add the created index entries to the index store.
Clients can add individual entries or a collection of entries. Clients should not
implement this interface.XMIIndexProvider
,
IndexSAXXMIHandler
Modifier and Type | Method and Description |
---|---|
void |
addEntriesToIndex(java.util.Collection<IEntry> entries,
org.eclipse.core.runtime.IProgressMonitor monitor)
Adds the specified collection of index entries to the index store.
|
void |
addEObjectEntryToIndex(IEObjectEntry entry,
org.eclipse.core.runtime.IProgressMonitor monitor)
Adds the specified index entry to the index store.
|
void |
addIndexEntriesToIndex(java.util.Collection<IIndexEntry> entries,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated.
Use
addEntriesToIndex(Collection, IProgressMonitor) instead. |
void |
addIndexEntryToIndex(IIndexEntry entry,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated.
|
void |
addResourceEntryToIndex(IResourceEntry entry,
org.eclipse.core.runtime.IProgressMonitor monitor)
Adds the specified index entry to the index store.
|
IEObjectEntry |
createEObjectEntry(IndexContext context,
org.eclipse.emf.common.util.URI containerURI,
org.eclipse.emf.ecore.EClass eClass)
Creates an EObject entry particular to this writer.
|
IResourceEntry |
createResourceEntry(IndexContext context,
org.eclipse.emf.common.util.URI resourceURI)
Creates a resource entry particular to this writer.
|
void addIndexEntriesToIndex(java.util.Collection<IIndexEntry> entries, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
addEntriesToIndex(Collection, IProgressMonitor)
instead.entries
- the collection of index entries. Each entry is of type
IIndexEntry
monitor
- the progress monitor or null
if noneIndexException
void addIndexEntryToIndex(IIndexEntry entry, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
addEObjectEntryToIndex(IEObjectEntry, IProgressMonitor)
or addResourceEntryToIndex(IResourceEntry, IProgressMonitor)
instead.entry
- the index entry to be addedmonitor
- the progress monitor or null
if noneIndexException
IEObjectEntry createEObjectEntry(IndexContext context, org.eclipse.emf.common.util.URI containerURI, org.eclipse.emf.ecore.EClass eClass)
addEntriesToIndex(Collection, IProgressMonitor)
or
addEObjectEntryToIndex(IEObjectEntry, IProgressMonitor)
.context
- The index context provided to the index provider.containerURI
- The URI of the container for this EObject (or null).
Note that the URI should be normalized using IndexContext.normalize(URI, org.eclipse.emf.ecore.resource.ResourceSet)
.eClass
- The EClass of the EObject (must not be null).IResourceEntry createResourceEntry(IndexContext context, org.eclipse.emf.common.util.URI resourceURI)
addEntriesToIndex(Collection, IProgressMonitor)
or
addResourceEntryToIndex(IResourceEntry, IProgressMonitor)
.context
- The index context provided to the index provider.resourceURI
- The URI of the resource in question. Note that the URI should be non-null and should be fully normalized using IndexContext.normalize(URI, org.eclipse.emf.ecore.resource.ResourceSet)
.void addEntriesToIndex(java.util.Collection<IEntry> entries, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
createEObjectEntry(IndexContext, URI, EClass)
or createResourceEntry(IndexContext, URI)
. No other types of entries
should be provided here.entries
- the collection of index entries. Each entry is either of
type IResourceEntry
or IEObjectEntry
.monitor
- the progress monitor or null
if noneIndexException
void addEObjectEntryToIndex(IEObjectEntry entry, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
createEObjectEntry(IndexContext, URI, EClass)
. No other types
of EObject entries should be provided here.entry
- the index entry to be addedmonitor
- the progress monitor or null
if noneIndexException
void addResourceEntryToIndex(IResourceEntry entry, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
createResourceEntry(IndexContext, URI)
. No other type of
Resource entries should be provided here.entry
- the index entry to be addedmonitor
- the progress monitor or null
if noneIndexException