public abstract class ParameterDefinitionBranchProperty extends BranchProperty
Modifier | Constructor and Description |
---|---|
protected |
ParameterDefinitionBranchProperty()
Subclasses should have a
DataBoundConstructor . |
Modifier and Type | Method and Description |
---|---|
List<hudson.model.ParameterDefinition> |
getParameterDefinitions()
Gets the parameter definitions.
|
protected <P extends hudson.model.Job<P,B>,B extends hudson.model.Run<P,B>> |
isApplicable(Class<P> clazz)
Tests if the parameter definitions are applicable to the branch specific job type.
|
<P extends hudson.model.Job<P,B>,B extends hudson.model.Run<P,B>> |
jobDecorator(Class<P> clazz)
Returns a
JobDecorator for the specific job type. |
void |
setParameterDefinitions(List<hudson.model.ParameterDefinition> parameterDefinitions)
Sets the parameter definitions.
|
asArrayList, decorator, decorator, getDescriptor
protected ParameterDefinitionBranchProperty()
DataBoundConstructor
.@Exported public final List<hudson.model.ParameterDefinition> getParameterDefinitions()
@DataBoundSetter public final void setParameterDefinitions(List<hudson.model.ParameterDefinition> parameterDefinitions)
parameterDefinitions
- the parameter definitions.@OverrideMustInvoke protected <P extends hudson.model.Job<P,B>,B extends hudson.model.Run<P,B>> boolean isApplicable(Class<P> clazz)
Not to be confused with BranchPropertyDescriptor.isApplicable(MultiBranchProjectDescriptor)
,
this checks applicability for the child job type.
As all Job
types support JobProperty
and ParametersDefinitionProperty
will work
with anything that implements ParameterizedJobMixIn.ParameterizedJob
, the default implementation
which checks for both of these interfaces, should suffice for all. If you need to apply additional specification
then you can override to tighten the criteria.
P
- the type of the branch specific child job.B
- the type of the branch specific child job's builds.clazz
- the type of the branch specific child job.true
if the specified type of child job can be parameterized.public final <P extends hudson.model.Job<P,B>,B extends hudson.model.Run<P,B>> JobDecorator<P,B> jobDecorator(Class<P> clazz)
JobDecorator
for the specific job type.jobDecorator
in class BranchProperty
P
- the type of job.B
- the type of run of the job.clazz
- the job class.JobDecorator
or null
if none appropriate to this type of job.Copyright © 2016–2017. All rights reserved.