Package jenkins.model
Class OptionalJobProperty<J extends Job<?,?>>
- java.lang.Object
-
- hudson.model.JobProperty<J>
-
- jenkins.model.OptionalJobProperty<J>
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<JobProperty<?>>
,ReconfigurableDescribable<JobProperty<?>>
,BuildStep
- Direct Known Subclasses:
BuildDiscarderProperty
,ParametersDefinitionProperty
public abstract class OptionalJobProperty<J extends Job<?,?>> extends JobProperty<J>
Job property which may or may not be present. Must defineconfig-details.jelly
orconfig-details.groovy
. May definehelp.html
.- Since:
- 1.637
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OptionalJobProperty.OptionalJobPropertyDescriptor
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.JobProperty
owner
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description OptionalJobProperty()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OptionalJobProperty.OptionalJobPropertyDescriptor
getDescriptor()
Gets the descriptor for this instance.-
Methods inherited from class hudson.model.JobProperty
getJobAction, getJobActions, getJobOverrides, getProjectAction, getProjectActions, getRequiredMonitorService, getSubTasks, perform, prebuild, reconfigure, setOwner
-
-
-
-
Method Detail
-
getDescriptor
public OptionalJobProperty.OptionalJobPropertyDescriptor getDescriptor()
Description copied from interface:Describable
Gets the descriptor for this instance.Descriptor
is a singleton for every concreteDescribable
implementation, so ifa.getClass() == b.getClass()
then by defaulta.getDescriptor() == b.getDescriptor()
as well. (In rare cases a single implementation class may be used for instances with distinct descriptors.)- Specified by:
getDescriptor
in interfaceDescribable<J extends Job<?,?>>
- Overrides:
getDescriptor
in classJobProperty<J extends Job<?,?>>
-
-