org.slim3.struts.annotation
Annotation Type FloatRange


@Retention(value=RUNTIME)
@Target(value=FIELD)
@Documented
@Validator(value="floatRange")
public @interface FloatRange

An annotation to validate if the float value is in a range.

Since:
3.0
Author:
higa

Required Element Summary
 String max
          The maximum value.
 String min
          The minimum value.
 
Optional Element Summary
 Arg arg0
          The first argument.
 Arg arg1
          The second argument.
 Arg arg2
          The third argument.
 Msg msg
          The message.
 String[] targets
          Specifies the execute method names which are validation targets.
 

Element Detail

min

public abstract String min
The minimum value.


max

public abstract String max
The maximum value.

msg

public abstract Msg msg
The message.

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

arg0

public abstract Arg arg0
The first argument.

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

arg1

public abstract Arg arg1
The second argument.

Default:
@org.slim3.struts.annotation.Arg(key="${var:min}", resource=false)

arg2

public abstract Arg arg2
The third argument.

Default:
@org.slim3.struts.annotation.Arg(key="${var:max}", resource=false)

targets

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

Default:
{}


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