Class ConfigManager
- java.lang.Object
-
- oracle.spatial.network.lod.config.ConfigManager
-
public class ConfigManager extends java.lang.ObjectThis singleton class manages LOD configurations.- Since:
- 11gR1
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringVERSION_11static java.lang.StringVERSION_12_1static java.lang.StringVERSION_12_2
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LODConfiggetConfig(java.lang.String networkName)Returns the LOD Configuration information for the specified network.static ConfigManagergetConfigManager()Returns the singleton of ConfigManager.EngineConfiggetEngineConfig()voidloadConfig(java.io.InputStream configXml)Loads LOD configuration xml.voidloadConfig(org.w3c.dom.Element root)voidsetConfig(java.lang.String networkName, LODConfig config)static voidvalidateConfigXml(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 LODConfigExceptionLoads 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.IOExceptionValidate 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.SAXExceptionjava.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)
-
-