public class ServiceParameterDefinitionParser extends ElementDefinitionParser
_modelItemTypeExtensionPoint
Constructor and Description |
---|
ServiceParameterDefinitionParser(ServiceParameterTypeExtensionPoint serviceParameterTypeExtensionPoint,
ThreadSafeComponentManager<Enumerator> enumeratorManager,
ThreadSafeComponentManager<Validator> validatorManager)
Creates a service parameter definition parser.
|
Modifier and Type | Method and Description |
---|---|
protected ServiceParameter |
_createModelItem(Configuration definitionConfig)
Create the model item to populate it.
|
protected String |
_parseName(Configuration definitionConfig)
Parses the name of the model item.
|
ServiceParameter |
parse(ServiceManager serviceManager,
String pluginName,
Configuration definitionConfig,
Model model,
ModelItemGroup parent)
Parses an element definition from a XML configuration.
|
_parseAndSetEnumerator, _parseAndSetValidator, _parseDefaultValue, _parseDisableConditions, _parseMultiple, _parseWidget, _parseWidgetParameters, lookupComponents
_getNameConfigurationAttribute, _parseI18nizableText, _parseType
public ServiceParameterDefinitionParser(ServiceParameterTypeExtensionPoint serviceParameterTypeExtensionPoint, ThreadSafeComponentManager<Enumerator> enumeratorManager, ThreadSafeComponentManager<Validator> validatorManager)
serviceParameterTypeExtensionPoint
- the extension point to use to get available element typesenumeratorManager
- the enumerator component manager.validatorManager
- the validator component manager.public ServiceParameter parse(ServiceManager serviceManager, String pluginName, Configuration definitionConfig, Model model, ModelItemGroup parent) throws ConfigurationException
AbstractModelItemParser
parse
in class ElementDefinitionParser
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 parentConfigurationException
- if the configuration is not valid.protected ServiceParameter _createModelItem(Configuration definitionConfig) throws ConfigurationException
AbstractModelItemParser
_createModelItem
in class ElementDefinitionParser
definitionConfig
- the model item configuration to use.ConfigurationException
- if the configuration is not valid.protected String _parseName(Configuration definitionConfig) throws ConfigurationException
AbstractModelItemParser
_parseName
in class AbstractModelItemParser
definitionConfig
- the model item configuration to use.ConfigurationException
- if the configuration is not valid.