public class ERXRestFormatDelegate extends java.lang.Object implements ERXRestFormat.Delegate
| Properties | |
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 java.lang.String |
ID_KEY |
static java.lang.String |
NIL_KEY |
static java.lang.String |
TYPE_KEY |
| Constructor and Description |
|---|
ERXRestFormatDelegate() |
ERXRestFormatDelegate(java.lang.String idKey,
java.lang.String typeKey,
java.lang.String nilKey,
boolean writeNilKey,
boolean pluralNames,
boolean underscoreNames,
boolean arrayTypes) |
ERXRestFormatDelegate(java.lang.String idKey,
java.lang.String typeKey,
java.lang.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 java.lang.String ID_KEY
public static final java.lang.String TYPE_KEY
public static final java.lang.String NIL_KEY
public ERXRestFormatDelegate()
public ERXRestFormatDelegate(java.lang.String idKey,
java.lang.String typeKey,
java.lang.String nilKey,
boolean writeNilKey,
boolean pluralNames,
boolean underscoreNames,
boolean arrayTypes)
public ERXRestFormatDelegate(java.lang.String idKey,
java.lang.String typeKey,
java.lang.String nilKey,
boolean writeNilKey,
boolean pluralNames,
boolean underscoreNames,
boolean arrayTypes,
boolean writeTypeKey)
public void nodeDidParse(ERXRestRequestNode node)
nodeDidParse in interface ERXRestFormat.Delegatepublic void nodeWillWrite(ERXRestRequestNode node)
nodeWillWrite in interface ERXRestFormat.DelegateCopyright © 2002 – 2022 Project Wonder.