Package net.ontopia.topicmaps.query.spi
Class AbstractSearcher
java.lang.Object
net.ontopia.topicmaps.query.spi.AbstractSearcher
- All Implemented Interfaces:
SearcherIF
- Direct Known Subclasses:
HTTPSearcher,RDBMSSearcher
PUBLIC: Abstract SearcherIF convenience superclass used to get the
default implementation of the four set methods. Subclassing this
class ensures better forward compatibility.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Mapprotected Stringprotected TopicMapIFFields inherited from interface net.ontopia.topicmaps.query.spi.SearcherIF
ITEM_IDENTIFIER, OBJECT_ID, OBJECT_VALUE, OCCURRENCE_URI, STRING_VALUE, SUBJECT_IDENTIFIER, SUBJECT_LOCATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetModuleURI(String moduleURI) PUBLIC: Called by the query engine before using the instance to pass the module URI to the searcher.voidsetParameters(Map parameters) PUBLIC: Called by the query engine before using the instance to pass the parameters in the module URI to the searcher.voidsetPredicateName(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.voidsetTopicMap(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, waitMethods inherited from interface net.ontopia.topicmaps.query.spi.SearcherIF
getResult, getValueType
-
Field Details
-
moduleURI
-
predicateName
-
topicmap
-
parameters
-
-
Constructor Details
-
AbstractSearcher
public AbstractSearcher()
-
-
Method Details
-
setModuleURI
Description copied from interface:SearcherIFPUBLIC: 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:
setModuleURIin interfaceSearcherIF
-
setPredicateName
Description copied from interface:SearcherIFPUBLIC: 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:
setPredicateNamein interfaceSearcherIF
-
setTopicMap
Description copied from interface:SearcherIFPUBLIC: 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:
setTopicMapin interfaceSearcherIF
-
setParameters
Description copied from interface:SearcherIFPUBLIC: 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:
setParametersin interfaceSearcherIF
-