IIndexWriter.createEObjectEntry(IndexContext, URI, EClass)
instead.public final class EObjectEntry extends java.lang.Object implements IIndexEntry
IIndexEntry
for capturing the EObject
information. This class should be used by clients who extend the
AbstractIndexProvider
to create index entries for each eObject
within the resource.EOBJECT_KIND, RESOURCE_KIND
Constructor and Description |
---|
EObjectEntry(IndexContext context,
org.eclipse.emf.common.util.URI containerURI,
org.eclipse.emf.ecore.EClass eClass)
Deprecated.
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addEAttributeValue(org.eclipse.emf.ecore.EAttribute eAttribute,
java.lang.Object value)
Deprecated.
This method adds the specified value for the specified attribute feature
|
void |
addEReferenceValue(org.eclipse.emf.ecore.EReference eReference,
org.eclipse.emf.common.util.URI refURI)
Deprecated.
This method adds the specified uri value for the specified reference
feature
|
IndexContext |
getContext()
Deprecated.
|
IEObjectEntry |
getDelegate()
Deprecated.
Note: this method is internal and is not intended to be called by clients.
|
org.eclipse.emf.ecore.EClass |
getEClass()
Deprecated.
Returns the
EClass for this eObject entry. |
org.eclipse.emf.common.util.URI |
getEObjectContainerURI()
Deprecated.
Returns this entry's eObject container URI as string
Note: this method is not intended to be called by clients.
|
org.eclipse.emf.common.util.URI |
getEObjectURI()
Deprecated.
Returns this entry's eObject URI as string
Note: this method is not intended to be called by clients.
|
java.util.Collection<java.lang.String> |
getFields()
Deprecated.
Note: this method is not intended to be called by clients.
|
int |
getKind()
Deprecated.
Note: this method is not intended to be called by clients.
|
java.lang.Object |
getValue(java.lang.String field)
Deprecated.
Note: this method is not intended to be called by clients.
|
boolean |
isMultiValued(java.lang.String field)
Deprecated.
Note: this method is not intended to be called by clients.
|
boolean |
isStored(java.lang.String field)
Deprecated.
Note: this method is not intended to be called by clients.
|
void |
setContainerURI(org.eclipse.emf.common.util.URI containerURI)
Deprecated.
This method sets the container uri for this eObject entry
|
void |
setEObjectURI(org.eclipse.emf.common.util.URI objectURI)
Deprecated.
This method sets the uri value for this eObject entry
|
public EObjectEntry(IndexContext context, org.eclipse.emf.common.util.URI containerURI, org.eclipse.emf.ecore.EClass eClass)
context
- the index context associatedcontainerURI
- the uri of the containereClass
- the eClass of this objectpublic final java.util.Collection<java.lang.String> getFields()
getFields
in interface IIndexEntry
public final java.lang.Object getValue(java.lang.String field)
getValue
in interface IIndexEntry
field
- The specified fieldpublic final boolean isMultiValued(java.lang.String field)
isMultiValued
in interface IIndexEntry
field
- The specified fieldtrue
if value of the field is multi-valuedpublic final boolean isStored(java.lang.String field)
isStored
in interface IIndexEntry
field
- The specified fieldtrue
if value of the field is storedpublic final void addEAttributeValue(org.eclipse.emf.ecore.EAttribute eAttribute, java.lang.Object value)
eAttribute
- the attribute featurevalue
- the value. This is a collection of string values for many
valued attributes or just a string for single valued
attributespublic final void addEReferenceValue(org.eclipse.emf.ecore.EReference eReference, org.eclipse.emf.common.util.URI refURI)
eReference
- the reference featurerefURI
- the referenced eObject's URI.public final void setEObjectURI(org.eclipse.emf.common.util.URI objectURI)
objectURI
- the object URI.public final void setContainerURI(org.eclipse.emf.common.util.URI containerURI)
containerURI
- the container URI.public final org.eclipse.emf.ecore.EClass getEClass()
EClass
for this eObject entry.
Note: this method is not intended to be called by clients.public final org.eclipse.emf.common.util.URI getEObjectURI()
public final org.eclipse.emf.common.util.URI getEObjectContainerURI()
public int getKind()
getKind
in interface IIndexEntry
RESOURCE_KIND
or EOBJECT_KIND
public IEObjectEntry getDelegate()
public IndexContext getContext()