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 Summary
Fields Modifier and Type Field Description protected net.ontopia.topicmaps.impl.tmapi2.Feature[]
dfeatures
protected Map<String,Boolean>
features
protected Properties
properties
String
STORE_PROPERTY
-
Constructor Summary
Constructors Constructor Description TopicMapSystemFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getFeature(String feature)
String
getProperty(String propname)
boolean
hasFeature(String feature)
org.tmapi.core.TopicMapSystem
newTopicMapSystem()
Create a new TopicMapSystem instance based on the properties set so far.void
setFeature(String feature, boolean value)
void
setProperties(Properties properties)
void
setProperty(String key, Object val)
void
setProperty(String propname, String propval)
-
-
-
Field Detail
-
properties
protected Properties properties
-
dfeatures
protected net.ontopia.topicmaps.impl.tmapi2.Feature[] dfeatures
-
STORE_PROPERTY
public final String STORE_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
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 classorg.tmapi.core.TopicMapSystemFactory
- Throws:
org.tmapi.core.TMAPIException
-
hasFeature
public boolean hasFeature(String feature)
- Specified by:
hasFeature
in classorg.tmapi.core.TopicMapSystemFactory
-
getFeature
public boolean getFeature(String feature) throws org.tmapi.core.FeatureNotRecognizedException
- Specified by:
getFeature
in classorg.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 classorg.tmapi.core.TopicMapSystemFactory
- Throws:
org.tmapi.core.FeatureNotSupportedException
org.tmapi.core.FeatureNotRecognizedException
-
getProperty
public String getProperty(String propname)
- Specified by:
getProperty
in classorg.tmapi.core.TopicMapSystemFactory
-
setProperties
public void setProperties(Properties properties)
-
-