public abstract class ParameterDefinitionBranchProperty extends BranchProperty
ExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier | Constructor and Description |
|---|---|
protected |
ParameterDefinitionBranchProperty()
Subclasses should have a
DataBoundConstructor. |
| Modifier and Type | Method and Description |
|---|---|
List<ParameterDefinition> |
getParameterDefinitions()
Gets the parameter definitions.
|
protected <P extends Job<P,B>,B extends Run<P,B>> |
isApplicable(Class<P> clazz)
Tests if the parameter definitions are applicable to the branch specific job type.
|
<P extends Job<P,B>,B extends Run<P,B>> |
jobDecorator(Class<P> clazz)
Returns a
JobDecorator for the specific job type. |
void |
setParameterDefinitions(List<ParameterDefinition> parameterDefinitions)
Sets the parameter definitions.
|
asArrayList, decorator, decorator, getDescriptorprotected ParameterDefinitionBranchProperty()
DataBoundConstructor.@Exported public final List<ParameterDefinition> getParameterDefinitions()
@DataBoundSetter public final void setParameterDefinitions(List<ParameterDefinition> parameterDefinitions)
parameterDefinitions - the parameter definitions.@OverrideMustInvoke protected <P extends Job<P,B>,B extends 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 Job<P,B>,B extends Run<P,B>> JobDecorator<P,B> jobDecorator(Class<P> clazz)
JobDecorator for the specific job type.jobDecorator in class BranchPropertyP - 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–2019. All rights reserved.