Package org.opencms.xml.content
Class CmsChangeHandlerConfig
java.lang.Object
org.opencms.xml.content.CmsChangeHandlerConfig
A configuration bean representing a <ChangeHandler> element configured in an XSD's field settings.
-
Constructor Summary
ConstructorDescriptionCmsChangeHandlerConfig
(String field, String className, String config) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the class name for the handler.Gets the configuration string for the handler.getField()
Gets the field name for which the handler is configured.newHandler
(String scope) Creates a new handler instance using this configuration and the given scope.
-
Constructor Details
-
CmsChangeHandlerConfig
Creates a new instance.- Parameters:
field
- the field nameclassName
- the handler class nameconfig
- the configuration string
-
-
Method Details
-
getClassName
Gets the class name for the handler.- Returns:
- the class name
-
getConfig
Gets the configuration string for the handler.- Returns:
- the configuration string
-
getField
Gets the field name for which the handler is configured.- Returns:
- the field name for which the handler is configured
-
newHandler
Creates a new handler instance using this configuration and the given scope.- Parameters:
scope
- the scope- Returns:
- the new handler instance
-