public class ERXRestFormatDelegate extends Object implements ERXRestFormat.Delegate
Name | Description |
---|---|
ERXRest.idKey | (default "id") Override this property if you want to use a different key for the 'id' attribute |
ERXRest.nilKey | (default "nil") Override this property if you want to use a different key for the 'nil' attribute |
ERXRest.writeNilKey | (default "true") |
ERXRest.pluralEntityNames | (default "true") |
ERXRest.typeKey | (default "type") Override this property if you want to use a different key for the 'type' attribute |
ERXRest.writeTypeKey | (default "true") |
Modifier and Type | Field and Description |
---|---|
static String |
ID_KEY |
static String |
NIL_KEY |
static String |
TYPE_KEY |
Constructor and Description |
---|
ERXRestFormatDelegate() |
ERXRestFormatDelegate(String idKey,
String typeKey,
String nilKey,
boolean writeNilKey,
boolean pluralNames,
boolean underscoreNames,
boolean arrayTypes) |
ERXRestFormatDelegate(String idKey,
String typeKey,
String nilKey,
boolean writeNilKey,
boolean pluralNames,
boolean underscoreNames,
boolean arrayTypes,
boolean writeTypeKey) |
Modifier and Type | Method and Description |
---|---|
void |
nodeDidParse(ERXRestRequestNode node) |
void |
nodeWillWrite(ERXRestRequestNode node) |
public static final String ID_KEY
public static final String TYPE_KEY
public static final String NIL_KEY
public ERXRestFormatDelegate()
public ERXRestFormatDelegate(String idKey, String typeKey, String nilKey, boolean writeNilKey, boolean pluralNames, boolean underscoreNames, boolean arrayTypes)
public void nodeDidParse(ERXRestRequestNode node)
nodeDidParse
in interface ERXRestFormat.Delegate
public void nodeWillWrite(ERXRestRequestNode node)
nodeWillWrite
in interface ERXRestFormat.Delegate
Copyright © 2002 – 2020 Project Wonder.