public class ConfigParameterParser extends AbstractParameterParser<ConfigParameter,ParameterHelper.ParameterType>
_enumeratorManager, _validatorManager
Constructor and Description |
---|
ConfigParameterParser(ThreadSafeComponentManager<Enumerator> enumeratorManager,
ThreadSafeComponentManager<Validator> validatorManager)
The configuration parameter parser constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
_additionalParsing(ServiceManager manager,
String pluginName,
Configuration parameterConfig,
String parameterId,
ConfigParameter parameter)
Called for additional parsing.
Default implementation does nothing. |
protected ConfigParameter |
_createParameter(Configuration parameterConfig)
Create the parameter to populate it.
|
protected Object |
_parseDefaultValue(Configuration parameterConfig,
ConfigParameter parameter)
Parses the default value.
|
protected DisableConditions |
_parseDisableConditions(Configuration disableConditionConfiguration)
Parses the disable condition.
|
protected String |
_parseId(Configuration parameterConfig)
Parses the id.
|
protected ParameterHelper.ParameterType |
_parseType(Configuration parameterConfig)
Parses the type.
|
_parseAndSetEnumerator, _parseAndSetValidator, _parseI18nizableText, _parseWidget, _parseWidgetParameters, lookupComponents, parseParameter
public ConfigParameterParser(ThreadSafeComponentManager<Enumerator> enumeratorManager, ThreadSafeComponentManager<Validator> validatorManager)
enumeratorManager
- The manager for enumaratorsvalidatorManager
- The manager for validatorsprotected ConfigParameter _createParameter(Configuration parameterConfig) throws ConfigurationException
AbstractParameterParser
_createParameter
in class AbstractParameterParser<ConfigParameter,ParameterHelper.ParameterType>
parameterConfig
- the parameter configuration to use.ConfigurationException
- if the configuration is not valid.protected String _parseId(Configuration parameterConfig) throws ConfigurationException
AbstractParameterParser
_parseId
in class AbstractParameterParser<ConfigParameter,ParameterHelper.ParameterType>
parameterConfig
- the parameter configuration to use.ConfigurationException
- if the configuration is not valid.protected ParameterHelper.ParameterType _parseType(Configuration parameterConfig) throws ConfigurationException
AbstractParameterParser
_parseType
in class AbstractParameterParser<ConfigParameter,ParameterHelper.ParameterType>
parameterConfig
- the parameter configuration to use.ConfigurationException
- if the configuration is not valid.protected Object _parseDefaultValue(Configuration parameterConfig, ConfigParameter parameter)
AbstractParameterParser
_parseDefaultValue
in class AbstractParameterParser<ConfigParameter,ParameterHelper.ParameterType>
parameterConfig
- the parameter configuration.parameter
- the parameter.null
if none defined.protected DisableConditions _parseDisableConditions(Configuration disableConditionConfiguration) throws ConfigurationException
disableConditionConfiguration
- the configuration of the disable conditionConfigurationException
- if an error occurredprotected void _additionalParsing(ServiceManager manager, String pluginName, Configuration parameterConfig, String parameterId, ConfigParameter parameter) throws ConfigurationException
AbstractParameterParser
_additionalParsing
in class AbstractParameterParser<ConfigParameter,ParameterHelper.ParameterType>
manager
- the sservice manager.pluginName
- the plugin name.parameterConfig
- the parameter configuration.parameterId
- the parameter id.parameter
- the parameter to populate.ConfigurationException
- if the configuration is not valid.