public abstract class BranchProperty extends hudson.model.AbstractDescribableImpl<BranchProperty> implements hudson.ExtensionPoint
Branch
.
SCMSource
s can use properties to convey additional implementation/SCM specific
information that's not captured in the base Branch
class.
Constructor and Description |
---|
BranchProperty() |
Modifier and Type | Method and Description |
---|---|
protected static <T> ArrayList<T> |
asArrayList(List<T> list)
Utility helper method that ensures you have an
ArrayList but avoids copying unless required. |
ProjectDecorator |
decorator(hudson.model.AbstractProject project)
Deprecated.
Should have been typed to take
Project and Build rather than
AbstractProject and AbstractBuild . |
ProjectDecorator |
decorator(Class clazz)
Deprecated.
Should have been typed to take
Project and Build rather than
AbstractProject and AbstractBuild . |
BranchPropertyDescriptor |
getDescriptor() |
<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. |
@CheckForNull @Deprecated public final ProjectDecorator decorator(hudson.model.AbstractProject project)
Project
and Build
rather than
AbstractProject
and AbstractBuild
.ProjectDecorator
for the supplied project instance.project
- the project instance.ProjectDecorator
or null
if none appropriate to this type of project.@CheckForNull @Deprecated public ProjectDecorator decorator(Class clazz)
Project
and Build
rather than
AbstractProject
and AbstractBuild
.ProjectDecorator
for the specific project type.clazz
- the project class.ProjectDecorator
or null
if none appropriate to this type of project.@CheckForNull public <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.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.@NonNull public BranchPropertyDescriptor getDescriptor()
getDescriptor
in interface hudson.model.Describable<BranchProperty>
getDescriptor
in class hudson.model.AbstractDescribableImpl<BranchProperty>
Copyright © 2016–2017. All rights reserved.