|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.configuration.A_CmsXmlConfiguration
public abstract class A_CmsXmlConfiguration
Abstract base implementation for xml configurations.
| Field Summary |
|---|
| 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_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 |
| Fields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler |
|---|
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD |
| Constructor Summary | |
|---|---|
A_CmsXmlConfiguration()
Constructor. |
|
| Method Summary | |
|---|---|
void |
addConfigurationParameter(String paramName,
String paramValue)
Adds a configuration parameter to this parameter configurable class instance. |
CmsParameterConfiguration |
getConfiguration()
Returns the parameters of this configurable class instance, or null if the class does not need any parameters. |
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. |
void |
initConfiguration()
Initializes a configuration after all parameters have been added. |
protected abstract void |
initMembers()
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 Detail |
|---|
public A_CmsXmlConfiguration()
| Method Detail |
|---|
public void addConfigurationParameter(String paramName,
String paramValue)
I_CmsConfigurationParameterHandler
addConfigurationParameter in interface I_CmsConfigurationParameterHandlerparamName - the name of the parameterparamValue - the value for the parameterI_CmsConfigurationParameterHandler.addConfigurationParameter(java.lang.String, java.lang.String)public CmsParameterConfiguration getConfiguration()
I_CmsConfigurationParameterHandlernull if the class does not need any parameters.
getConfiguration in interface I_CmsConfigurationParameterHandlernull if the class does not need any parametersI_CmsConfigurationParameterHandler.getConfiguration()public String getDtdSystemLocation()
I_CmsXmlConfigurationorg/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()
getDtdSystemLocation in interface I_CmsXmlConfigurationI_CmsXmlConfiguration.getDtdSystemLocation()public String getDtdUrlPrefix()
I_CmsXmlConfigurationhttp://www.opencms.org/dtd/6.0/.
The full system id for the DTD is calculated like this:
.I_CmsXmlConfiguration.getDtdSystemLocation() + I_CmsXmlConfiguration.getDtdUrlPrefix()
getDtdUrlPrefix in interface I_CmsXmlConfigurationI_CmsXmlConfiguration.getDtdUrlPrefix()public String getXmlFileName()
I_CmsXmlConfigurationopencms.xml.
getXmlFileName in interface I_CmsXmlConfigurationI_CmsXmlConfiguration.getXmlFileName()public void initConfiguration()
I_CmsConfigurationParameterHandler
initConfiguration in interface I_CmsConfigurationParameterHandlerI_CmsConfigurationParameterHandler.initConfiguration()protected abstract void initMembers()
protected void setXmlFileName(String fileName)
fileName - the file name to set
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||