Public Types | |
| enum | Case { CamelCase, LowerCamelCase, Lowercase, LowercaseUnderscore } |
Public Member Functions | |
| String | formatEntityNamed (String entityName, boolean pluralizeIfNecessary) |
| NameFormat (boolean pluralControllerName, boolean pluralRouteName, NameFormat.Case routeCase) | |
| boolean | pluralControllerName () |
| boolean | pluralRouteName () |
| NameFormat.Case | routeCase () |
Protected Member Functions | |
| String | caseifyEntityNamed (String entityName) |
Private Attributes | |
| boolean | _pluralControllerName |
| boolean | _pluralRouteName |
| Case | _routeCase |
| enum Case |
| NameFormat | ( | boolean | pluralControllerName, | |
| boolean | pluralRouteName, | |||
| NameFormat.Case | routeCase | |||
| ) |
Creates a new NameFormat.
| 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 name |
Applies the case transformation to the given string.
| entityName | the string to adjust the case of |
| boolean pluralControllerName | ( | ) |
Returns whether or not controller names should be pluralizd.
| boolean pluralRouteName | ( | ) |
| NameFormat.Case routeCase | ( | ) |
boolean _pluralControllerName [private] |
boolean _pluralRouteName [private] |
Case _routeCase [private] |
1.5.8