Package org.opencms.configuration
Interface I_CmsXmlConfiguration
- All Superinterfaces:
I_CmsConfigurationParameterHandler
- All Known Subinterfaces:
I_CmsXmlConfigurationWithUpdateHandler
- All Known Implementing Classes:
A_CmsXmlConfiguration,CmsConfigurationManager,CmsImportExportConfiguration,CmsModuleConfiguration,CmsSchedulerConfiguration,CmsSearchConfiguration,CmsSitesConfiguration,CmsSystemConfiguration,CmsVariablesConfiguration,CmsVfsConfiguration,CmsWorkplaceConfiguration
Each configurable element in OpenCms must implement this interface.
- Since:
- 6.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe "alias" attribute.static final StringThe "class" attribute.static final StringThe "count" attribute.static final StringThe "default" attribute.static final StringThe "destination" attribute.static final StringThe "enabled" attibute.static final StringThe "from" attribute.static final StringThe "handler" attribute.static final StringThe "icon" attribute.static final StringThe "id" attribute.static final StringThe "key" attribute.static final StringThe "mode" attribute.static final StringThe "name" attribute.static final StringThe "order" attribute.static final StringThe "password" attribute.static final StringThe "protocol" attribute.static final StringThe "protocol" attribute.static final StringThe suffix attribute.static final StringThe "to" attribute.static final StringThe "type" attribute.static final StringThe "uri" attribute.static final StringThe "user" attribute.static final StringThe "value" attribute.static final StringIndividual export point node.static final StringExport points master node.static final StringAn individual name node.static final StringThe "param" node name for generic parameters.static final StringAn individual property node.static final StringAn individual resource node.static final StringAn individual site node.static final StringAn individual value node.Fields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD -
Method Summary
Modifier and TypeMethodDescriptionvoidaddXmlDigesterRules(org.apache.commons.digester3.Digester digester) Digests an XML node and creates an instance of this configurable class.org.dom4j.ElementgenerateXml(org.dom4j.Element parent) Generates the XML element for this configurable class.Returns the name of the DTD file for this XML configuration, e.g.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.Methods inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
addConfigurationParameter, getConfiguration, initConfiguration
-
Field Details
-
A_ALIAS
The "alias" attribute.- See Also:
-
A_CLASS
The "class" attribute.- See Also:
-
A_COUNT
The "count" attribute.- See Also:
-
A_DEFAULT
The "default" attribute.- See Also:
-
A_DESTINATION
The "destination" attribute.- See Also:
-
A_ENABLED
The "enabled" attibute.- See Also:
-
A_FROM
The "from" attribute.- See Also:
-
A_HANDLER
The "handler" attribute.- See Also:
-
A_ICON
The "icon" attribute.- See Also:
-
A_ID
The "id" attribute.- See Also:
-
A_KEY
The "key" attribute.- See Also:
-
A_NAME
The "name" attribute.- See Also:
-
A_ORDER
The "order" attribute.- See Also:
-
A_PASSWORD
The "password" attribute.- See Also:
-
A_PROTOCOL
The "protocol" attribute.- See Also:
-
A_PORT
The "protocol" attribute.- See Also:
-
A_SUFFIX
The suffix attribute.- See Also:
-
A_TO
The "to" attribute.- See Also:
-
A_TYPE
The "type" attribute.- See Also:
-
A_MODE
The "mode" attribute.- See Also:
-
A_URI
The "uri" attribute.- See Also:
-
A_USER
The "user" attribute.- See Also:
-
A_VALUE
The "value" attribute.- See Also:
-
N_EXPORTPOINT
Individual export point node.- See Also:
-
N_EXPORTPOINTS
Export points master node.- See Also:
-
N_NAME
An individual name node.- See Also:
-
N_PARAM
The "param" node name for generic parameters.- See Also:
-
N_PROPERTY
An individual property node.- See Also:
-
N_RESOURCE
An individual resource node.- See Also:
-
N_SITE
An individual site node.- See Also:
-
N_VALUE
An individual value node.- See Also:
-
-
Method Details
-
addXmlDigesterRules
Digests an XML node and creates an instance of this configurable class.- Parameters:
digester- the digester to use
-
generateXml
Generates the XML element for this configurable class.- Parameters:
parent- the parent element in the XML tree- Returns:
- the XML element for this configurable class
-
getDtdFilename
Returns the name of the DTD file for this XML configuration, e.g.opencms-configuration.dtd.- Returns:
- the name of the DTD file for this XML configuration
- See Also:
-
getDtdSystemLocation
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.getDtdSystemLocation()+getDtdUrlPrefix()- Returns:
- the system location of the DTD file for this XML configuration
- See Also:
-
getDtdUrlPrefix
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:
.getDtdSystemLocation()+getDtdUrlPrefix()- Returns:
- the system id prefix of the DTD file for this XML configuration
- See Also:
-
getXmlFileName
Returns the name of the XML input file for this configuration, e.g.opencms.xml.- Returns:
- the name of the XML input file for this configuration
-