com.avaje.ebean.validation
Annotation Type Pattern


@Target(value={FIELD,METHOD})
@Retention(value=RUNTIME)
public @interface Pattern

Validate using a Regular expression the pattern of a String property.

You can only apply this to String properties.


Optional Element Summary
 int flags
          Regular expression flags.
 String regex
          The regular expression.
 

regex

public abstract String regex
The regular expression.

Default:
""

flags

public abstract int flags
Regular expression flags.

Default:
0


Copyright © 2010. All Rights Reserved.