net.ontopia.topicmaps.query.spi
Class AbstractSearcher
java.lang.Object
net.ontopia.topicmaps.query.spi.AbstractSearcher
- All Implemented Interfaces:
- SearcherIF
- Direct Known Subclasses:
- HTTPSearcher, LuceneSearcher, RDBMSSearcher
public abstract class AbstractSearcher
- extends java.lang.Object
- implements SearcherIF
PUBLIC: Abstract SearcherIF convenience superclass used to get the
default implementation of the four set methods. Subclassing this
class ensures better forward compatibility.
Method Summary |
void |
setModuleURI(java.lang.String moduleURI)
PUBLIC: Called by the query engine before using the instance to
pass the module URI to the searcher. |
void |
setParameters(java.util.Map parameters)
PUBLIC: Called by the query engine before using the instance to
pass the parameters in the module URI to the searcher. |
void |
setPredicateName(java.lang.String predicateName)
PUBLIC: Called by the query engine before using the instance to
pass the name of the predicate (the part after the colon in the
QName) to the searcher. |
void |
setTopicMap(TopicMapIF topicmap)
PUBLIC: Called by the query engine before using the instance to
pass the topic map being queried to the predicate. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
moduleURI
protected java.lang.String moduleURI
predicateName
protected java.lang.String predicateName
topicmap
protected TopicMapIF topicmap
parameters
protected java.util.Map parameters
AbstractSearcher
public AbstractSearcher()
setModuleURI
public void setModuleURI(java.lang.String moduleURI)
- Description copied from interface:
SearcherIF
- PUBLIC: Called by the query engine before using the instance to
pass the module URI to the searcher. No specific behaviour is
required from the searcher.
- Specified by:
setModuleURI
in interface SearcherIF
setPredicateName
public void setPredicateName(java.lang.String predicateName)
- Description copied from interface:
SearcherIF
- PUBLIC: Called by the query engine before using the instance to
pass the name of the predicate (the part after the colon in the
QName) to the searcher. No specific behaviour is required from
the searcher.
- Specified by:
setPredicateName
in interface SearcherIF
setTopicMap
public void setTopicMap(TopicMapIF topicmap)
- Description copied from interface:
SearcherIF
- PUBLIC: Called by the query engine before using the instance to
pass the topic map being queried to the predicate. No specific
behaviour is required from the searcher.
- Specified by:
setTopicMap
in interface SearcherIF
setParameters
public void setParameters(java.util.Map parameters)
- Description copied from interface:
SearcherIF
- PUBLIC: Called by the query engine before using the instance to
pass the parameters in the module URI to the searcher. The map
will contain {"foo" : "bar"} if the URI ends in "?foo=bar". No
specific behaviour is required from the searcher.
- Specified by:
setParameters
in interface SearcherIF
Copyright © 2000-2012 Ontopia.