Class GroovyParser.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<GroovyParser>
io.jenkins.plugins.analysis.warnings.groovy.GroovyParser.DescriptorImpl
- Enclosing class:
- GroovyParser
Descriptor to validate
GroovyParser
.- Author:
- Ullrich Hafner
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoCheckExample
(String example, String regexp, String script) Parses the example message with the specified regular expression and script.Performs on-the-fly validation of the parser ID.doCheckName
(String name) Performs on-the-fly validation on the name of the parser that needs to be unique.doCheckRegexp
(String regexp) Performs on-the-fly validation on the regular expression.doCheckScript
(String script) Performs on-the-fly validation on the Groovy script.Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()Creates a new descriptor.
-
-
Method Details
-
doCheckId
Performs on-the-fly validation of the parser ID. The ID needs to be unique.- Parameters:
id
- the ID of the parser- Returns:
- the validation result
-
doCheckName
Performs on-the-fly validation on the name of the parser that needs to be unique.- Parameters:
name
- the name of the parser- Returns:
- the validation result
-
doCheckRegexp
Performs on-the-fly validation on the regular expression.- Parameters:
regexp
- the regular expression- Returns:
- the validation result
-
doCheckScript
Performs on-the-fly validation on the Groovy script.- Parameters:
script
- the script- Returns:
- the validation result
-
doCheckExample
@POST public FormValidation doCheckExample(@QueryParameter String example, @QueryParameter String regexp, @QueryParameter String script) Parses the example message with the specified regular expression and script.- Parameters:
example
- example that should be resolve to a warningregexp
- the regular expressionscript
- the script- Returns:
- the validation result
-
getDisplayName
- Overrides:
getDisplayName
in classDescriptor<GroovyParser>
-