Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## juzu
Annotation Type Param

    @Retention(value=RUNTIME)
    @Target(value=PARAMETER)
    public @interface Param

An annotation describing a parameter.

## Annotating a route parameter

Route parameters can be annotated to provide constrain the value of a parameter, for instance:

`

        public class MyController {

           @View
           @Route("/myview/{id}")
           public Response.Render myView(@Param(pattern = "[0-9]+") String id) { ... }
        }

`

Author:
  Julien Viet

Optional Element Summary
`String` | `pattern` The parameter pattern as a valid regular expression.

### pattern

    public abstract String pattern

  The parameter pattern as a valid regular expression.

  Returns:
    the pattern value
  Default:
    ""

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2013 eXo Platform SAS. All Rights Reserved.