Package org.ametys.web.service
Class ServiceParameterDefinitionParser
- java.lang.Object
-
- org.ametys.runtime.model.AbstractModelItemParser
-
- org.ametys.runtime.model.ElementDefinitionParser
-
- org.ametys.web.service.ServiceParameterDefinitionParser
-
public class ServiceParameterDefinitionParser extends ElementDefinitionParser
This class parses the service parameter definition
-
-
Field Summary
-
Fields inherited from class org.ametys.runtime.model.AbstractModelItemParser
_modelItemTypeExtensionPoint
-
-
Constructor Summary
Constructors Constructor Description ServiceParameterDefinitionParser(ServiceParameterTypeExtensionPoint serviceParameterTypeExtensionPoint, ThreadSafeComponentManager<Enumerator> enumeratorManager, ThreadSafeComponentManager<Validator> validatorManager)
Creates a service parameter definition parser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class org.ametys.runtime.model.ElementDefinitionParser
_parseAndSetEnumerator, _parseAndSetValidator, _parseDefaultValue, _parseDefaultValues, _parseMultiple, lookupComponents, parse
-
Methods inherited from class org.ametys.runtime.model.AbstractModelItemParser
_getNameConfigurationAttribute, _parseDisableConditions, _parseI18nizableText, _parseI18nizableText, _parseType, _parseWidget, _parseWidgetParameters, parse
-
-
-
-
Constructor Detail
-
ServiceParameterDefinitionParser
public ServiceParameterDefinitionParser(ServiceParameterTypeExtensionPoint serviceParameterTypeExtensionPoint, ThreadSafeComponentManager<Enumerator> enumeratorManager, ThreadSafeComponentManager<Validator> validatorManager)
Creates a service parameter definition parser.- Parameters:
serviceParameterTypeExtensionPoint
- the extension point to use to get available element typesenumeratorManager
- the enumerator component manager.validatorManager
- the validator component manager.
-
-
Method Detail
-
_createModelItem
protected ServiceParameter _createModelItem(Configuration definitionConfig) throws ConfigurationException
Description copied from class:AbstractModelItemParser
Create the model item to populate it.- Overrides:
_createModelItem
in classElementDefinitionParser
- Parameters:
definitionConfig
- the model item configuration to use.- Returns:
- the item instantiated.
- Throws:
ConfigurationException
- if the configuration is not valid.
-
_parseName
protected String _parseName(Configuration definitionConfig) throws ConfigurationException
Description copied from class:AbstractModelItemParser
Parses the name of the model item.- Overrides:
_parseName
in classAbstractModelItemParser
- Parameters:
definitionConfig
- the model item configuration to use.- Returns:
- the name of the model item.
- Throws:
ConfigurationException
- if the configuration is not valid.
-
-