Package jenkins.scm.api.trait
Class SCMTraitDescriptor<T extends SCMTrait<T>>
- java.lang.Object
-
- hudson.model.Descriptor<T>
-
- jenkins.scm.api.trait.SCMTraitDescriptor<T>
-
- Direct Known Subclasses:
SCMNavigatorTraitDescriptor
,SCMSourceTraitDescriptor
public abstract class SCMTraitDescriptor<T extends SCMTrait<T>> extends Descriptor<T>
Abstract base class forDescriptor
ofSCMTrait
implementations.- Since:
- 2.2.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends SCM>
getScmClass()
boolean
isApplicableToSCM(SCMDescriptor<?> scm)
boolean
isApplicableToSCM(Class<? extends SCM> scmClass)
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
isApplicableToSCM
public boolean isApplicableToSCM(@NonNull SCMDescriptor<?> scm)
- Parameters:
scm
- theSCMDescriptor
for the type ofSCM
.- Returns:
true
if applicable to the specified type ofSCM
.
-
-