|
|||||||||
| Home >> All >> com >> gammastream >> [ validity overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.gammastream.validity
Class GSVNumberMethods

java.lang.Objectcom.gammastream.validity.GSVNumberMethods
- public class GSVNumberMethods
- extends java.lang.Object
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 java.lang.String |
EQUAL
For programatic purposes, we include this constant which is used for the compareTo method. |
static java.lang.String |
GREATER_EQUAL
For programatic purposes, we include this constant which is used for the compareTo method. |
static java.lang.String |
GREATER_THAN
For programatic purposes, we include this constant which is used for the compareTo method. |
static java.lang.String |
LESS_EQUAL
For programatic purposes, we include this constant which is used for the compareTo method. |
static java.lang.String |
LESS_THAN
For programatic purposes, we include this constant which is used for the compareTo method. |
static java.lang.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(java.lang.Object object,
java.lang.Object attribute,
java.lang.String key,
NSDictionary params)
Compares the specified attribute to a number provided in the params dictionary. |
static boolean |
isInRange(java.lang.Object object,
java.lang.Object attribute,
java.lang.String key,
NSDictionary params)
Checks to make sure the attribute falls within the range specified in the params dictionary. |
static boolean |
isNegativeNumber(java.lang.Object object,
java.lang.Object attribute,
java.lang.String key,
NSDictionary params)
Verifies that attribute is a negative number. |
static boolean |
isPositiveNumber(java.lang.Object object,
java.lang.Object attribute,
java.lang.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 |
EQUAL
public static final java.lang.String EQUAL
- For programatic purposes, we include this constant which is used for the
compareTomethod.- See Also:
- Constant Field Values
NOT_EQUAL
public static final java.lang.String NOT_EQUAL
- For programatic purposes, we include this constant which is used for the
compareTomethod.- See Also:
- Constant Field Values
GREATER_THAN
public static final java.lang.String GREATER_THAN
- For programatic purposes, we include this constant which is used for the
compareTomethod.- See Also:
- Constant Field Values
GREATER_EQUAL
public static final java.lang.String GREATER_EQUAL
- For programatic purposes, we include this constant which is used for the
compareTomethod.- See Also:
- Constant Field Values
LESS_THAN
public static final java.lang.String LESS_THAN
- For programatic purposes, we include this constant which is used for the
compareTomethod.- See Also:
- Constant Field Values
LESS_EQUAL
public static final java.lang.String LESS_EQUAL
- For programatic purposes, we include this constant which is used for the
compareTomethod.- See Also:
- Constant Field Values
| Constructor Detail |
GSVNumberMethods
public GSVNumberMethods()
| Method Detail |
compareTo
public static final boolean compareTo(java.lang.Object object, java.lang.Object attribute, java.lang.String key, NSDictionary params)
- Compares the specified attribute to a number provided in the params dictionary.
The required key-value pairs include:
"Operator" = The specified operator string. (i.e. "==", "!=", ">", ">=", "<", or "<=" )
"RightOperand" = The number to compare the attribute to. (i.e. 0, 20, etc.)
isInRange
public static final boolean isInRange(java.lang.Object object, java.lang.Object attribute, java.lang.String key, NSDictionary params)
- Checks to make sure the attribute falls within the range specified in the params dictionary.
The attribute is allowed to equal the 'Low' or 'High' value.
The required key-value pairs include:
"Low" = The lowest possible value for this attribute.
"High" = The highest possible value for this attribute.
isPositiveNumber
public static final boolean isPositiveNumber(java.lang.Object object, java.lang.Object attribute, java.lang.String key, NSDictionary params)
- Verifies that attribute is a positive number.
isNegativeNumber
public static final boolean isNegativeNumber(java.lang.Object object, java.lang.Object attribute, java.lang.String key, NSDictionary params)
- Verifies that attribute is a negative number.
|
|||||||||
| Home >> All >> com >> gammastream >> [ validity overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.gammastream.validity.GSVNumberMethods