Package org.ametys.runtime.model
Interface ItemParserHelper.DefaultValueParser
- Enclosing class:
ItemParserHelper
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Default value parser
-
Method Summary
Modifier and TypeMethodDescriptionparseDefaultValue
(Configuration defaultValueConfig, ElementDefinition definition, String defaultValueType) Parses the default value.
-
Method Details
-
parseDefaultValue
Object parseDefaultValue(Configuration defaultValueConfig, ElementDefinition definition, String defaultValueType) throws ConfigurationException Parses the default value.- Parameters:
defaultValueConfig
- the default value configuration.definition
- the element definition.defaultValueType
- the type of the default value- Returns:
- the default value or
null
if none default value is defined. - Throws:
ConfigurationException
- if the configuration is not valid.
-