Class AbstractSearcher

java.lang.Object
net.ontopia.topicmaps.query.spi.AbstractSearcher
All Implemented Interfaces:
SearcherIF
Direct Known Subclasses:
HTTPSearcher, RDBMSSearcher

public abstract class AbstractSearcher extends 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.

  • Field Details

    • moduleURI

      protected String moduleURI
    • predicateName

      protected String predicateName
    • topicmap

      protected TopicMapIF topicmap
    • parameters

      protected Map parameters
  • Constructor Details

    • AbstractSearcher

      public AbstractSearcher()
  • Method Details

    • setModuleURI

      public void setModuleURI(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(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(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