org.exist.util
Class Configuration

java.lang.Object
  extended byorg.exist.util.Configuration
All Implemented Interfaces:
org.xml.sax.ErrorHandler

public class Configuration
extends java.lang.Object
implements org.xml.sax.ErrorHandler

Description of the Class

Author:
Wolfgang Meier

Field Summary
protected  javax.xml.parsers.DocumentBuilder builder
           
protected  java.util.HashMap config
           
protected  java.lang.String file
           
 
Constructor Summary
Configuration(java.lang.String file)
          Constructor for the Configuration object
Configuration(java.lang.String file, java.lang.String dbHome)
          Constructor for the Configuration object
 
Method Summary
 void error(org.xml.sax.SAXParseException exception)
           
 void fatalError(org.xml.sax.SAXParseException exception)
           
 int getInteger(java.lang.String name)
          Gets the integer attribute of the Configuration object
 java.lang.String getPath()
          Gets the path attribute of the Configuration object
 java.lang.Object getProperty(java.lang.String name)
          Gets the property attribute of the Configuration object
 boolean hasProperty(java.lang.String name)
          Description of the Method
 void setProperty(java.lang.String name, java.lang.Object obj)
          Sets the property attribute of the Configuration object
 void warning(org.xml.sax.SAXParseException exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

builder

protected javax.xml.parsers.DocumentBuilder builder

config

protected java.util.HashMap config

file

protected java.lang.String file
Constructor Detail

Configuration

public Configuration(java.lang.String file)
              throws DatabaseConfigurationException
Constructor for the Configuration object

Parameters:
file - Description of the Parameter
Throws:
DatabaseConfigurationException - Description of the Exception

Configuration

public Configuration(java.lang.String file,
                     java.lang.String dbHome)
              throws DatabaseConfigurationException
Constructor for the Configuration object

Parameters:
file - Description of the Parameter
dbHome - Description of the Parameter
Throws:
DatabaseConfigurationException - Description of the Exception
Method Detail

getInteger

public int getInteger(java.lang.String name)
Gets the integer attribute of the Configuration object

Parameters:
name - Description of the Parameter
Returns:
The integer value

getPath

public java.lang.String getPath()
Gets the path attribute of the Configuration object

Returns:
The path value

getProperty

public java.lang.Object getProperty(java.lang.String name)
Gets the property attribute of the Configuration object

Parameters:
name - Description of the Parameter
Returns:
The property value

hasProperty

public boolean hasProperty(java.lang.String name)
Description of the Method

Parameters:
name - Description of the Parameter
Returns:
Description of the Return Value

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object obj)
Sets the property attribute of the Configuration object

Parameters:
name - The new property value
obj - The new property value

error

public void error(org.xml.sax.SAXParseException exception)
           throws org.xml.sax.SAXException
Specified by:
error in interface org.xml.sax.ErrorHandler
Throws:
org.xml.sax.SAXException

fatalError

public void fatalError(org.xml.sax.SAXParseException exception)
                throws org.xml.sax.SAXException
Specified by:
fatalError in interface org.xml.sax.ErrorHandler
Throws:
org.xml.sax.SAXException

warning

public void warning(org.xml.sax.SAXParseException exception)
             throws org.xml.sax.SAXException
Specified by:
warning in interface org.xml.sax.ErrorHandler
Throws:
org.xml.sax.SAXException


Copyright (C) Wolfgang Meier. All rights reserved.