Project Wonder 5.0

er.rest.entityDelegates
Class ERXRestEntityDelegateUtils

java.lang.Object
  extended by er.rest.entityDelegates.ERXRestEntityDelegateUtils

public class ERXRestEntityDelegateUtils
extends java.lang.Object

Miscellaneous rest-related utility methods.

Author:
mschrag

Constructor Summary
ERXRestEntityDelegateUtils()
           
 
Method Summary
static com.webobjects.eoaccess.EOEntity requiredEntityNamed(com.webobjects.eocontrol.EOEditingContext editingContext, java.lang.String name)
           
static com.webobjects.eoaccess.EOEntity requiredEntityNamed(ERXRestContext context, java.lang.String name)
           
static java.lang.String toString(ERXRestContext context, IERXRestResponseWriter writer, com.webobjects.eoaccess.EOEntity entity, com.webobjects.foundation.NSArray values)
          Returns a String form of the given objects using the given delegate.
static java.lang.String toString(ERXRestContext context, IERXRestResponseWriter writer, java.lang.Object value)
          Returns a String form of the given object using the given delegate.
static java.lang.String toString(IERXRestResponseWriter writer, com.webobjects.eoaccess.EOEntity entity, com.webobjects.foundation.NSArray values)
          Returns a String form of the given objects using the unsafe delegate.
static java.lang.String toString(IERXRestResponseWriter writer, java.lang.Object value)
          Returns a String form of the given object using the unsafe delegate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ERXRestEntityDelegateUtils

public ERXRestEntityDelegateUtils()
Method Detail

requiredEntityNamed

public static com.webobjects.eoaccess.EOEntity requiredEntityNamed(com.webobjects.eocontrol.EOEditingContext editingContext,
                                                                   java.lang.String name)

requiredEntityNamed

public static com.webobjects.eoaccess.EOEntity requiredEntityNamed(ERXRestContext context,
                                                                   java.lang.String name)

toString

public static java.lang.String toString(ERXRestContext context,
                                        IERXRestResponseWriter writer,
                                        java.lang.Object value)
                                 throws ERXRestException,
                                        ERXRestSecurityException,
                                        ERXRestNotFoundException,
                                        java.text.ParseException
Returns a String form of the given object using the given delegate.

Parameters:
context - the context to write within
writer - the writer to write with
value - the value to write
Returns:
a string form of the value using the given writer
Throws:
ERXRestException
ERXRestSecurityException
ERXRestNotFoundException
ParseException

toString

public static java.lang.String toString(ERXRestContext context,
                                        IERXRestResponseWriter writer,
                                        com.webobjects.eoaccess.EOEntity entity,
                                        com.webobjects.foundation.NSArray values)
                                 throws ERXRestException,
                                        ERXRestSecurityException,
                                        ERXRestNotFoundException,
                                        java.text.ParseException
Returns a String form of the given objects using the given delegate.

Parameters:
context - the context to write within
writer - the writer to write with
values - the values to write
Returns:
a string form of the value using the given writer
Throws:
ERXRestException
ERXRestSecurityException
ERXRestNotFoundException
ParseException

toString

public static java.lang.String toString(IERXRestResponseWriter writer,
                                        java.lang.Object value)
                                 throws ERXRestException,
                                        ERXRestSecurityException,
                                        ERXRestNotFoundException,
                                        java.text.ParseException
Returns a String form of the given object using the unsafe delegate.

Parameters:
writer - the writer to write with
value - the value to write
Returns:
a string form of the value using the given writer
Throws:
ERXRestException
ERXRestSecurityException
ERXRestNotFoundException
ParseException

toString

public static java.lang.String toString(IERXRestResponseWriter writer,
                                        com.webobjects.eoaccess.EOEntity entity,
                                        com.webobjects.foundation.NSArray values)
                                 throws ERXRestException,
                                        ERXRestSecurityException,
                                        ERXRestNotFoundException,
                                        java.text.ParseException
Returns a String form of the given objects using the unsafe delegate.

Parameters:
writer - the writer to write with
values - the values to write
Returns:
a string form of the value using the given writer
Throws:
ERXRestException
ERXRestSecurityException
ERXRestNotFoundException
ParseException

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.