org.tm4j.config.xml
Class TopicMapManagerConfiguration

java.lang.Object
  extended byorg.tm4j.config.xml.TopicMapManagerConfiguration

public class TopicMapManagerConfiguration
extends java.lang.Object

Reads the configuration of a TopicMapManager Implementation from an XML file using jakarta digester.

Author:
Harald Kuhn, harald_kuhn at users.sourceforge.net

Constructor Summary
TopicMapManagerConfiguration()
           
 
Method Summary
static void readConfiguration(java.io.File configFile, TopicMapManager manager)
          This method internally calls readConfiguration(Properties, File, TopicMapManager) with standart Properties
static void readConfiguration(java.util.Properties props, java.io.File configFile, TopicMapManager manager)
          This methods creates a reader from configFile and calls readConfiguration(Properties, Reader, TopicMapManager)
static void readConfiguration(java.util.Properties props, java.io.Reader config, TopicMapManager manager)
          Fills the context with the settings from the reader.
static void readConfiguration(java.io.Reader config, TopicMapManager manager)
          This method internally calls readConfiguration(Properties, Reader, TopicMapManager) with standart Properties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopicMapManagerConfiguration

public TopicMapManagerConfiguration()
Method Detail

readConfiguration

public static void readConfiguration(java.io.File configFile,
                                     TopicMapManager manager)
This method internally calls readConfiguration(Properties, File, TopicMapManager) with standart Properties

Parameters:
configFile -
manager - the TopicMapManager to be filled.

readConfiguration

public static void readConfiguration(java.util.Properties props,
                                     java.io.File configFile,
                                     TopicMapManager manager)
This methods creates a reader from configFile and calls readConfiguration(Properties, Reader, TopicMapManager)

Parameters:
props - configuration properties for this digestern, may be null
configFile - the file to read from
manager - the TopicMapManager to be filled.

readConfiguration

public static void readConfiguration(java.io.Reader config,
                                     TopicMapManager manager)
This method internally calls readConfiguration(Properties, Reader, TopicMapManager) with standart Properties

Parameters:
config - a reader that accesses a xml-file, which conforms to context.dtd
manager - the TopicMapManager to be filled.

readConfiguration

public static void readConfiguration(java.util.Properties props,
                                     java.io.Reader config,
                                     TopicMapManager manager)
Fills the context with the settings from the reader. The reader must provide access to a xml file which conforms to the context.dtd. This method closes the reader before it returns

Parameters:
props - configuration properties for this digestern, may be null
config - a reader that accesses a xml-file
manager - the TopicMapManager to be filled.