org.opencms.configuration
Interface I_CmsXmlConfiguration

All Superinterfaces:
I_CmsConfigurationParameterHandler
All Known Implementing Classes:
A_CmsXmlConfiguration, CmsConfigurationManager, CmsImportExportConfiguration, CmsModuleConfiguration, CmsSearchConfiguration, CmsSystemConfiguration, CmsTestConfiguration, CmsVfsConfiguration, CmsWorkplaceConfiguration

public interface I_CmsXmlConfiguration
extends I_CmsConfigurationParameterHandler

Each configurable element in OpenCms must implement this interface.

Since:
6.0.0

Field Summary
static String A_ALIAS
          The "alias" attribute.
static String A_CLASS
          The "class" attribute.
static String A_COUNT
          The "count" attribute.
static String A_DEFAULT
          The "default" attribute.
static String A_DESTINATION
          The "destination" attribute.
static String A_ENABLED
          The "enabled" attibute.
static String A_FROM
          The "from" attribute.
static String A_HANDLER
          The "handler" attribute.
static String A_ICON
          The "icon" attribute.
static String A_ID
          The "id" attribute.
static String A_KEY
          The "key" attribute.
static String A_NAME
          The "name" attribute.
static String A_ORDER
          The "order" attribute.
static String A_PASSWORD
          The "password" attribute.
static String A_PORT
          The "protocol" attribute.
static String A_PROTOCOL
          The "protocol" attribute.
static String A_SUFFIX
          The suffix attribute.
static String A_TO
          The "to" attribute.
static String A_TYPE
          The "type" attribute.
static String A_URI
          The "uri" attribute.
static String A_USER
          The "user" attribute.
static String A_VALUE
          The "value" attribute.
static String N_EXPORTPOINT
          Individual export point node.
static String N_EXPORTPOINTS
          Export points master node.
static String N_NAME
          An individual name node.
static String N_PARAM
          The "param" node name for generic parameters.
static String N_PROPERTY
          An individual property node.
static String N_RESOURCE
          An individual resource node.
static String N_SITE
          An individual site node.
static String N_VALUE
          An individual value node.
 
Fields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD
 
Method Summary
 void addXmlDigesterRules(org.apache.commons.digester.Digester digester)
          Digests an XML node and creates an instance of this configurable class.
 Element generateXml(Element parent)
          Generates the XML element for this configurable class.
 String getDtdFilename()
          Returns the name of the DTD file for this XML configuration, e.g.
 String getDtdSystemLocation()
          Returns the internal system location of the DTD file for this XML configuration, e.g.
 String getDtdUrlPrefix()
          Returns the external system id prefix of the DTD file for this XML configuration, e.g.
 String getXmlFileName()
          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 Detail

A_ALIAS

static final String A_ALIAS
The "alias" attribute.

See Also:
Constant Field Values

A_CLASS

static final String A_CLASS
The "class" attribute.

See Also:
Constant Field Values

A_COUNT

static final String A_COUNT
The "count" attribute.

See Also:
Constant Field Values

A_DEFAULT

static final String A_DEFAULT
The "default" attribute.

See Also:
Constant Field Values

A_DESTINATION

static final String A_DESTINATION
The "destination" attribute.

See Also:
Constant Field Values

A_ENABLED

static final String A_ENABLED
The "enabled" attibute.

See Also:
Constant Field Values

A_FROM

static final String A_FROM
The "from" attribute.

See Also:
Constant Field Values

A_HANDLER

static final String A_HANDLER
The "handler" attribute.

See Also:
Constant Field Values

A_ICON

static final String A_ICON
The "icon" attribute.

See Also:
Constant Field Values

A_ID

static final String A_ID
The "id" attribute.

See Also:
Constant Field Values

A_KEY

static final String A_KEY
The "key" attribute.

See Also:
Constant Field Values

A_NAME

static final String A_NAME
The "name" attribute.

See Also:
Constant Field Values

A_ORDER

static final String A_ORDER
The "order" attribute.

See Also:
Constant Field Values

A_PASSWORD

static final String A_PASSWORD
The "password" attribute.

See Also:
Constant Field Values

A_PROTOCOL

static final String A_PROTOCOL
The "protocol" attribute.

See Also:
Constant Field Values

A_PORT

static final String A_PORT
The "protocol" attribute.

See Also:
Constant Field Values

A_SUFFIX

static final String A_SUFFIX
The suffix attribute.

See Also:
Constant Field Values

A_TO

static final String A_TO
The "to" attribute.

See Also:
Constant Field Values

A_TYPE

static final String A_TYPE
The "type" attribute.

See Also:
Constant Field Values

A_URI

static final String A_URI
The "uri" attribute.

See Also:
Constant Field Values

A_USER

static final String A_USER
The "user" attribute.

See Also:
Constant Field Values

A_VALUE

static final String A_VALUE
The "value" attribute.

See Also:
Constant Field Values

N_EXPORTPOINT

static final String N_EXPORTPOINT
Individual export point node.

See Also:
Constant Field Values

N_EXPORTPOINTS

static final String N_EXPORTPOINTS
Export points master node.

See Also:
Constant Field Values

N_NAME

static final String N_NAME
An individual name node.

See Also:
Constant Field Values

N_PARAM

static final String N_PARAM
The "param" node name for generic parameters.

See Also:
Constant Field Values

N_PROPERTY

static final String N_PROPERTY
An individual property node.

See Also:
Constant Field Values

N_RESOURCE

static final String N_RESOURCE
An individual resource node.

See Also:
Constant Field Values

N_SITE

static final String N_SITE
An individual site node.

See Also:
Constant Field Values

N_VALUE

static final String N_VALUE
An individual value node.

See Also:
Constant Field Values
Method Detail

addXmlDigesterRules

void addXmlDigesterRules(org.apache.commons.digester.Digester digester)
Digests an XML node and creates an instance of this configurable class.

Parameters:
digester - the digester to use

generateXml

Element generateXml(Element parent)
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

String 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(), getDtdUrlPrefix()

getDtdSystemLocation

String 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(), getDtdFilename()

getDtdUrlPrefix

String 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:
getDtdSystemLocation(), getDtdFilename()

getXmlFileName

String 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