Package jenkins.scm.api.trait
Class SCMNavigatorTraitDescriptor
java.lang.Object
hudson.model.Descriptor<T>
jenkins.scm.api.trait.SCMTraitDescriptor<SCMNavigatorTrait>
jenkins.scm.api.trait.SCMNavigatorTraitDescriptor
- Direct Known Subclasses:
RegexSCMSourceFilterTrait.DescriptorImpl,WildcardSCMSourceFilterTrait.DescriptorImpl
Abstract base class for
Descriptor of SCMNavigatorTrait 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 -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInfers the type of the correspondingSCMNavigatorTraitfrom the outer class.protectedSCMNavigatorTraitDescriptor(Class<? extends SCMNavigatorTrait> clazz) Constructor to use when type inference usingSCMNavigatorTraitDescriptor()does not work. -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends SCMSourceBuilder>Returns the type ofSCMSourceBuilderthat thisSCMNavigatorTraitis applicable to.Class<? extends SCMNavigatorContext>Returns the type ofSCMNavigatorContextthat thisSCMNavigatorTraitis applicable to.Class<? extends SCMNavigator>Returns the type ofSCMNavigatorthat thisSCMNavigatorTraitis applicable to.Returns the type ofSCMSourcethat thisSCMNavigatorTraitis applicable to.booleanisApplicableTo(Class<? extends SCMNavigator> navigatorClass) Checks if theSCMNavigatorTraitis relevant to the specified type ofSCMNavigator.booleanisApplicableTo(SCMNavigator navigator) Checks if theSCMNavigatorTraitis relevant to the specifiedSCMNavigator.booleanisApplicableTo(SCMNavigatorDescriptor descriptor) Checks if theSCMNavigatorTraitis relevant to the specifiedSCMNavigatorDescriptor.booleanisApplicableToBuilder(Class<? extends SCMSourceBuilder> builderClass) Checks if theSCMNavigatorTraitis relevant to the specified type ofSCMSourceBuilder.booleanisApplicableToBuilder(SCMSourceBuilder<?, ?> builder) Checks if theSCMNavigatorTraitis relevant to the specifiedSCMSourceBuilder.booleanisApplicableToContext(Class<? extends SCMNavigatorContext> contextClass) Checks if theSCMNavigatorTraitis relevant to the specified type ofSCMNavigatorContext.booleanisApplicableToContext(SCMNavigatorContext context) Checks if theSCMNavigatorTraitis relevant to the specifiedSCMNavigatorContext.booleanisApplicableToSource(Class<? extends SCMSource> sourceClass) Checks if theSCMNavigatorTraitis relevant to the specified type ofSCMSource.booleanisApplicableToSource(SCMSource source) Checks if theSCMNavigatorTraitis relevant to the specifiedSCMSource.booleanisApplicableToSource(SCMSourceDescriptor descriptor) Checks if theSCMNavigatorTraitis relevant to the specifiedSCMSourceDescriptor.Methods inherited from class jenkins.scm.api.trait.SCMTraitDescriptor
getScmClass, isApplicableToSCM, isApplicableToSCMMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, 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, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
SCMNavigatorTraitDescriptor
Constructor to use when type inference usingSCMNavigatorTraitDescriptor()does not work.- Parameters:
clazz- Pass in the type ofSCMNavigatorTrait
-
SCMNavigatorTraitDescriptor
protected SCMNavigatorTraitDescriptor()Infers the type of the correspondingSCMNavigatorTraitfrom the outer class. This version works when you follow the common convention, where a descriptor is written as the static nested class of the describable class.
-
-
Method Details
-
getBuilderClass
Returns the type ofSCMSourceBuilderthat thisSCMNavigatorTraitis applicable to.- Returns:
- the type of
SCMSourceBuilderthat thisSCMNavigatorTraitis applicable to.
-
isApplicableToBuilder
Checks if theSCMNavigatorTraitis relevant to the specified type ofSCMSourceBuilder.- Parameters:
builderClass- the type ofSCMBuilder.- Returns:
trueif applicable to the specified type ofSCMSourceBuilder.
-
isApplicableToBuilder
Checks if theSCMNavigatorTraitis relevant to the specifiedSCMSourceBuilder.- Parameters:
builder- theSCMSourceBuilder.- Returns:
trueif applicable to the specified type ofSCMSourceBuilder.
-
getContextClass
Returns the type ofSCMNavigatorContextthat thisSCMNavigatorTraitis applicable to.- Returns:
- the type of
SCMNavigatorContextthat thisSCMNavigatorTraitis applicable to.
-
isApplicableToContext
Checks if theSCMNavigatorTraitis relevant to the specified type ofSCMNavigatorContext.- Parameters:
contextClass- the type ofSCMNavigatorContext.- Returns:
trueif applicable to the specified type ofSCMNavigatorContext.
-
getSourceClass
Returns the type ofSCMSourcethat thisSCMNavigatorTraitis applicable to.- Returns:
- the type of
SCMSourcethat thisSCMNavigatorTraitis applicable to.
-
isApplicableToSource
Checks if theSCMNavigatorTraitis relevant to the specified type ofSCMSource. -
isApplicableToSource
Checks if theSCMNavigatorTraitis relevant to the specifiedSCMSourceDescriptor.- Parameters:
descriptor- theSCMSourceDescriptor.- Returns:
trueif applicable to the specifiedSCMSourceDescriptor.
-
isApplicableToSource
Checks if theSCMNavigatorTraitis relevant to the specifiedSCMSource. -
isApplicableTo
Checks if theSCMNavigatorTraitis relevant to the specified type ofSCMNavigator.- Parameters:
navigatorClass- the type ofSCMNavigator.- Returns:
trueif applicable to the specified type ofSCMNavigator.
-