public class XMLConfigurationReaderImpl extends Object implements XMLConfigurationReader
XMLConfigurationReader
.Constructor and Description |
---|
XMLConfigurationReaderImpl() |
Modifier and Type | Method and Description |
---|---|
com.sdl.delivery.configuration.Configuration |
readConfiguration(File xmlFile)
Read the configuration from the given XML file.
|
com.sdl.delivery.configuration.Configuration |
readConfiguration(InputSource inputSource)
Read the configuration from the given input source.
|
com.sdl.delivery.configuration.Configuration |
readConfiguration(InputSource inputSource,
String schemaFileName)
Rea the configuration from the given input source, by also validating such configuration with the schema file
referred by the given schema file name.
|
com.sdl.delivery.configuration.Configuration |
readConfiguration(String xmlFileName)
Read the configuration from the XML file with the given name.
|
com.sdl.delivery.configuration.Configuration |
readConfiguration(String xmlFileName,
String schemaFileName)
Read the configuration from the XML file with the given name, by also validating such XML file with the schema
file referred by the given schema file name.
|
public com.sdl.delivery.configuration.Configuration readConfiguration(File xmlFile) throws com.sdl.delivery.configuration.ConfigurationException
XMLConfigurationReader
readConfiguration
in interface XMLConfigurationReader
xmlFile
- The given XML file as an instance of File
.com.sdl.delivery.configuration.ConfigurationException
public com.sdl.delivery.configuration.Configuration readConfiguration(String xmlFileName) throws com.sdl.delivery.configuration.ConfigurationException
XMLConfigurationReader
readConfiguration
in interface XMLConfigurationReader
xmlFileName
- The given XML file name.com.sdl.delivery.configuration.ConfigurationException
public com.sdl.delivery.configuration.Configuration readConfiguration(InputSource inputSource) throws com.sdl.delivery.configuration.ConfigurationException
XMLConfigurationReader
readConfiguration
in interface XMLConfigurationReader
inputSource
- The given input source.com.sdl.delivery.configuration.ConfigurationException
public com.sdl.delivery.configuration.Configuration readConfiguration(String xmlFileName, String schemaFileName) throws com.sdl.delivery.configuration.ConfigurationException
XMLConfigurationReader
readConfiguration
in interface XMLConfigurationReader
xmlFileName
- The given XML file name.schemaFileName
- The given XML schema file name.com.sdl.delivery.configuration.ConfigurationException
public com.sdl.delivery.configuration.Configuration readConfiguration(InputSource inputSource, String schemaFileName) throws com.sdl.delivery.configuration.ConfigurationException
XMLConfigurationReader
readConfiguration
in interface XMLConfigurationReader
inputSource
- The given input source.schemaFileName
- The given schema file name.com.sdl.delivery.configuration.ConfigurationException
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries