org.slim3.struts.annotation
Annotation Type Validwhen


@Retention(value=RUNTIME)
@Target(value=FIELD)
@Documented
@Validator(value="validwhen")
public @interface Validwhen

An annotation to validate if the condition matches the value.

Since:
3.0
Author:
higa

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

Element Detail

test

public abstract String test
The condition.


msg

public abstract Msg msg
The message.

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.