Package org.opencms.configuration
Class A_CmsXmlConfiguration
java.lang.Object
org.opencms.configuration.A_CmsXmlConfiguration
- All Implemented Interfaces:
I_CmsConfigurationParameterHandler
,I_CmsXmlConfiguration
- Direct Known Subclasses:
CmsImportExportConfiguration
,CmsModuleConfiguration
,CmsSchedulerConfiguration
,CmsSearchConfiguration
,CmsSitesConfiguration
,CmsSystemConfiguration
,CmsVariablesConfiguration
,CmsVfsConfiguration
,CmsWorkplaceConfiguration
Abstract base implementation for xml configurations.
- Since:
- 6.0.0
-
Field Summary
Fields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD
Fields inherited from interface org.opencms.configuration.I_CmsXmlConfiguration
A_ALIAS, A_CLASS, A_COUNT, A_DEFAULT, A_DESTINATION, A_ENABLED, A_FROM, A_HANDLER, A_ICON, A_ID, A_KEY, A_MODE, A_NAME, A_ORDER, A_PASSWORD, A_PORT, A_PROTOCOL, A_SUFFIX, A_TO, A_TYPE, A_URI, A_USER, A_VALUE, N_EXPORTPOINT, N_EXPORTPOINTS, N_NAME, N_PARAM, N_PROPERTY, N_RESOURCE, N_SITE, N_VALUE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addConfigurationParameter
(String paramName, String paramValue) Adds a configuration parameter to this parameter configurable class instance.Returns the parameters of this configurable class instance, ornull
if the class does not need any parameters.Returns the internal system location of the DTD file for this XML configuration, e.g.Returns the external system id prefix of the DTD file for this XML configuration, e.g.Returns the name of the XML input file for this configuration, e.g.void
Initializes a configuration after all parameters have been added.protected abstract void
Initializes member variables.protected void
setXmlFileName
(String fileName) Sets the file name of this XML configuration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opencms.configuration.I_CmsXmlConfiguration
addXmlDigesterRules, generateXml, getDtdFilename
-
Constructor Details
-
A_CmsXmlConfiguration
public A_CmsXmlConfiguration()Constructor.
-
-
Method Details
-
addConfigurationParameter
Description copied from interface:I_CmsConfigurationParameterHandler
Adds a configuration parameter to this parameter configurable class instance.- Specified by:
addConfigurationParameter
in interfaceI_CmsConfigurationParameterHandler
- Parameters:
paramName
- the name of the parameterparamValue
- the value for the parameter- See Also:
-
getConfiguration
Description copied from interface:I_CmsConfigurationParameterHandler
Returns the parameters of this configurable class instance, ornull
if the class does not need any parameters.- Specified by:
getConfiguration
in interfaceI_CmsConfigurationParameterHandler
- Returns:
- the parameters of this configurable class instance,
or
null
if the class does not need any parameters - See Also:
-
getDtdSystemLocation
Description copied from interface:I_CmsXmlConfiguration
Returns the internal system location of the DTD file for this XML configuration, e.g.org/opencms/configuration/
.If this is not
null
, then the DTD is not read through the web URL, but an internal name resolution is added that resolves the system id of the DTD to
.I_CmsXmlConfiguration.getDtdSystemLocation()
+I_CmsXmlConfiguration.getDtdUrlPrefix()
- Specified by:
getDtdSystemLocation
in interfaceI_CmsXmlConfiguration
- Returns:
- the system location of the DTD file for this XML configuration
- See Also:
-
getDtdUrlPrefix
Description copied from interface:I_CmsXmlConfiguration
Returns the external system id prefix of the DTD file for this XML configuration, e.g.http://www.opencms.org/dtd/6.0/
.The full system id for the DTD is calculated like this:
.I_CmsXmlConfiguration.getDtdSystemLocation()
+I_CmsXmlConfiguration.getDtdUrlPrefix()
- Specified by:
getDtdUrlPrefix
in interfaceI_CmsXmlConfiguration
- Returns:
- the system id prefix of the DTD file for this XML configuration
- See Also:
-
getXmlFileName
Description copied from interface:I_CmsXmlConfiguration
Returns the name of the XML input file for this configuration, e.g.opencms.xml
.- Specified by:
getXmlFileName
in interfaceI_CmsXmlConfiguration
- Returns:
- the name of the XML input file for this configuration
- See Also:
-
initConfiguration
Description copied from interface:I_CmsConfigurationParameterHandler
Initializes a configuration after all parameters have been added.- Specified by:
initConfiguration
in interfaceI_CmsConfigurationParameterHandler
- See Also:
-
initMembers
Initializes member variables. -
setXmlFileName
Sets the file name of this XML configuration.- Parameters:
fileName
- the file name to set
-