org.slim3.struts.annotation
Annotation Type Required


@Retention(value=RUNTIME)
@Target(value=FIELD)
@Documented
@Validator(value="required")
public @interface Required

An annotation to validate if the value is input.

Since:
3.0
Author:
higa

Optional Element Summary
 Arg arg0
          The first argument.
 Msg msg
          The message.
 String[] targets
          Specifies the execute method names which are validation targets.
 

msg

public abstract Msg msg
The message.

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

arg0

public abstract Arg arg0
The first argument.

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

targets

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

Default:
{}


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