|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.model.visual.backward.NodeIndexer
public class NodeIndexer
Class for indexing Node
s based on the specified attribute. The type of nodes to index may be specified.
If the indexing attribute is equal to NodeAttributeManager.PERMANENT_ID
then the existing index of supplied
VisualModelCachingFactory
is used.
Constructor Summary | |
---|---|
NodeIndexer(VisualModelCachingFactory visualModelFactory)
Creates node indexer with index built based on NodeAttributeManager.PERMANENT_ID attribute. |
|
NodeIndexer(VisualModelCachingFactory visualModelFactory,
String attribute)
Creates node indexer with index built based on attribute attribute.All types of nodes are indexed. |
|
NodeIndexer(VisualModelCachingFactory visualModelFactory,
String attribute,
String type)
Creates node indexer with index built based on attribute attribute. |
|
NodeIndexer(VisualModelCachingFactory visualModelFactory,
String attribute,
String type,
org.eclipse.core.runtime.IProgressMonitor monitor)
Creates node indexer with index built based on attribute attribute. |
Method Summary | |
---|---|
List<Node> |
lookup(Object value)
Returns list of nodes that have the indexing attribute value equal to value . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeIndexer(VisualModelCachingFactory visualModelFactory)
NodeAttributeManager.PERMANENT_ID
attribute. All types of
nodes are indexed.
visualModelFactory
- VisualModelCachingFactory
that provides nodespublic NodeIndexer(VisualModelCachingFactory visualModelFactory, String attribute)
attribute
attribute.All types of nodes are indexed.
visualModelFactory
- VisualModelCachingFactory
that provides nodesattribute
- name of the attribute to be used for indexingpublic NodeIndexer(VisualModelCachingFactory visualModelFactory, String attribute, String type)
attribute
attribute. Only nodes of type
type
are indexed.
visualModelFactory
- VisualModelCachingFactory
that provides nodesattribute
- name of the attribute to be used for indexingtype
- type of nodes to index - if null
then all types are consideredpublic NodeIndexer(VisualModelCachingFactory visualModelFactory, String attribute, String type, org.eclipse.core.runtime.IProgressMonitor monitor)
attribute
attribute. Only nodes of type
type
are indexed.
visualModelFactory
- VisualModelCachingFactory
that provides nodesattribute
- name of the attribute to be used for indexingtype
- type of nodes to index - if null
then all types are consideredmonitor
- operation progress monitorMethod Detail |
---|
public List<Node> lookup(Object value)
value
.
WARNING: in order to preserve performance, no validation on value
type is performed
value
- lookup value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |