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

## org.hibernate.validator
Annotation Type Pattern

    @Documented
    @ValidatorClass(value=PatternValidator.class)
    @Target(value={METHOD,FIELD})
    @Retention(value=RUNTIME)
    public @interface Pattern

The annotated element must follow the regexp pattern

Author:
  Gavin King

Required Element Summary
`String` | `regex` regular expression

Optional Element Summary
`int` | `flags` regular expression processing flags
`String` | `message`

Element Detail

### regex

    public abstract String regex

  regular expression

### flags

    public abstract int flags

  regular expression processing flags

  Default:
    0

### message

    public abstract String message

  Default:
    "{validator.pattern}"

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