ERXRestUtils Class Reference

List of all members.

Static Public Member Functions

static Object coerceValueToAttributeType (Object value, EOClassDescription parentEntity, Object parentObject, String attributeName)
static String coerceValueToString (Object value)
static Object coerceValueToTypeNamed (Object value, String valueTypeName, IERXRestDelegate delegate)
static boolean isPrimitive (Class valueType)
static boolean isPrimitive (Object obj)

Static Protected Member Functions

static String dateFormat (boolean spaces)
static String timestampFormat (boolean spaces)


Detailed Description

Miscellaneous rest-related utility methods.

Author:
mschrag

Member Function Documentation

static Object coerceValueToAttributeType ( Object  value,
EOClassDescription  parentEntity,
Object  parentObject,
String  attributeName 
) [static]

Parses the given String and returns an object.

Parameters:
value the value of the attribute
parentEntity the entity
attributeName the name of the property
parentObject the parent object
Returns:
a parsed version of the String

static String coerceValueToString ( Object  value  )  [static]

Convert the given object to a String (using REST formats).

Parameters:
value the value to convert
Returns:
the REST-formatted string

static Object coerceValueToTypeNamed ( Object  value,
String  valueTypeName,
IERXRestDelegate  delegate 
) [static]

static String dateFormat ( boolean  spaces  )  [static, protected]

static boolean isPrimitive ( Class  valueType  )  [static]

Returns whether or not the given class represents a primitive in REST.

Parameters:
valueType the class to check
Returns:
whether or not the given class represents a primitive in REST

static boolean isPrimitive ( Object  obj  )  [static]

Returns whether or not the given object represents a primitive in REST.

Parameters:
obj the object to check
Returns:
whether or not the given object represents a primitive in REST

static String timestampFormat ( boolean  spaces  )  [static, protected]


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

Generated on Sat May 26 06:43:27 2012 for Project Wonder by  doxygen 1.5.8