|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cayenne.gen.StringUtils
public class StringUtils
Methods for mangling strings.
| Constructor Summary | |
|---|---|
StringUtils()
|
|
| Method Summary | |
|---|---|
String |
capitalized(String name)
Capitalizes the first letter of the property name. |
String |
capitalizedAsConstant(String name)
Converts property name to Java constants naming convention. |
String |
formatVariableName(String variableName)
Prepends underscore to variable name if necessary to remove conflict with reserved keywords. |
static StringUtils |
getInstance()
|
String |
pluralize(String str)
Converts entity or property name to a plural form. |
String |
stripClass(String aString)
Removes base name, leaving package name. |
String |
stripPackageName(String fullyQualifiedClassName)
Removes package name, leaving base name. |
static String |
uncapitalized(String aString)
Returns string with lowercased first letter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringUtils()
| Method Detail |
|---|
public static StringUtils getInstance()
public String formatVariableName(String variableName)
public String stripPackageName(String fullyQualifiedClassName)
public String stripClass(String aString)
public String capitalized(String name)
public static String uncapitalized(String aString)
public String capitalizedAsConstant(String name)
public String pluralize(String str)
As of 3.1 this method is not used in bundled templates, and is present here for user templates convenience.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||