GSVOtherMethods Class Reference

Collaboration diagram for GSVOtherMethods:

Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static final boolean isArrayEmpty (Object object, Object attribute, String key, NSDictionary params)
static final boolean isNull (Object object, Object attribute, String key, NSDictionary params)
static final boolean isUnique (Object object, Object attribute, String key, NSDictionary params)

Static Private Attributes

static EOEditingContext _editingContext = null


Detailed Description

This class provides a set of predefined rules for performing validation on miscellaneous data types. These rules are part of the default set of 'QuickRules'.

Author:
GammaStream Technologies, Inc.

Member Function Documentation

static final boolean isArrayEmpty ( Object  object,
Object  attribute,
String  key,
NSDictionary  params 
) [static]

Determines whether the specified to-many relationship contains any objects.

The required key-value pairs include:
"RelationshipKey" = The relationship key. (i.e. "toUsers" )

Parameters:
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.
Returns:
true if the to-many array is empty; otherwise, false

static final boolean isNull ( Object  object,
Object  attribute,
String  key,
NSDictionary  params 
) [static]

Determines whether a value has been provided for the specified attribute.

Parameters:
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.
Returns:
true if the value is null; otherwise, false

static final boolean isUnique ( Object  object,
Object  attribute,
String  key,
NSDictionary  params 
) [static]

Verifies that the specified attribute is unique.

Parameters:
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.
Returns:
true if the attribute is empty; otherwise, false


Member Data Documentation

EOEditingContext _editingContext = null [static, private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:30 2012 for Project Wonder by  doxygen 1.5.8