org.slim3.struts.annotation
Annotation Type Minbytelength


@Retention(value=RUNTIME)
@Target(value=FIELD)
@Documented
@Validator(value="minbytelength")
public @interface Minbytelength

An annotation to validate if the byte length of the string value is greater than or equal to the minimum byte length.

Since:
3.0
Author:
higa

Required Element Summary
 int minbytelength
          The minimum byte length.
 
Optional Element Summary
 Arg arg0
          The first argument.
 Arg arg1
          The second argument.
 String charset
          The character set.
 Msg msg
          The message.
 String[] targets
          Specifies the execute method names which are validation targets.
 

Element Detail

minbytelength

public abstract int minbytelength
The minimum byte length.

charset

public abstract String charset
The character set.

Default:
""

msg

public abstract Msg msg
The message.

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

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:minbytelength}", 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.