|
Project Wonder 2.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.gammastream.validity.GSVNumberMethods
This class provides a set of predefined rules for performing
validation on Numbers
. These rules are part of
the default set of 'QuickRules'.
Field Summary | |
static String |
EQUAL
For programatic purposes, we include this constant which is used for the compareTo method. |
static String |
GREATER_EQUAL
For programatic purposes, we include this constant which is used for the compareTo method. |
static String |
GREATER_THAN
For programatic purposes, we include this constant which is used for the compareTo method. |
static String |
LESS_EQUAL
For programatic purposes, we include this constant which is used for the compareTo method. |
static String |
LESS_THAN
For programatic purposes, we include this constant which is used for the compareTo method. |
static String |
NOT_EQUAL
For programatic purposes, we include this constant which is used for the compareTo method. |
Constructor Summary | |
GSVNumberMethods()
|
Method Summary | |
static boolean |
compareTo(Object object,
Object attribute,
String key,
NSDictionary params)
Compares the specified attribute to a number provided in the params dictionary. |
static boolean |
isInRange(Object object,
Object attribute,
String key,
NSDictionary params)
Checks to make sure the attribute falls within the range specified in the params dictionary. |
static boolean |
isNegativeNumber(Object object,
Object attribute,
String key,
NSDictionary params)
Verifies that attribute is a negative number. |
static boolean |
isPositiveNumber(Object object,
Object attribute,
String key,
NSDictionary params)
Verifies that attribute is a positive number. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String EQUAL
compareTo
method.
public static final String NOT_EQUAL
compareTo
method.
public static final String GREATER_THAN
compareTo
method.
public static final String GREATER_EQUAL
compareTo
method.
public static final String LESS_THAN
compareTo
method.
public static final String LESS_EQUAL
compareTo
method.
Constructor Detail |
public GSVNumberMethods()
Method Detail |
public static final boolean compareTo(Object object, Object attribute, String key, NSDictionary params)
object
- The object whose attribute is being validated.attribute
- The attribute being validated.key
- The key used to access the attribute.params
- The param dictionary which must contain the above mentioned key-value pairs.
true
if the comparision succeeds; otherwise, false
public static final boolean isInRange(Object object, Object attribute, String key, NSDictionary params)
object
- The object whose attribute is being validated.attribute
- The attribute being validated.key
- The key used to access the attribute.params
- The param dictionary which must contain the above mentioned key-value pairs.
true
if the provided number false within the specified range; otherwise, false
public static final boolean isPositiveNumber(Object object, Object attribute, String key, NSDictionary params)
object
- The object whose attribute is being validated.attribute
- The attribute being validated.key
- The key used to access the attribute.params
- The param dictionary which must contain the above mentioned key-value pairs.
true
if the provided number is positive value; otherwise, false
public static final boolean isNegativeNumber(Object object, Object attribute, String key, NSDictionary params)
object
- The object whose attribute is being validated.attribute
- The attribute being validated.key
- The key used to access the attribute.params
- The param dictionary which must contain the above mentioned key-value pairs.
true
if the provided number is a negative value; otherwise, false
|
Last updated: Do, Dez 9, 2004 12:46 PM CET | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |