|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecter.rest.ERXRestUtils
public class ERXRestUtils
Miscellaneous rest-related utility methods.
Constructor Summary | |
---|---|
ERXRestUtils()
|
Method Summary | |
---|---|
static java.lang.Object |
coerceValueToAttributeType(java.lang.Object value,
com.webobjects.eocontrol.EOClassDescription parentEntity,
java.lang.Object parentObject,
java.lang.String attributeName)
Parses the given String and returns an object. |
static java.lang.String |
coerceValueToString(java.lang.Object value)
Convert the given object to a String (using REST formats). |
static java.lang.Object |
coerceValueToTypeNamed(java.lang.Object value,
java.lang.String valueTypeName,
IERXRestDelegate delegate)
|
protected static java.lang.String |
dateFormat(boolean spaces)
|
static boolean |
isPrimitive(java.lang.Class valueType)
Returns whether or not the given class represents a primitive in REST. |
static boolean |
isPrimitive(java.lang.Object obj)
Returns whether or not the given object represents a primitive in REST. |
protected static java.lang.String |
timestampFormat(boolean spaces)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ERXRestUtils()
Method Detail |
---|
public static boolean isPrimitive(java.lang.Object obj)
obj
- the object to check
public static boolean isPrimitive(java.lang.Class valueType)
valueType
- the class to check
public static java.lang.String coerceValueToString(java.lang.Object value)
value
- the value to convert
protected static java.lang.String timestampFormat(boolean spaces)
protected static java.lang.String dateFormat(boolean spaces)
public static java.lang.Object coerceValueToTypeNamed(java.lang.Object value, java.lang.String valueTypeName, IERXRestDelegate delegate)
public static java.lang.Object coerceValueToAttributeType(java.lang.Object value, com.webobjects.eocontrol.EOClassDescription parentEntity, java.lang.Object parentObject, java.lang.String attributeName)
value
- the value of the attributeparentEntity
- the entityattributeName
- the name of the propertyparentObject
- the parent object
|
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 |