Package jenkins.branch
Class BranchProperty
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<BranchProperty>
-
- jenkins.branch.BranchProperty
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<BranchProperty>
- Direct Known Subclasses:
BuildRetentionBranchProperty
,NoTriggerBranchProperty
,ParameterDefinitionBranchProperty
,RateLimitBranchProperty
,UntrustedBranchProperty
public abstract class BranchProperty extends AbstractDescribableImpl<BranchProperty> implements ExtensionPoint
Additional information associated withBranch
.SCMSource
s can use properties to convey additional implementation/SCM specific information that's not captured in the baseBranch
class.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description BranchProperty()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected static <T> ArrayList<T>
asArrayList(List<T> list)
Utility helper method that ensures you have anArrayList
but avoids copying unless required.ProjectDecorator
decorator(AbstractProject project)
Deprecated.ProjectDecorator
decorator(Class clazz)
Deprecated.BranchPropertyDescriptor
getDescriptor()
<P extends Job<P,B>,B extends Run<P,B>>
JobDecorator<P,B>jobDecorator(Class<P> clazz)
Returns aJobDecorator
for the specific job type.
-
-
-
Method Detail
-
decorator
@CheckForNull @Deprecated public final ProjectDecorator decorator(AbstractProject project)
Deprecated.Returns aProjectDecorator
for the supplied project instance.- Parameters:
project
- the project instance.- Returns:
- a
ProjectDecorator
ornull
if none appropriate to this type of project.
-
decorator
@CheckForNull @Deprecated public ProjectDecorator decorator(Class clazz)
Deprecated.Returns aProjectDecorator
for the specific project type.- Parameters:
clazz
- the project class.- Returns:
- a
ProjectDecorator
ornull
if none appropriate to this type of project.
-
jobDecorator
@CheckForNull public <P extends Job<P,B>,B extends Run<P,B>> JobDecorator<P,B> jobDecorator(Class<P> clazz)
Returns aJobDecorator
for the specific job type.- Type Parameters:
P
- the type of job.B
- the type of run of the job.- Parameters:
clazz
- the job class.- Returns:
- a
JobDecorator
ornull
if none appropriate to this type of job.
-
getDescriptor
@NonNull public BranchPropertyDescriptor getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<BranchProperty>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<BranchProperty>
-
-