public abstract class SCMNavigatorTraitDescriptor extends SCMTraitDescriptor<SCMNavigatorTrait>
Descriptor
of SCMNavigatorTrait
implementations.Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
clazz
Modifier | Constructor and Description |
---|---|
protected |
SCMNavigatorTraitDescriptor()
Infers the type of the corresponding
SCMNavigatorTrait from the outer class. |
protected |
SCMNavigatorTraitDescriptor(Class<? extends SCMNavigatorTrait> clazz)
Constructor to use when type inference using
SCMNavigatorTraitDescriptor() does not work. |
Modifier and Type | Method and Description |
---|---|
Class<? extends SCMSourceBuilder> |
getBuilderClass()
Returns the type of
SCMSourceBuilder that this SCMNavigatorTrait is applicable to. |
Class<? extends SCMNavigatorContext> |
getContextClass()
Returns the type of
SCMNavigatorContext that this SCMNavigatorTrait is applicable to. |
Class<? extends SCMNavigator> |
getNavigatorClass()
Returns the type of
SCMNavigator that this SCMNavigatorTrait is applicable to. |
Class<? extends SCMSource> |
getSourceClass()
Returns the type of
SCMSource that this SCMNavigatorTrait is applicable to. |
boolean |
isApplicableTo(Class<? extends SCMNavigator> navigatorClass)
Checks if the
SCMNavigatorTrait is relevant to the specified type of SCMNavigator . |
boolean |
isApplicableTo(SCMNavigator navigator)
Checks if the
SCMNavigatorTrait is relevant to the specified SCMNavigator . |
boolean |
isApplicableTo(SCMNavigatorDescriptor descriptor)
Checks if the
SCMNavigatorTrait is relevant to the specified SCMNavigatorDescriptor . |
boolean |
isApplicableToBuilder(Class<? extends SCMSourceBuilder> builderClass)
Checks if the
SCMNavigatorTrait is relevant to the specified type of SCMSourceBuilder . |
boolean |
isApplicableToBuilder(SCMSourceBuilder<?,?> builder)
Checks if the
SCMNavigatorTrait is relevant to the specified SCMSourceBuilder . |
boolean |
isApplicableToContext(Class<? extends SCMNavigatorContext> contextClass)
Checks if the
SCMNavigatorTrait is relevant to the specified type of SCMNavigatorContext . |
boolean |
isApplicableToContext(SCMNavigatorContext context)
Checks if the
SCMNavigatorTrait is relevant to the specified SCMNavigatorContext . |
boolean |
isApplicableToSource(Class<? extends SCMSource> sourceClass)
Checks if the
SCMNavigatorTrait is relevant to the specified type of SCMSource . |
boolean |
isApplicableToSource(SCMSource source)
Checks if the
SCMNavigatorTrait is relevant to the specified SCMSource . |
boolean |
isApplicableToSource(SCMSourceDescriptor descriptor)
Checks if the
SCMNavigatorTrait is relevant to the specified SCMSourceDescriptor . |
getScmClass, isApplicableToSCM, isApplicableToSCM
addHelpFileRedirect, 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
protected SCMNavigatorTraitDescriptor(@NonNull Class<? extends SCMNavigatorTrait> clazz)
SCMNavigatorTraitDescriptor()
does not work.clazz
- Pass in the type of SCMNavigatorTrait
protected SCMNavigatorTraitDescriptor()
SCMNavigatorTrait
from 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.public Class<? extends SCMSourceBuilder> getBuilderClass()
SCMSourceBuilder
that this SCMNavigatorTrait
is applicable to.SCMSourceBuilder
that this SCMNavigatorTrait
is applicable to.public boolean isApplicableToBuilder(@NonNull Class<? extends SCMSourceBuilder> builderClass)
SCMNavigatorTrait
is relevant to the specified type of SCMSourceBuilder
.builderClass
- the type of SCMBuilder
.true
if applicable to the specified type of SCMSourceBuilder
.public boolean isApplicableToBuilder(@NonNull SCMSourceBuilder<?,?> builder)
SCMNavigatorTrait
is relevant to the specified SCMSourceBuilder
.builder
- the SCMSourceBuilder
.true
if applicable to the specified type of SCMSourceBuilder
.public Class<? extends SCMNavigatorContext> getContextClass()
SCMNavigatorContext
that this SCMNavigatorTrait
is applicable to.SCMNavigatorContext
that this SCMNavigatorTrait
is applicable to.public boolean isApplicableToContext(@NonNull Class<? extends SCMNavigatorContext> contextClass)
SCMNavigatorTrait
is relevant to the specified type of SCMNavigatorContext
.contextClass
- the type of SCMNavigatorContext
.true
if applicable to the specified type of SCMNavigatorContext
.public boolean isApplicableToContext(@NonNull SCMNavigatorContext context)
SCMNavigatorTrait
is relevant to the specified SCMNavigatorContext
.context
- the SCMNavigatorContext
.true
if applicable to the specified type of SCMNavigatorContext
.public Class<? extends SCMSource> getSourceClass()
SCMSource
that this SCMNavigatorTrait
is applicable to.SCMSource
that this SCMNavigatorTrait
is applicable to.public boolean isApplicableToSource(@NonNull Class<? extends SCMSource> sourceClass)
SCMNavigatorTrait
is relevant to the specified type of SCMSource
.public boolean isApplicableToSource(@NonNull SCMSourceDescriptor descriptor)
SCMNavigatorTrait
is relevant to the specified SCMSourceDescriptor
.descriptor
- the SCMSourceDescriptor
.true
if applicable to the specified SCMSourceDescriptor
.public boolean isApplicableToSource(@NonNull SCMSource source)
SCMNavigatorTrait
is relevant to the specified SCMSource
.public Class<? extends SCMNavigator> getNavigatorClass()
SCMNavigator
that this SCMNavigatorTrait
is applicable to.SCMNavigator
that this SCMNavigatorTrait
is applicable to.public boolean isApplicableTo(@NonNull Class<? extends SCMNavigator> navigatorClass)
SCMNavigatorTrait
is relevant to the specified type of SCMNavigator
.navigatorClass
- the type of SCMNavigator
.true
if applicable to the specified type of SCMNavigator
.public boolean isApplicableTo(@NonNull SCMNavigatorDescriptor descriptor)
SCMNavigatorTrait
is relevant to the specified SCMNavigatorDescriptor
.descriptor
- the SCMNavigatorDescriptor
.true
if applicable to the specified SCMNavigatorDescriptor
.public boolean isApplicableTo(@NonNull SCMNavigator navigator)
SCMNavigatorTrait
is relevant to the specified SCMNavigator
.navigator
- the SCMNavigator
.true
if applicable to the specified SCMNavigator
.Copyright © 2016–2022. All rights reserved.