org.slim3.struts.annotation
Annotation Type Mask


@Retention(value=RUNTIME)
@Target(value=FIELD)
@Documented
@Validator(value="mask")
public @interface Mask

An annotation to validate if the regular expression matches the value.

Since:
3.0
Author:
higa

Required Element Summary
 String mask
          The regular expression.
 
Optional Element Summary
 Arg arg0
          The first argument.
 Arg[] args
          The array of arguments.
 Msg msg
          The message.
 String[] targets
          Specifies the execute method names which are validation targets.
 

Element Detail

mask

public abstract String mask
The regular expression.

msg

public abstract Msg msg
The message.

Default:
@org.slim3.struts.annotation.Msg(key="errors.invalid")

arg0

public abstract Arg arg0
The first argument.

Default:
@org.slim3.struts.annotation.Arg(key="")

args

public abstract Arg[] args
The array of arguments.

Default:
{}

targets

public abstract String[] targets
Specifies the execute method names which are validation targets.

Default:
{}


Copyright © 2008-2009 The Slim3 project. All Rights Reserved.