Package org.ametys.runtime.config
Class ConfigParameterDefinitionWrapperParser
- java.lang.Object
-
- org.ametys.runtime.model.CategorizedElementDefinitionParser
-
- org.ametys.runtime.config.ConfigParameterDefinitionWrapperParser
-
public class ConfigParameterDefinitionWrapperParser extends CategorizedElementDefinitionParser
Parser for configuration parameter wrappers
-
-
Constructor Summary
Constructors Constructor Description ConfigParameterDefinitionWrapperParser(ElementDefinitionParser parser)
Creates a configuration parameter definition parser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ConfigParameterDefinitionWrapper
_createElementDefinitionWrapper()
Create the element definition wrapper to populate it.ConfigParameterDefinitionWrapper
parse(ServiceManager serviceManager, String pluginName, Configuration definitionConfig, Model model, ModelItemGroup parent)
Parses an element definition from a XML configuration.-
Methods inherited from class org.ametys.runtime.model.CategorizedElementDefinitionParser
_parseI18nizableText
-
-
-
-
Constructor Detail
-
ConfigParameterDefinitionWrapperParser
public ConfigParameterDefinitionWrapperParser(ElementDefinitionParser parser)
Creates a configuration parameter definition parser.- Parameters:
parser
- the element definition parser
-
-
Method Detail
-
parse
public ConfigParameterDefinitionWrapper parse(ServiceManager serviceManager, String pluginName, Configuration definitionConfig, Model model, ModelItemGroup parent) throws ConfigurationException
Description copied from class:CategorizedElementDefinitionParser
Parses an element definition from a XML configuration.- Overrides:
parse
in classCategorizedElementDefinitionParser
- Parameters:
serviceManager
- the service managerpluginName
- the plugin name declaring this item.definitionConfig
- the XML configuration of the model item.model
- the model which defines the model itemparent
- the parent of the model item to create. Can be null if the model item to parse has no parent- Returns:
- the parsed model item.
- Throws:
ConfigurationException
- if the configuration is not valid.
-
_createElementDefinitionWrapper
protected ConfigParameterDefinitionWrapper _createElementDefinitionWrapper()
Description copied from class:CategorizedElementDefinitionParser
Create the element definition wrapper to populate it.- Overrides:
_createElementDefinitionWrapper
in classCategorizedElementDefinitionParser
- Returns:
- the wrapper instantiated.
-
-