public abstract class DeclarativeOptionDescriptor extends hudson.model.Descriptor<DeclarativeOption>
| Constructor and Description |
|---|
DeclarativeOptionDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
static hudson.ExtensionList<DeclarativeOptionDescriptor> |
all()
Get all
DeclarativeOptionDescriptors. |
static DeclarativeOptionDescriptor |
byName(String name)
Get the descriptor for a given name or null if not found.
|
static Map<String,org.jenkinsci.plugins.structs.describable.DescribableModel> |
getDescribableModels()
Get a map of name-to-
DescribableModel of all known/registered descriptors. |
String |
getName() |
static DeclarativeOption |
instanceFromDescriptor(DeclarativeOptionDescriptor descriptor,
Map<String,Object> arguments)
For a given descriptor and map of arguments, return an instance using those arguments.
|
static DeclarativeOption |
instanceFromName(String name,
Map<String,Object> arguments)
For a given name and map of arguments, find the corresponding descriptor and return an instance using those arguments.
|
DeclarativeOption |
newInstance(Map<String,Object> arguments)
Creates an instance of the corresponding
DeclarativeOption from the given arguments. |
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, toMappublic static hudson.ExtensionList<DeclarativeOptionDescriptor> all()
DeclarativeOptionDescriptors.DeclarativeOptionDescriptors registered.`public static Map<String,org.jenkinsci.plugins.structs.describable.DescribableModel> getDescribableModels()
DescribableModel of all known/registered descriptors.DescribableModels@Nullable public static DeclarativeOptionDescriptor byName(@Nonnull String name)
name - The name for the descriptor to look up@Nullable public static DeclarativeOption instanceFromName(@Nonnull String name, Map<String,Object> arguments) throws Exception
name - The name of the descriptorarguments - A map of argumentsDeclarativeOption instance, or null if the name isn't found.Exceptionpublic DeclarativeOption newInstance(Map<String,Object> arguments) throws Exception
DeclarativeOption from the given arguments.arguments - A map of strings/objects to be passed to the constructor.DeclarativeOptionException@Nonnull public static DeclarativeOption instanceFromDescriptor(@Nonnull DeclarativeOptionDescriptor descriptor, Map<String,Object> arguments) throws Exception
descriptor - The descriptor instancearguments - A map of argumentsDeclarativeOption instance.ExceptionCopyright © 2016–2017. All rights reserved.