|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecter.rest.format.ERXRestFormat
public class ERXRestFormat
Nested Class Summary | |
---|---|
static interface |
ERXRestFormat.Delegate
|
static class |
ERXRestFormat.NoOpDelegate
|
Field Summary | |
---|---|
static ERXRestFormat |
GIANDUIA_JSON
|
static ERXRestFormat |
GIANDUIA_PERSISTENT_STORE
|
static ERXRestFormat |
HTML
|
static ERXRestFormat |
JS
|
static ERXRestFormat |
JSON
|
static ERXRestFormat |
PLIST
|
static ERXRestFormat |
RAILS
|
static ERXRestFormat |
SPROUTCORE
|
static ERXRestFormat |
XML
|
Constructor Summary | |
---|---|
ERXRestFormat(java.lang.String name,
IERXRestParser parser,
IERXRestWriter writer,
ERXRestFormat.Delegate delegate)
|
Method Summary | |
---|---|
ERXRestFormat.Delegate |
delegate()
|
static ERXRestFormat |
formatNamed(java.lang.String name)
|
java.lang.String |
name()
Returns the name of this format. |
ERXRestRequestNode |
parse(java.lang.String str)
Returns a parsed ERXRestRequestNode using this format's parser. |
IERXRestParser |
parser()
|
static ERXRestFormat |
registerFormatNamed(ERXRestFormat format,
java.lang.String name)
|
static ERXRestFormat |
registerFormatNamed(IERXRestParser parser,
IERXRestWriter writer,
ERXRestFormat.Delegate delegate,
java.lang.String... names)
|
java.lang.String |
toString()
|
java.lang.String |
toString(com.webobjects.eocontrol.EOClassDescription classDescription,
java.util.List<?> list,
ERXKeyFilter filter,
IERXRestDelegate delegate)
Returns the formatted version of the given list. |
java.lang.String |
toString(java.lang.Object obj)
Returns the formatted version of the given object using a recursive "All" filter and the default rest delegate. |
java.lang.String |
toString(java.lang.Object obj,
ERXKeyFilter filter,
IERXRestDelegate delegate)
Returns the formatted version of the given object. |
java.lang.String |
toString(java.lang.Object obj,
IERXRestDelegate delegate)
Returns the formatted version of the given object using a recursive "All" filter. |
IERXRestWriter |
writer()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static ERXRestFormat JSON
public static ERXRestFormat JS
public static ERXRestFormat PLIST
public static ERXRestFormat RAILS
public static ERXRestFormat XML
public static ERXRestFormat HTML
public static ERXRestFormat GIANDUIA_JSON
public static ERXRestFormat GIANDUIA_PERSISTENT_STORE
public static ERXRestFormat SPROUTCORE
Constructor Detail |
---|
public ERXRestFormat(java.lang.String name, IERXRestParser parser, IERXRestWriter writer, ERXRestFormat.Delegate delegate)
Method Detail |
---|
public java.lang.String name()
public IERXRestParser parser()
public IERXRestWriter writer()
public ERXRestFormat.Delegate delegate()
public ERXRestRequestNode parse(java.lang.String str)
str
- the string to parse
public java.lang.String toString(java.lang.Object obj)
obj
- the object to render
public java.lang.String toString(java.lang.Object obj, IERXRestDelegate delegate)
obj
- the object to renderdelegate
- the rest delegate to use
public java.lang.String toString(java.lang.Object obj, ERXKeyFilter filter, IERXRestDelegate delegate)
obj
- the object to renderfilter
- the filter to apply to the objectdelegate
- the rest delegate to use
public java.lang.String toString(com.webobjects.eocontrol.EOClassDescription classDescription, java.util.List<?> list, ERXKeyFilter filter, IERXRestDelegate delegate)
classDescription
- the class description for the elements of the listlist
- the listfilter
- the filterdelegate
- the rest delegate to use
public java.lang.String toString()
toString
in class java.lang.Object
public static ERXRestFormat formatNamed(java.lang.String name)
public static ERXRestFormat registerFormatNamed(IERXRestParser parser, IERXRestWriter writer, ERXRestFormat.Delegate delegate, java.lang.String... names)
public static ERXRestFormat registerFormatNamed(ERXRestFormat format, java.lang.String name)
|
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 |