|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecter.rest.routes.ERXRouteRequestHandler.NameFormat
public static class ERXRouteRequestHandler.NameFormat
NameFormat specifies how routes and controller names should be capitalized by default.
Nested Class Summary | |
---|---|
static class |
ERXRouteRequestHandler.NameFormat.Case
An enumerated type specifying the case of your routes. |
Constructor Summary | |
---|---|
ERXRouteRequestHandler.NameFormat(boolean pluralControllerName,
boolean pluralRouteName,
ERXRouteRequestHandler.NameFormat.Case routeCase)
Creates a new NameFormat. |
Method Summary | |
---|---|
protected java.lang.String |
caseifyEntityNamed(java.lang.String entityName)
Applies the case transformation to the given string. |
java.lang.String |
formatEntityNamed(java.lang.String entityName,
boolean pluralizeIfNecessary)
Formats the given entity name based on the rules of this format. |
boolean |
pluralControllerName()
Returns whether or not controller names should be pluralizd. |
boolean |
pluralRouteName()
Returns whether or not routes should be pluralizd. |
ERXRouteRequestHandler.NameFormat.Case |
routeCase()
Returns the case to use for routes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ERXRouteRequestHandler.NameFormat(boolean pluralControllerName, boolean pluralRouteName, ERXRouteRequestHandler.NameFormat.Case routeCase)
pluralControllerName
- if true, controller names with be pluralized ("CompaniesController")pluralRouteName
- if true, routes will be pluralizd ("/Companies.xml")routeCase
- the case to use for the route nameMethod Detail |
---|
public boolean pluralControllerName()
public boolean pluralRouteName()
public ERXRouteRequestHandler.NameFormat.Case routeCase()
protected java.lang.String caseifyEntityNamed(java.lang.String entityName)
entityName
- the string to adjust the case of
public java.lang.String formatEntityNamed(java.lang.String entityName, boolean pluralizeIfNecessary)
entityName
- the entity name to formatpluralizeIfNecessary
- if pluralRouteNames() is true, return the plural form
|
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 |