|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exist.util.Configuration
| Nested Class Summary | |
static class |
Configuration.SystemTaskConfig
|
| Field Summary | |
protected javax.xml.parsers.DocumentBuilder |
builder
|
protected java.util.HashMap |
config
|
protected static java.io.File |
existHome
|
protected static java.lang.String |
file
|
| Constructor Summary | |
Configuration()
|
|
Configuration(java.lang.String configFilename)
|
|
Configuration(java.lang.String configFilename,
java.lang.String existHomeDirname)
|
|
| Method Summary | |
void |
error(org.xml.sax.SAXParseException exception)
|
void |
fatalError(org.xml.sax.SAXParseException exception)
|
static java.io.File |
getExistHome()
Returns a file handle for eXist's home directory. |
static java.io.File |
getExistHome(java.lang.String path)
Returns a file handle for eXist's home directory. |
int |
getInteger(java.lang.String name)
|
static java.lang.String |
getPath()
Returns the absolut path to the configuration file. |
java.lang.Object |
getProperty(java.lang.String name)
|
boolean |
hasProperty(java.lang.String name)
|
static java.io.File |
lookup(java.lang.String path)
Returns a file handle for the given path, while path specifies
the path to an eXist configuration file or directory. |
static java.io.File |
lookup(java.lang.String path,
java.lang.String parent)
Returns a file handle for the given path, while path specifies
the path to an eXist configuration file or directory. |
void |
setProperty(java.lang.String name,
java.lang.Object obj)
|
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 |
protected static java.lang.String file
protected static java.io.File existHome
protected javax.xml.parsers.DocumentBuilder builder
protected java.util.HashMap config
| Constructor Detail |
public Configuration()
throws DatabaseConfigurationException
public Configuration(java.lang.String configFilename)
throws DatabaseConfigurationException
public Configuration(java.lang.String configFilename,
java.lang.String existHomeDirname)
throws DatabaseConfigurationException
| Method Detail |
public java.lang.Object getProperty(java.lang.String name)
public boolean hasProperty(java.lang.String name)
public void setProperty(java.lang.String name,
java.lang.Object obj)
public int getInteger(java.lang.String name)
public static java.lang.String getPath()
public static java.io.File lookup(java.lang.String path)
path specifies
the path to an eXist configuration file or directory.
exist.home
or the current working directory, in case exist.home was not set.
path - the file path
public static java.io.File lookup(java.lang.String path,
java.lang.String parent)
path specifies
the path to an eXist configuration file or directory.
parent is null, then relative paths are being interpreted
relative to exist.home or the current working directory, in
case exist.home was not set.
path - path to the file or directoryparent - parent directory used to lookup path
public static java.io.File getExistHome()
If either none of the directories identified by the system properties
exist.home and user.home exist or none of
them contain a configuration file, this method returns null.
nullpublic static java.io.File getExistHome(java.lang.String path)
path - path to eXist home directory
null
public void error(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
error in interface org.xml.sax.ErrorHandlerorg.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
fatalError in interface org.xml.sax.ErrorHandlerorg.xml.sax.SAXException
public void warning(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
warning in interface org.xml.sax.ErrorHandlerorg.xml.sax.SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||