|
||||||||||
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 |
stripClass(String aString)
Removes base name, leaving package name. |
String |
stripPackageName(String aString)
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 aString)
public String stripClass(String aString)
public String capitalized(String name)
public static String uncapitalized(String aString)
public String capitalizedAsConstant(String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |