public class ItemCheckerParser extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ThreadSafeComponentManager<ItemChecker> |
_parameterCheckerManager
The parameter checker component manager.
|
private Map<ItemCheckerDescriptor,String> |
_parameterCheckersToLookup |
protected String |
_pluginName
The name of the plugin declaring this parameter checker
|
| Constructor and Description |
|---|
ItemCheckerParser(ThreadSafeComponentManager<ItemChecker> paramCheckerManager)
Create a parameter checker parser
|
| Modifier and Type | Method and Description |
|---|---|
protected ItemCheckerDescriptor |
_getParameterCheckerDescriptorInstance()
Get the parameter checker descriptor instance to use
|
protected I18nizableText |
_parseI18nizableText(Configuration config,
String pluginName,
String name)
Parses an i18n text.
|
protected void |
_setParameterChecker(String pluginName,
ItemCheckerDescriptor parameterChecker,
String parameterCheckerId,
Configuration parameterCheckerConfig)
Sets the parameter checker.
|
void |
lookupComponents()
Retrieves local parameter checkers components and sets them into
the previous parameter checker parsed.
|
ItemCheckerDescriptor |
parseParameterChecker(String pluginName,
Configuration paramCheckerConfig)
Parse a parameter checker from a XML configuration.
|
protected ThreadSafeComponentManager<ItemChecker> _parameterCheckerManager
protected String _pluginName
private final Map<ItemCheckerDescriptor,String> _parameterCheckersToLookup
public ItemCheckerParser(ThreadSafeComponentManager<ItemChecker> paramCheckerManager)
paramCheckerManager - the parameter checker.public ItemCheckerDescriptor parseParameterChecker(String pluginName, Configuration paramCheckerConfig) throws ConfigurationException
pluginName - the plugin's name declaring this parameter.paramCheckerConfig - the XML configuration.ItemCheckerDescriptor for the parsed parameter checkerConfigurationException - if the configuration is not valid.protected void _setParameterChecker(String pluginName, ItemCheckerDescriptor parameterChecker, String parameterCheckerId, Configuration parameterCheckerConfig) throws ConfigurationException
pluginName - the plugin's name.parameterChecker - the parameter checker.parameterCheckerId - the parameter chekcer's id.parameterCheckerConfig - the parameter checker's configuration.ConfigurationException - if the configuration is not valid.public void lookupComponents() throws Exception
Exception - if an error occurs.protected I18nizableText _parseI18nizableText(Configuration config, String pluginName, String name) throws ConfigurationException
config - the configuration to use.pluginName - the current plugin name.name - the child name.ConfigurationException - if the configuration is not valid.protected ItemCheckerDescriptor _getParameterCheckerDescriptorInstance()