Class DescribableParameter
- java.lang.Object
-
- org.jenkinsci.plugins.structs.describable.DescribableParameter
-
public final class DescribableParameter extends Object
A property ofDescribableModel- Author:
- Kohsuke Kawaguchi
- See Also:
DescribableModel.getParameter(String)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCapitalizedName()ClassgetErasedType()Gets the erasure ofgetRawType()StringgetHelp()Loads help defined for this parameter.StringgetName()TypegetRawType()The type of this parameter, possibly with generics.ParameterTypegetType()Classification of the type of this parameter.booleanisDeprecated()True if this parameter is deprecated.booleanisRequired()True if this parameter is required.StringtoString()
-
-
-
Method Detail
-
getType
public ParameterType getType()
Classification of the type of this parameter.Originates from the pipeline plugin and I'm not sure the logic behind this.
-
getRawType
public Type getRawType()
The type of this parameter, possibly with generics.
-
getErasedType
public Class getErasedType()
Gets the erasure ofgetRawType()
-
getName
public String getName()
-
getCapitalizedName
public String getCapitalizedName()
-
isRequired
public boolean isRequired()
True if this parameter is required.A parameter set via
DataBoundSetteris considered optional. Right now, all the parameters set viaDataBoundConstructoris considered mandatory, but this might change in the future.
-
isDeprecated
public boolean isDeprecated()
True if this parameter is deprecated.A parameter is deprecated if the corresponding
DataBoundSettermarked asDeprecated.
-
getHelp
@CheckForNull public String getHelp() throws IOException
Loads help defined for this parameter.- Returns:
- some HTML (in English locale), if available, else null
- Throws:
IOException- See Also:
Descriptor.doHelp(org.kohsuke.stapler.StaplerRequest, org.kohsuke.stapler.StaplerResponse)
-
-