Package com.polarion.platform.jobs.spi
Class ArrayJobParameter
java.lang.Object
com.polarion.platform.jobs.spi.AbstractJobParameter
com.polarion.platform.jobs.spi.ArrayJobParameter
- All Implemented Interfaces:
IJobDescriptor.IJobParameter
Simple array
IJobDescriptor.IJobParameter
.
Value passed to convertValue(Object)
can be one of these:
If item of other type than class from associated IJobDescriptor.IJobParameterType.getTypeClass()
or its subclass
is encountered than the value is converted by passing its stringified value to the single-string-argument
constructor of associated IJobDescriptor.IJobParameterType.getTypeClass()
.
AbstractJobParameter.getType()
returns instance of IJobDescriptor.IJobParameterListType
.
- Since:
- 3.3.1
- Version:
- $Revision$ $Date$
- Author:
- Stepan Roh
- See Also:
-
Constructor Summary
ConstructorDescriptionArrayJobParameter
(IJobDescriptor.IJobParameterGroup group, String name, String label, IJobDescriptor.IJobParameterType itemType) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionconvertValue
(Object value) Helper method for conversion from arbitraryObject
to desired class.Methods inherited from class com.polarion.platform.jobs.spi.AbstractJobParameter
getDefaultValue, getDescription, getGroup, getLabel, getName, getType, isActive, isRequired, setActive, setDefaultValue, setDescription, setLabel, setRequired
-
Constructor Details
-
ArrayJobParameter
public ArrayJobParameter(IJobDescriptor.IJobParameterGroup group, String name, String label, IJobDescriptor.IJobParameterType itemType) Constructor.- Parameters:
group
- job parameter groupname
- job namelabel
- job labelitemType
- parameter type of array component- Throws:
IllegalArgumentException
- if group isnull
IllegalArgumentException
- if name isnull
IllegalArgumentException
- if label isnull
IllegalArgumentException
- if itemType isnull
-
-
Method Details
-
convertValue
Description copied from interface:IJobDescriptor.IJobParameter
Helper method for conversion from arbitraryObject
to desired class.It is not required that
null
is converted tonull
or that non-null
is not converted tonull
.- Parameters:
value
- arbitrary value (may benull
)- Returns:
- converted value or
null
-