Class WithScriptDescriptor<T extends WithScriptDescribable<T>>
java.lang.Object
hudson.model.Descriptor<T>
org.jenkinsci.plugins.pipeline.modeldefinition.withscript.WithScriptDescriptor<T>
- Direct Known Subclasses:
DeclarativeAgentDescriptor,DeclarativeStageConditionalDescriptor
public abstract class WithScriptDescriptor<T extends WithScriptDescribable<T>>
extends Descriptor<T>
Descriptor for
WithScriptDescribable.- Author:
- Andrew Bayer
-
Nested Class Summary
Nested ClassesNested 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()The name for this type.The full package and class name for theWithScriptScriptclass corresponding to this.Creates an instance of the correspondingWithScriptDescribablewith no arguments.newInstance(Map<String, Object> arguments) Creates an instance of the correspondingWithScriptDescribablefrom the given arguments.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
-
WithScriptDescriptor
protected WithScriptDescriptor()
-
-
Method Details
-
getName
The name for this type. Defaults to the first string in theSymbolon the class.- Returns:
- The name.
-
getScriptClass
The full package and class name for theWithScriptScriptclass corresponding to this. Defaults to theWithScriptDescribableclass name with "Script" appended to the end.- Returns:
- The class name, defaulting to the
WithScriptDescribableDescriptor.clazzclass name with "Script" appended.
-
newInstance
Creates an instance of the correspondingWithScriptDescribablefrom the given arguments.- Parameters:
arguments- A map of strings/objects to be passed to the constructor.- Returns:
- An instantiated
WithScriptDescribable - Throws:
Exception- if there are issues instantiating
-
newInstance
Creates an instance of the correspondingWithScriptDescribablewith no arguments.- Returns:
- An instantiated
WithScriptDescribable - Throws:
Exception- if there are issues instantiating
-