Package org.ametys.runtime.config
Class ConfigParameterCheckerParser
java.lang.Object
org.ametys.runtime.model.checker.ItemCheckerParser
org.ametys.runtime.config.ConfigParameterCheckerParser
Parameter checker parser for configuration parameters
-
Field Summary
Fields inherited from class org.ametys.runtime.model.checker.ItemCheckerParser
_parameterCheckerManager, _pluginName
-
Constructor Summary
ConstructorDescriptionConfigParameterCheckerParser
(ThreadSafeComponentManager<ItemChecker> paramCheckerManager) Instantiate a configuration parameter checker parser -
Method Summary
Modifier and TypeMethodDescriptionprotected ConfigParameterCheckerDescriptor
Get the parameter checker descriptor instance to useparseParameterChecker
(String pluginName, Configuration paramCheckerConfig) Parse a configuration parameter checker from an XML configuration.Methods inherited from class org.ametys.runtime.model.checker.ItemCheckerParser
_parseI18nizableText, _setParameterChecker, lookupComponents
-
Constructor Details
-
ConfigParameterCheckerParser
Instantiate a configuration parameter checker parser- Parameters:
paramCheckerManager
- the parameter checker.
-
-
Method Details
-
parseParameterChecker
public ConfigParameterCheckerDescriptor parseParameterChecker(String pluginName, Configuration paramCheckerConfig) throws ConfigurationException Parse a configuration parameter checker from an XML configuration.- Overrides:
parseParameterChecker
in classItemCheckerParser
- Parameters:
pluginName
- the plugin's name declaring this parameter.paramCheckerConfig
- the XML configuration.- Returns:
- the
ConfigParameterCheckerDescriptor
for the parsed configuration parameter checker - Throws:
ConfigurationException
- if the configuration is not valid.
-
_getParameterCheckerDescriptorInstance
Description copied from class:ItemCheckerParser
Get the parameter checker descriptor instance to use- Overrides:
_getParameterCheckerDescriptorInstance
in classItemCheckerParser
- Returns:
- the parameter checker descriptor instance to use
-