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 inherited from class org.ametys.runtime.model.ElementDefinition
_logger, CONFIG_DEFAULT_VALUE_TYPE
-
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 <X> X
getDefaultValue()
Retrieves the default value, as an object corresponding to the definition's type and cardinality Retrievesnull
if no default value is defined for this definitionString
toString()
-
Methods inherited from class org.ametys.runtime.model.ElementDefinition
_getDefaultValue, _getParsedDefaultValues, _toJSON, getCustomEnumerator, getCustomValidator, getEnumerator, getEnumeratorConfiguration, getType, getValidator, getValidatorConfiguration, isMultiple, of, setCustomEnumerator, setCustomValidator, setDefaultValue, setEnumerator, setEnumeratorConfiguration, setMultiple, setParsedDefaultValues, setType, setValidator, setValidatorConfiguration, toSAX
-
Methods inherited from class org.ametys.runtime.model.AbstractModelItem
_shouldJSONBeEmpty, _widgetParameterToSAX, _widgetToSAX, addItemChecker, compareTo, equals, getDescription, getDisableConditions, getItemCheckers, getLabel, getModel, getName, getParent, getPath, getPluginName, getWidget, getWidgetParameters, hashCode, setDescription, setDisableConditions, setLabel, setModel, setName, setParent, setPluginName, setServiceManager, setWidget, setWidgetParameters, toJSON
-
-
-
-
Constructor Detail
-
ServiceParameter
public ServiceParameter()
-
-
Method Detail
-
getDefaultValue
public <X> X getDefaultValue()
Description copied from class:ElementDefinition
Retrieves the default value, as an object corresponding to the definition's type and cardinality Retrievesnull
if no default value is defined for this definition- Overrides:
getDefaultValue
in classElementDefinition<T>
- Type Parameters:
X
- The type of the default value- Returns:
- the default value.
-
toString
public String toString()
- Overrides:
toString
in classAbstractModelItem
-
-