Package com.polarion.platform.jobs.spi
Class PropertiesJobParameter
java.lang.Object
com.polarion.platform.jobs.spi.AbstractJobParameter
com.polarion.platform.jobs.spi.PropertiesJobParameter
- All Implemented Interfaces:
IJobDescriptor.IJobParameter
IJobDescriptor.IJobParameter
implementation which holds values of type Properties
.
Value passed to convertValue(Object)
can be one of these:
null
Properties
Map
Parameter type is IJobDescriptor.IJobParameterStructureType
with unknown item type class String
.
- Version:
- $Revision$ $Date$
- Author:
- Stepan Roh, Polarion Software
-
Constructor Summary
ConstructorsConstructorDescriptionPropertiesJobParameter
(IJobDescriptor.IJobParameterGroup group, String name, String label) 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
-
PropertiesJobParameter
Constructor.- Parameters:
group
- job parameter groupname
- job namelabel
- job label- Throws:
IllegalArgumentException
- if group isnull
IllegalArgumentException
- if name isnull
IllegalArgumentException
- if label 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
-