Class GroovyParser.DescriptorImpl

    • Constructor Detail

      • DescriptorImpl

        public DescriptorImpl()
        Creates a new descriptor.
    • Method Detail

      • doCheckId

        @POST
        public FormValidation doCheckId​(@QueryParameter(required=true)
                                        String id)
        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

        @POST
        public FormValidation doCheckName​(@QueryParameter(required=true)
                                          String name)
        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

        @POST
        public FormValidation doCheckRegexp​(@QueryParameter(required=true)
                                            String regexp)
        Performs on-the-fly validation on the regular expression.
        Parameters:
        regexp - the regular expression
        Returns:
        the validation result
      • doCheckScript

        @POST
        public FormValidation doCheckScript​(@QueryParameter(required=true)
                                            String script)
        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 warning
        regexp - the regular expression
        script - the script
        Returns:
        the validation result