|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecter.rest.ERXRestNameRegistry
public class ERXRestNameRegistry
ERXNameRegistry provides a registry to remap the names of entities and keys to another name. ERXRestFormat applies these renames at parse and format time so that your code doesn't have to deal with it. The default routes also apply these naming rules, though the route variable that you use will be the internal name, not the external name.
Constructor Summary | |
---|---|
protected |
ERXRestNameRegistry()
|
Method Summary | |
---|---|
protected void |
_setExternalNameForInternalName(java.lang.String externalName,
java.lang.String internalName)
|
java.lang.String |
externalNameForInternalName(java.lang.String internalName)
Returns the external name for the given internal name. |
java.lang.String |
internalNameForExternalName(java.lang.String externalName)
Returns the internal name for the given external name. |
static ERXRestNameRegistry |
registry()
Returns the singleton name registry. |
void |
setExternalNameForInternalName(java.lang.String externalName,
java.lang.String internalName)
Sets the external name for a given internal name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ERXRestNameRegistry()
Method Detail |
---|
public static ERXRestNameRegistry registry()
public void setExternalNameForInternalName(java.lang.String externalName, java.lang.String internalName)
externalName
- the name to expose in your serviceinternalName
- the name for use internallyprotected void _setExternalNameForInternalName(java.lang.String externalName, java.lang.String internalName)
public java.lang.String externalNameForInternalName(java.lang.String internalName)
internalName
- the internal name of the entity
public java.lang.String internalNameForExternalName(java.lang.String externalName)
externalName
- the external name of the entity
|
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 |