Package org.ametys.web.service
Class ServiceParameter<T>
- java.lang.Object
-
- org.ametys.runtime.model.AbstractModelItem
-
- org.ametys.runtime.model.ElementDefinition<T>
-
- org.ametys.web.service.ServiceParameter<T>
-
- Type Parameters:
T
- Type of the parameter value
- All Implemented Interfaces:
Comparable<ModelItem>
,ModelItem
,Labelable
,ModifiableLabelable
public class ServiceParameter<T> extends ElementDefinition<T>
The definition of a service parameter
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.Logger
_logger
-
Fields inherited from class org.ametys.runtime.model.AbstractModelItem
__serviceManager
-
Fields inherited from interface org.ametys.runtime.model.ModelItem
ITEM_PATH_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description ServiceParameter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private T
_multipleDefaultValuesFromEnumeration(String defaultValue)
T
getDefaultValue()
Retrieves the default value.String
toString()
-
Methods inherited from class org.ametys.runtime.model.ElementDefinition
getCustomEnumerator, getCustomValidator, getDisableConditions, getEnumerator, getEnumeratorConfiguration, getPluginName, getType, getValidator, getValidatorConfiguration, getWidget, getWidgetParameters, isMultiple, of, setCustomEnumerator, setCustomValidator, setDefaultValue, setDisableConditions, setEnumerator, setEnumeratorConfiguration, setMultiple, setPluginName, setType, setValidator, setValidatorConfiguration, setWidget, setWidgetParameters, toJSON
-
Methods inherited from class org.ametys.runtime.model.AbstractModelItem
addItemChecker, compareTo, equals, getDescription, getItemCheckers, getLabel, getModel, getName, getParent, getPath, hashCode, setDescription, setLabel, setModel, setName, setParent, setServiceManager
-
-
-
-
Field Detail
-
_logger
private org.slf4j.Logger _logger
-
-
Constructor Detail
-
ServiceParameter
public ServiceParameter()
-
-
Method Detail
-
getDefaultValue
public T getDefaultValue()
Description copied from class:ElementDefinition
Retrieves the default value.- Overrides:
getDefaultValue
in classElementDefinition<T>
- Returns:
- the default value or
null
if none is defined.
-
_multipleDefaultValuesFromEnumeration
private T _multipleDefaultValuesFromEnumeration(String defaultValue) throws Exception
- Throws:
Exception
-
toString
public String toString()
- Overrides:
toString
in classAbstractModelItem
-
-