sk.baka.webvm.config
Annotation Type Bind


@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface Bind

Binds values from a Properties map.

Author:
Martin Vysny

Required Element Summary
 String key
          A key to the Properties map.
 
Optional Element Summary
 int group
          Makes the value a part of a group.
 int max
          (Optional) maximum value if number is specified.
 int min
          (Optional) minimum value if number is specified.
 boolean password
          true if this field denotes a password field.
 boolean required
          Set to false if this field is not required.
 

Element Detail

key

public abstract String key
A key to the Properties map.

min

public abstract int min
(Optional) minimum value if number is specified.

Default:
-2147483648

max

public abstract int max
(Optional) maximum value if number is specified.

Default:
2147483647

group

public abstract int group
Makes the value a part of a group.

Default:
0

password

public abstract boolean password
true if this field denotes a password field.

Default:
false

required

public abstract boolean required
Set to false if this field is not required.

Default:
true


Copyright © 2010 Baka. All Rights Reserved.