de.topicmapslab.majortom.core
Class TopicMapSystemFactoryImpl

java.lang.Object
  extended by org.tmapi.core.TopicMapSystemFactory
      extended by de.topicmapslab.majortom.core.TopicMapSystemFactoryImpl

public class TopicMapSystemFactoryImpl
extends org.tmapi.core.TopicMapSystemFactory

Author:
Sven Krosse

Field Summary
private  java.util.Map<java.lang.String,java.lang.Object> features
           
private  java.util.Properties properties
           
private static java.lang.String propertyFile
          the property file name
private static java.util.Set<java.lang.String> SUPPORTED_FEATURES
           
 
Constructor Summary
TopicMapSystemFactoryImpl()
          constructor
 
Method Summary
 boolean getFeature(java.lang.String arg0)
          
(package private)  java.util.Map<java.lang.String,java.lang.Object> getFeatures()
          Internal method to get all features
(package private)  java.util.Properties getProperties()
          Internal method to get all properties
 java.lang.Object getProperty(java.lang.String arg0)
          
 boolean hasFeature(java.lang.String arg0)
          
private  void loadPropertiesFromFile()
          Hidden method to load optional properties of the current topic map system.
 org.tmapi.core.TopicMapSystem newTopicMapSystem()
          
 void setFeature(java.lang.String arg0, boolean arg1)
          
 void setProperty(java.lang.String key, java.lang.Object value)
          
 
Methods inherited from class org.tmapi.core.TopicMapSystemFactory
newInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyFile

private static final java.lang.String propertyFile
the property file name

See Also:
Constant Field Values

features

private java.util.Map<java.lang.String,java.lang.Object> features

properties

private final java.util.Properties properties

SUPPORTED_FEATURES

private static final java.util.Set<java.lang.String> SUPPORTED_FEATURES
Constructor Detail

TopicMapSystemFactoryImpl

public TopicMapSystemFactoryImpl()
constructor

Method Detail

getFeature

public boolean getFeature(java.lang.String arg0)
                   throws org.tmapi.core.FeatureNotRecognizedException

Specified by:
getFeature in class org.tmapi.core.TopicMapSystemFactory
Throws:
org.tmapi.core.FeatureNotRecognizedException

getProperty

public java.lang.Object getProperty(java.lang.String arg0)

Specified by:
getProperty in class org.tmapi.core.TopicMapSystemFactory

hasFeature

public boolean hasFeature(java.lang.String arg0)

Specified by:
hasFeature in class org.tmapi.core.TopicMapSystemFactory

newTopicMapSystem

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

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

setFeature

public void setFeature(java.lang.String arg0,
                       boolean arg1)
                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

setProperty

public void setProperty(java.lang.String key,
                        java.lang.Object value)

Specified by:
setProperty in class org.tmapi.core.TopicMapSystemFactory

getProperties

java.util.Properties getProperties()
Internal method to get all properties

Returns:
the properties

getFeatures

java.util.Map<java.lang.String,java.lang.Object> getFeatures()
Internal method to get all features

Returns:
the features

loadPropertiesFromFile

private void loadPropertiesFromFile()
                             throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Hidden method to load optional properties of the current topic map system.

Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if the properties can not load