Class TopicMapSystemFactory
- java.lang.Object
-
- org.tmapi.core.TopicMapSystemFactory
-
- net.ontopia.topicmaps.impl.tmapi2.TopicMapSystemFactory
-
public class TopicMapSystemFactory extends org.tmapi.core.TopicMapSystemFactoryINTERNAL: OKS->TMAPI object wrapper.
-
-
Field Summary
Fields Modifier and Type Field Description protected net.ontopia.topicmaps.impl.tmapi2.Feature[]dfeaturesprotected Map<String,Boolean>featuresprotected PropertiespropertiesStringSTORE_PROPERTY
-
Constructor Summary
Constructors Constructor Description TopicMapSystemFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetFeature(String feature)StringgetProperty(String propname)booleanhasFeature(String feature)org.tmapi.core.TopicMapSystemnewTopicMapSystem()Create a new TopicMapSystem instance based on the properties set so far.voidsetFeature(String feature, boolean value)voidsetProperties(Properties properties)voidsetProperty(String key, Object val)voidsetProperty(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.TMAPIExceptionCreate 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:
newTopicMapSystemin classorg.tmapi.core.TopicMapSystemFactory- Throws:
org.tmapi.core.TMAPIException
-
hasFeature
public boolean hasFeature(String feature)
- Specified by:
hasFeaturein classorg.tmapi.core.TopicMapSystemFactory
-
getFeature
public boolean getFeature(String feature) throws org.tmapi.core.FeatureNotRecognizedException
- Specified by:
getFeaturein 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:
setFeaturein classorg.tmapi.core.TopicMapSystemFactory- Throws:
org.tmapi.core.FeatureNotSupportedExceptionorg.tmapi.core.FeatureNotRecognizedException
-
getProperty
public String getProperty(String propname)
- Specified by:
getPropertyin classorg.tmapi.core.TopicMapSystemFactory
-
setProperties
public void setProperties(Properties properties)
-
-