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.jellyorconfig-details.groovy. May definehelp.html.- Since:
- 1.637
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOptionalJobProperty.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.OptionalJobPropertyDescriptorgetDescriptor()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:DescribableGets the descriptor for this instance.Descriptoris a singleton for every concreteDescribableimplementation, 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:
getDescriptorin interfaceDescribable<J extends Job<?,?>>- Overrides:
getDescriptorin classJobProperty<J extends Job<?,?>>
-
-