Package com.polarion.platform.jobs
Interface IJobDescriptor.IJobParameter
- All Known Implementing Classes:
AbstractJobParameter,ArrayJobParameter,BuildArtifactJobParameter,LocationJobParameter,PathJobParameter,PropertiesJobParameter,SimpleJobParameter
- Enclosing interface:
- IJobDescriptor
public static interface IJobDescriptor.IJobParameter
Job parameter descriptor.
- Author:
- Stepan Roh, Polarion Software
-
Method Summary
Modifier and TypeMethodDescriptionconvertValue(Object value) Helper method for conversion from arbitraryObjectto desired class.Default value.Human-readable description (if any).getGroup()Parent group.getLabel()Human-readable label.getName()Name.getType()Type.booleanisActive()Whether this parameter is active.booleanWhether this parameter is required.
-
Method Details
-
getGroup
IJobDescriptor.IJobParameterGroup getGroup()Parent group.Protected from dynamic change.
- Returns:
- parameter group (not
null)
-
getName
String getName()Name.Unique within one job descriptor.
Protected from dynamic change.
- Returns:
- name (not
null)
-
getLabel
String getLabel()Human-readable label.- Returns:
- label (not
null)
-
getDescription
String getDescription()Human-readable description (if any).- Returns:
- description or
null
-
getType
IJobDescriptor.IJobParameterType getType()Type.Protected from dynamic change.
- Returns:
- type (not
null)
-
isRequired
boolean isRequired()Whether this parameter is required.Only relevant if
isActive()istrue.- Returns:
trueif parameter is required,falseotherwise
-
isActive
boolean isActive()Whether this parameter is active.(In)activity is used in dynamic descriptors to mark configuration currently unnecessary.
- Returns:
trueif this parameter is active,falseotherwise
-
getDefaultValue
Object getDefaultValue()Default value.- Returns:
- default value or
null
-
convertValue
Helper method for conversion from arbitraryObjectto desired class.It is not required that
nullis converted tonullor that non-nullis not converted tonull.- Parameters:
value- arbitrary value (may benull)- Returns:
- converted value or
null - Throws:
IllegalArgumentException- if value can not be converted
-