WBUtilities Class Reference

Collaboration diagram for WBUtilities:

Collaboration graph
base refererrect $class_w_b_combo_formatter.html 7,8 151,32
[legend]

List of all members.

Static Public Member Functions

static NSArray filteredArrayWithKeyAndValue (NSArray anArray, String key, String value)
static void invalidateObject (EOEnterpriseObject object)
static EOEnterpriseObject localInstance (EOEditingContext ec, EOEnterpriseObject anObject)
static Number primaryKeyForObjectWithKey (EOEnterpriseObject object, String key)
static void reverseSortArrayWithKey (NSMutableArray anArray, String key)
static void reverseSortArrayWithKey1And2 (NSMutableArray anArray, String key1, String key2)
static NSArray reverseSortedArrayWithKey (NSMutableArray anArray, String key)
static void sortArrayWithKey (NSMutableArray anArray, String key)
static void sortArrayWithKey1And2 (NSMutableArray anArray, String key1, String key2)
static NSArray sortedArrayWithKey (NSMutableArray anArray, String key)
static String toHTML (String str)

Private Member Functions

 WBUtilities ()

Static Private Attributes

static final WBComboFormatter htmlFormatter = new WBComboFormatter(false, false, true)


Detailed Description

WBUtilities only has static methods that are used to sort, filter, and manipulate EOEnterpriseObjects.
This class also has a convience toHTML(String str) method.

Constructor & Destructor Documentation

WBUtilities (  )  [private]


Member Function Documentation

static NSArray filteredArrayWithKeyAndValue ( NSArray  anArray,
String  key,
String  value 
) [static]

Filters an array of EOEnterpriseObjects with a key and value.

Returns:
NSArray of filted EOEnterpriseObjects
Parameters:
anArray Array of EOEnterpriseObjects
key Key to filter by
value Value for key
See also:
sortedArrayWithKey

static void invalidateObject ( EOEnterpriseObject  object  )  [static]

Invalidate the Object

Parameters:
object EOEnterpriseObject to invalidate

static EOEnterpriseObject localInstance ( EOEditingContext  ec,
EOEnterpriseObject  anObject 
) [static]

Short hand method for EOUtilities.localInstanceOfObject(ec, anObject);.

Returns:
EOEnterpriseObject
Parameters:
ec EOEditingContext
anObject EOEnterpriseObject

static Number primaryKeyForObjectWithKey ( EOEnterpriseObject  object,
String  key 
) [static]

Returns the Primary Key for an EOEnterpriseObject.

Returns:
Returns Primary Key for object if object and key are not null, 0 otherwise.
Parameters:
object EOEnterpriseObject to get the Primary Key
key Key for Primary Key

static void reverseSortArrayWithKey ( NSMutableArray  anArray,
String  key 
) [static]

Sorts an array of EOEnterpriseObjects with a key. The array will be descending.

Parameters:
anArray Array of EOEnterpriseObjects
key Key to sort by
See also:
sortArrayWithKey

static void reverseSortArrayWithKey1And2 ( NSMutableArray  anArray,
String  key1,
String  key2 
) [static]

Sorts an array of EOEnterpriseObjects with two keys. The array will be descending.

Parameters:
anArray Array of EOEnterpriseObjects
key1 Key to sort by first
key3 Key to sort by second
See also:
sortArrayWithKey1And2

static NSArray reverseSortedArrayWithKey ( NSMutableArray  anArray,
String  key 
) [static]

Sorts an array of EOEnterpriseObjects with a key. The array will be descending.

Returns:
NSArray of sorted EOEnterpriseObjects
Parameters:
anArray Array of EOEnterpriseObjects
key Key to sort by
See also:
sortedArrayWithKey

static void sortArrayWithKey ( NSMutableArray  anArray,
String  key 
) [static]

Sorts an array of EOEnterpriseObjects with a key. The array will be ascending.

Parameters:
anArray Array of EOEnterpriseObjects
key Key to sort by
See also:
reverseSortArrayWithKey

static void sortArrayWithKey1And2 ( NSMutableArray  anArray,
String  key1,
String  key2 
) [static]

Sorts an array of EOEnterpriseObjects with two keys. The array will be ascending.

Parameters:
anArray Array of EOEnterpriseObjects
key1 Key to sort by first
key3 Key to sort by second
See also:
reverseSortArrayWithKey1And2

static NSArray sortedArrayWithKey ( NSMutableArray  anArray,
String  key 
) [static]

Sorts an array of EOEnterpriseObjects with a key. The array will be ascending.

Returns:
NSArray of sorted EOEnterpriseObjects
Parameters:
anArray Array of EOEnterpriseObjects
key Key to sort by
See also:
reverseSortedArrayWithKey

static String toHTML ( String  str  )  [static]

Takes a String and converts the carriage returns to breaks and tabs to five non-break spaces.

Returns:
HTML formatted string
Parameters:
str String to format


Member Data Documentation

final WBComboFormatter htmlFormatter = new WBComboFormatter(false, false, true) [static, private]


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

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