Class ConfigManager
- java.lang.Object
-
- oracle.spatial.network.lod.config.ConfigManager
-
public class ConfigManager extends java.lang.Object
This singleton class manages LOD configurations.- Since:
- 11gR1
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
VERSION_11
static java.lang.String
VERSION_12_1
static java.lang.String
VERSION_12_2
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LODConfig
getConfig(java.lang.String networkName)
Returns the LOD Configuration information for the specified network.static ConfigManager
getConfigManager()
Returns the singleton of ConfigManager.EngineConfig
getEngineConfig()
void
loadConfig(java.io.InputStream configXml)
Loads LOD configuration xml.void
loadConfig(org.w3c.dom.Element root)
void
setConfig(java.lang.String networkName, LODConfig config)
static void
validateConfigXml(javax.xml.transform.Source configXmlSource, java.lang.String version)
Validate the input configuration xml against the LOD configuration schema.
-
-
-
Field Detail
-
VERSION_11
public static final java.lang.String VERSION_11
- See Also:
- Constant Field Values
-
VERSION_12_1
public static final java.lang.String VERSION_12_1
- See Also:
- Constant Field Values
-
VERSION_12_2
public static final java.lang.String VERSION_12_2
- See Also:
- Constant Field Values
-
-
Method Detail
-
getConfigManager
public static ConfigManager getConfigManager()
Returns the singleton of ConfigManager.- Returns:
- the singleton of ConfigManager
-
loadConfig
public void loadConfig(java.io.InputStream configXml) throws LODConfigException
Loads LOD configuration xml.- Parameters:
configXml
- configuration xml in byte stream- Throws:
LODConfigException
-
loadConfig
public void loadConfig(org.w3c.dom.Element root) throws LODConfigException
- Throws:
LODConfigException
-
validateConfigXml
public static void validateConfigXml(javax.xml.transform.Source configXmlSource, java.lang.String version) throws org.xml.sax.SAXException, java.io.IOException
Validate the input configuration xml against the LOD configuration schema.- Parameters:
configXmlSource
- configuration xmlversion
- xml version. "11" for version 11, "12.1" for version 12.1.- Throws:
org.xml.sax.SAXException
java.io.IOException
-
getEngineConfig
public EngineConfig getEngineConfig()
-
getConfig
public LODConfig getConfig(java.lang.String networkName)
Returns the LOD Configuration information for the specified network.- Parameters:
networkName
- name of the network- Returns:
- LOD configuration information
-
setConfig
public void setConfig(java.lang.String networkName, LODConfig config)
-
-