Package hudson.tools
Class PropertyDescriptor<P extends Describable<P>,T>
java.lang.Object
hudson.model.Descriptor<P>
hudson.tools.PropertyDescriptor<P,T>
- Type Parameters:
P
- Type of theXyzProperty
. Called 'property type'T
- Type of theXyz
, that the property attaches to. Called 'target type'
- Direct Known Subclasses:
NodePropertyDescriptor
,ToolPropertyDescriptor
Base
Descriptor
type used for XyzProperty
classes.- Since:
- 1.305
- Author:
- Kohsuke Kawaguchi
-
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic <D extends PropertyDescriptor<?,
T>, T>
List<D>static <D extends PropertyDescriptor<?,
T>, T>
List<D>boolean
isApplicable
(Class<? extends T> targetType) Returns true if this property type is applicable to the given target type.Methods 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
-
PropertyDescriptor
-
PropertyDescriptor
protected PropertyDescriptor()
-
-
Method Details
-
isApplicable
Returns true if this property type is applicable to the given target type.The default implementation of this method checks if the given node type is assignable according to the parameterization, but subtypes can extend this to change this behavior.
- Returns:
- true to indicate applicable, in which case the property will be displayed in the configuration screen of the target, for example.
-
for_
public static <D extends PropertyDescriptor<?,T>, List<D> for_T> (List<D> all, Class<? extends T> target) -
for_
-