public class BaseIndexOptions
extends java.lang.Object
One of the options is to build indices in wildcard mode, meaning that all EClasses, EDataTypes, EReferences and EAttributes are indexed. This is convenient, but comes at a high memory cost. To save memory, one can disable wildcard mode and manually register those EClasses, EDataTypes, EReferences and EAttributes that should be indexed.
Another choice is whether to build indices in dynamic EMF mode, meaning that types are identified by the String IDs that are ultimately derived from the nsURI of the EPackage. Multiple types with the same ID are treated as the same. This is useful if dynamic EMF is used, where there can be multiple copies (instantiations) of the same EPackage, representing essentially the same metamodel. If one disables dynamic EMF mode, an error is logged if duplicate EPackages with the same nsURI are encountered.
Constructor and Description |
---|
BaseIndexOptions()
Creates a base index options with the default values.
|
BaseIndexOptions(boolean dynamicEMFMode,
boolean wildcardMode)
Creates a base index options using the provided values for dynamic EMF mode and wildcard mode.
|
Modifier and Type | Method and Description |
---|---|
BaseIndexOptions |
copy()
Creates an independent copy of itself.
|
boolean |
equals(java.lang.Object obj) |
IBaseIndexObjectFilter |
getObjectFilterConfiguration() |
IBaseIndexResourceFilter |
getResourceFilterConfiguration() |
int |
hashCode() |
boolean |
isDynamicEMFMode() |
boolean |
isTraverseOnlyWellBehavingDerivedFeatures() |
boolean |
isWildcardMode() |
void |
setDynamicEMFMode(boolean dynamicEMFMode)
Deprecated.
Unsafe to use as setting it after the engine has been is undefined; use
withDynamicEMFMode(boolean) instead |
void |
setObjectFilterConfiguration(IBaseIndexObjectFilter filter)
Deprecated.
Unsafe to use as setting it after the engine has been is undefined; use
withResourceFilterConfiguration(IBaseIndexResourceFilter) instead |
void |
setResourceFilter(IBaseIndexResourceFilter filter)
Deprecated.
Unsafe to use as setting it after the engine has been is undefined; use
withResourceFilterConfiguration(IBaseIndexResourceFilter) instead |
void |
setWildcardMode(boolean wildcardMode)
Deprecated.
Unsafe to use as setting it after the engine has been is undefined; use
withWildcardMode(boolean) instead |
java.lang.String |
toString() |
BaseIndexOptions |
withDynamicEMFMode(boolean dynamicEMFMode) |
BaseIndexOptions |
withObjectFilterConfiguration(IBaseIndexObjectFilter filter)
Adds an object-level filter to the indexer configuration.
|
BaseIndexOptions |
withResourceFilterConfiguration(IBaseIndexResourceFilter filter)
Returns a copy of the configuration with a specified resource filter
|
BaseIndexOptions |
withWildcardMode(boolean wildcardMode) |
public BaseIndexOptions()
public BaseIndexOptions(boolean dynamicEMFMode, boolean wildcardMode)
public void setDynamicEMFMode(boolean dynamicEMFMode)
withDynamicEMFMode(boolean)
insteadpublic BaseIndexOptions withDynamicEMFMode(boolean dynamicEMFMode)
dynamicEMFMode
- public void setObjectFilterConfiguration(IBaseIndexObjectFilter filter)
withResourceFilterConfiguration(IBaseIndexResourceFilter)
insteadwithObjectFilterConfiguration(IBaseIndexObjectFilter)
instead.filter
- public BaseIndexOptions withObjectFilterConfiguration(IBaseIndexObjectFilter filter)
withResourceFilterConfiguration(IBaseIndexResourceFilter)
instead.filter
- public IBaseIndexObjectFilter getObjectFilterConfiguration()
public void setResourceFilter(IBaseIndexResourceFilter filter)
withResourceFilterConfiguration(IBaseIndexResourceFilter)
insteadfilter
- public BaseIndexOptions withResourceFilterConfiguration(IBaseIndexResourceFilter filter)
filter
- public IBaseIndexResourceFilter getResourceFilterConfiguration()
public boolean isDynamicEMFMode()
public boolean isTraverseOnlyWellBehavingDerivedFeatures()
public void setWildcardMode(boolean wildcardMode)
withWildcardMode(boolean)
insteadwildcardMode
- public BaseIndexOptions withWildcardMode(boolean wildcardMode)
wildcardMode
- public boolean isWildcardMode()
public BaseIndexOptions copy()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object