public abstract class SCMSourceTraitDescriptor extends SCMTraitDescriptor<SCMSourceTrait>
Descriptor of SCMSourceTrait implementations.Descriptor.FormException, Descriptor.PropertyType, Descriptor.Selfclazz| Modifier | Constructor and Description |
|---|---|
protected |
SCMSourceTraitDescriptor()
Infers the type of the corresponding
SCMSourceTrait from the outer class. |
protected |
SCMSourceTraitDescriptor(Class<? extends SCMSourceTrait> clazz)
Constructor to use when type inference using
SCMSourceTraitDescriptor() does not work. |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends SCMBuilder> |
getBuilderClass()
Returns the type of
SCMBuilder that this SCMSourceTrait is applicable to. |
Class<? extends SCMSourceContext> |
getContextClass()
Returns the type of
SCMSourceContext that this SCMSourceTrait is applicable to. |
Class<? extends SCMSource> |
getSourceClass()
Returns the type of
SCMSource that this SCMSourceTrait is applicable to. |
boolean |
isApplicableTo(Class<? extends SCMSource> sourceClass)
Checks if the
SCMSourceTrait is relevant to the specified type of SCMSource. |
boolean |
isApplicableTo(SCMSource source)
Checks if the
SCMSourceTrait is relevant to the specified SCMSource. |
boolean |
isApplicableTo(SCMSourceDescriptor descriptor)
Checks if the
SCMSourceTrait is relevant to the specified SCMSourceDescriptor. |
boolean |
isApplicableToBuilder(Class<? extends SCMBuilder> builderClass)
Checks if the
SCMSourceTrait is relevant to the specified type of SCMBuilder. |
boolean |
isApplicableToBuilder(SCMBuilder<?,?> builder)
Checks if the
SCMSourceTrait is relevant to the specified SCMBuilder. |
boolean |
isApplicableToContext(Class<? extends SCMSourceContext> contextClass)
Checks if the
SCMSourceTrait is relevant to the specified type of SCMSourceContext. |
boolean |
isApplicableToContext(SCMSourceContext context)
Checks if the
SCMSourceTrait is relevant to the specified SCMSourceContext. |
getScmClass, isApplicableToSCM, isApplicableToSCMaddHelpFileRedirect, 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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMapprotected SCMSourceTraitDescriptor(@NonNull
Class<? extends SCMSourceTrait> clazz)
SCMSourceTraitDescriptor() does not work.clazz - Pass in the type of SCMTraitprotected SCMSourceTraitDescriptor()
SCMSourceTrait 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 SCMBuilder> getBuilderClass()
SCMBuilder that this SCMSourceTrait is applicable to.SCMBuilder that this SCMSourceTrait is applicable to.public boolean isApplicableToBuilder(@NonNull
Class<? extends SCMBuilder> builderClass)
SCMSourceTrait is relevant to the specified type of SCMBuilder.builderClass - the type of SCMBuilder.true if applicable to the specified type of SCMBuilder.public boolean isApplicableToBuilder(@NonNull
SCMBuilder<?,?> builder)
SCMSourceTrait is relevant to the specified SCMBuilder.builder - the SCMBuilder.true if applicable to the specified type of SCMBuilder.public Class<? extends SCMSourceContext> getContextClass()
SCMSourceContext that this SCMSourceTrait is applicable to.SCMSourceContext that this SCMSourceTrait is applicable to.public boolean isApplicableToContext(@NonNull
Class<? extends SCMSourceContext> contextClass)
SCMSourceTrait is relevant to the specified type of SCMSourceContext.contextClass - the type of SCMSourceContext.true if applicable to the specified type of SCMSourceContext.public boolean isApplicableToContext(@NonNull
SCMSourceContext context)
SCMSourceTrait is relevant to the specified SCMSourceContext.context - the SCMSourceContext.true if applicable to the specified type of SCMSourceContext.public Class<? extends SCMSource> getSourceClass()
SCMSource that this SCMSourceTrait is applicable to.SCMSource that this SCMSourceTrait is applicable to.public boolean isApplicableTo(@NonNull
Class<? extends SCMSource> sourceClass)
SCMSourceTrait is relevant to the specified type of SCMSource.public boolean isApplicableTo(@NonNull
SCMSourceDescriptor descriptor)
SCMSourceTrait is relevant to the specified SCMSourceDescriptor.descriptor - the SCMSourceDescriptor.true if applicable to the specified SCMSourceDescriptor.public boolean isApplicableTo(@NonNull
SCMSource source)
SCMSourceTrait is relevant to the specified SCMSource.Copyright © 2016–2019. All rights reserved.