Class TopicMapSystemFactory

java.lang.Object
org.tmapi.core.TopicMapSystemFactory
net.ontopia.topicmaps.impl.tmapi2.TopicMapSystemFactory

public class TopicMapSystemFactory extends org.tmapi.core.TopicMapSystemFactory
INTERNAL: OKS->TMAPI object wrapper.
  • Field Details

  • Constructor Details

    • TopicMapSystemFactory

      public TopicMapSystemFactory()
  • Method Details

    • newTopicMapSystem

      public org.tmapi.core.TopicMapSystem newTopicMapSystem() throws org.tmapi.core.TMAPIException

      Create a new TopicMapSystem instance based on the properties set so far.
      Supported TopicMapSystems:

      In order to configure the TopicMapStore, you need to set the property "net.ontopia.topicmaps.store" to one of the following values:

      • memory (default)
      • rdbms

      Specified by:
      newTopicMapSystem in class org.tmapi.core.TopicMapSystemFactory
      Throws:
      org.tmapi.core.TMAPIException
    • hasFeature

      public boolean hasFeature(String feature)
      Specified by:
      hasFeature in class org.tmapi.core.TopicMapSystemFactory
    • getFeature

      public boolean getFeature(String feature) throws org.tmapi.core.FeatureNotRecognizedException
      Specified by:
      getFeature in class org.tmapi.core.TopicMapSystemFactory
      Throws:
      org.tmapi.core.FeatureNotRecognizedException
    • setFeature

      public void setFeature(String feature, boolean value) throws org.tmapi.core.FeatureNotSupportedException, org.tmapi.core.FeatureNotRecognizedException
      Specified by:
      setFeature in class org.tmapi.core.TopicMapSystemFactory
      Throws:
      org.tmapi.core.FeatureNotSupportedException
      org.tmapi.core.FeatureNotRecognizedException
    • getProperty

      public String getProperty(String propname)
      Specified by:
      getProperty in class org.tmapi.core.TopicMapSystemFactory
    • setProperty

      public void setProperty(String propname, String propval)
    • setProperties

      public void setProperties(Properties properties)
    • setProperty

      public void setProperty(String key, Object val)
      Specified by:
      setProperty in class org.tmapi.core.TopicMapSystemFactory