public class CmsElementWithSubElementsParamConfigHelper extends java.lang.Object
| Constructor and Description |
|---|
CmsElementWithSubElementsParamConfigHelper(java.lang.String parentPath,
java.lang.String name,
java.lang.Class<?> cls,
java.lang.String... subElements)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRules(org.apache.commons.digester3.Digester digester)
Adds the configuration parsing rules to the digester.
|
void |
generateXml(org.dom4j.Element parent,
I_CmsConfigurationParameterHandler config)
Generates the XML configuration from the given configuration object.
|
java.lang.String |
getBasePath()
Gets the xPath of the configuration element.
|
public CmsElementWithSubElementsParamConfigHelper(java.lang.String parentPath, java.lang.String name, java.lang.Class<?> cls, java.lang.String... subElements)
parentPath - the parent XPathname - the XML element namecls - the class to use for the configuration (must be subclass of I_CmsConfigurationParameterHandler)subElements - the attributes to read / writepublic void addRules(org.apache.commons.digester3.Digester digester)
digester - the digester to which the rules should be addedpublic void generateXml(org.dom4j.Element parent, I_CmsConfigurationParameterHandler config)
parent - the parent elementconfig - the configurationpublic java.lang.String getBasePath()