public abstract class SCMHeadAuthorityDescriptor extends Descriptor<SCMHeadAuthority<?,?,?>>
Descriptor base class for SCMHeadAuthority implementations.Descriptor.FormException, Descriptor.PropertyType, Descriptor.Selfclazz| Modifier | Constructor and Description |
|---|---|
protected |
SCMHeadAuthorityDescriptor()
Infers the type of the corresponding
SCMHeadAuthority from the outer class. |
protected |
SCMHeadAuthorityDescriptor(Class<? extends SCMHeadAuthority<?,?,?>> clazz,
Class<? extends SCMSourceRequest> requestClass,
Class<? extends SCMHeadMixin> headClass,
Class<? extends SCMRevision> revisionClass)
Constructor to use when type inference using
SCMHeadAuthorityDescriptor() does not work. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isApplicableToHead(Class<? extends SCMHeadMixin> headClass)
Checks if this
SCMHeadAuthorityDescriptor is applicable to the supplied type of SCMHead. |
boolean |
isApplicableToHead(SCMHead head)
Checks if this
SCMHeadAuthorityDescriptor is applicable to the supplied SCMHead. |
boolean |
isApplicableToOrigin(Class<? extends SCMHeadOrigin> originClass)
Checks if this
SCMHeadAuthorityDescriptor is applicable to the supplied SCMHeadOrigin. |
boolean |
isApplicableToOrigin(SCMHeadOrigin origin)
Checks if this
SCMHeadAuthorityDescriptor is applicable to the supplied SCMHeadOrigin. |
boolean |
isApplicableToRequest(Class<? extends SCMSourceRequest> requestClass)
Checks if this
SCMHeadAuthorityDescriptor is applicable to the supplied type of SCMSourceRequest. |
boolean |
isApplicableToRequest(SCMSourceRequest request)
Checks if this
SCMHeadAuthorityDescriptor is applicable to the supplied SCMSourceRequest. |
boolean |
isApplicableToRevision(Class<? extends SCMRevision> revisionClass)
Checks if this
SCMHeadAuthorityDescriptor is applicable to the supplied type of SCMRevision. |
boolean |
isApplicableToRevision(SCMRevision revision)
Checks if this
SCMHeadAuthorityDescriptor is applicable to the supplied SCMRevision. |
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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMapprotected SCMHeadAuthorityDescriptor(Class<? extends SCMHeadAuthority<?,?,?>> clazz, Class<? extends SCMSourceRequest> requestClass, Class<? extends SCMHeadMixin> headClass, Class<? extends SCMRevision> revisionClass)
SCMHeadAuthorityDescriptor() does not work.clazz - Pass in the type of SCMHeadAuthorityrequestClass - the type of SCMSourceRequest.headClass - the type of SCMHead.revisionClass - the type of SCMRevision.protected SCMHeadAuthorityDescriptor()
SCMHeadAuthority 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.@OverrideMustInvoke
public boolean isApplicableToHead(@NonNull
SCMHead head)
SCMHeadAuthorityDescriptor is applicable to the supplied SCMHead.head - the SCMHead.true if applicable.@OverrideMustInvoke
public boolean isApplicableToHead(@NonNull
Class<? extends SCMHeadMixin> headClass)
SCMHeadAuthorityDescriptor is applicable to the supplied type of SCMHead.headClass - the type of SCMHead.true if applicable.@OverrideMustInvoke
public boolean isApplicableToRevision(@NonNull
SCMRevision revision)
SCMHeadAuthorityDescriptor is applicable to the supplied SCMRevision.revision - the SCMRevision.true if applicable.@OverrideMustInvoke
public boolean isApplicableToRevision(@NonNull
Class<? extends SCMRevision> revisionClass)
SCMHeadAuthorityDescriptor is applicable to the supplied type of SCMRevision.revisionClass - the type of SCMRevision.true if applicable.@OverrideMustInvoke
public boolean isApplicableToRequest(@NonNull
SCMSourceRequest request)
SCMHeadAuthorityDescriptor is applicable to the supplied SCMSourceRequest.request - the SCMSourceRequest.true if applicable.@OverrideMustInvoke
public boolean isApplicableToRequest(@NonNull
Class<? extends SCMSourceRequest> requestClass)
SCMHeadAuthorityDescriptor is applicable to the supplied type of SCMSourceRequest.requestClass - the type of SCMSourceRequest.true if applicable.public boolean isApplicableToOrigin(@NonNull
SCMHeadOrigin origin)
SCMHeadAuthorityDescriptor is applicable to the supplied SCMHeadOrigin.origin - the SCMHeadOrigin.true if applicable.public boolean isApplicableToOrigin(@NonNull
Class<? extends SCMHeadOrigin> originClass)
SCMHeadAuthorityDescriptor is applicable to the supplied SCMHeadOrigin.originClass - the type of SCMHeadOrigin.true if applicable.Copyright © 2016–2019. All rights reserved.