|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gammastream.validity.GSVNumberMethods
public class 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 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,
com.webobjects.foundation.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,
com.webobjects.foundation.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,
com.webobjects.foundation.NSDictionary params)
Verifies that attribute is a negative number. |
static boolean |
isPositiveNumber(java.lang.Object object,
java.lang.Object attribute,
java.lang.String key,
com.webobjects.foundation.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 java.lang.String EQUAL
compareTo
method.
public static final java.lang.String NOT_EQUAL
compareTo
method.
public static final java.lang.String GREATER_THAN
compareTo
method.
public static final java.lang.String GREATER_EQUAL
compareTo
method.
public static final java.lang.String LESS_THAN
compareTo
method.
public static final java.lang.String LESS_EQUAL
compareTo
method.
Constructor Detail |
---|
public GSVNumberMethods()
Method Detail |
---|
public static final boolean compareTo(java.lang.Object object, java.lang.Object attribute, java.lang.String key, com.webobjects.foundation.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(java.lang.Object object, java.lang.Object attribute, java.lang.String key, com.webobjects.foundation.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(java.lang.Object object, java.lang.Object attribute, java.lang.String key, com.webobjects.foundation.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(java.lang.Object object, java.lang.Object attribute, java.lang.String key, com.webobjects.foundation.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: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |