net.anotheria.maf.validation.annotations
Annotation Type ValidateNumber


@Retention(value=RUNTIME)
@Target(value={FIELD,PARAMETER})
public @interface ValidateNumber


Required Element Summary
 String key
          Message custom key.
 
Optional Element Summary
 boolean fractional
          Boolean customizing if annotated field can be a fractional number
 String message
          Optional custom error message used if message by key isn't available.
 

Element Detail

key

public abstract String key
Message custom key.

Returns:
message key.

message

public abstract String message
Optional custom error message used if message by key isn't available.

Returns:
message string
Default:
""

fractional

public abstract boolean fractional
Boolean customizing if annotated field can be a fractional number

Returns:
true if annotated field should represent float or double value, false - if it should represent integral value;
Default:
false


Copyright © 2010-2013 anotheria.net. All Rights Reserved.