|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.prosyst.util.beans.StringTools
public class StringTools
This class provides some utility methods, used by BeanUtils
| Constructor Summary | |
|---|---|
StringTools()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
capitalize(java.lang.String lower)
Capitalizes the first letter of the given string argument. |
static java.lang.String |
decapitalize(java.lang.String upper)
Decapitalizes the first letter of the given string argument. |
static boolean |
isTrimmedEmpty(java.lang.String str)
Checks that the given string argument is null or its length after trimming is 0. |
static java.lang.String |
makeGetter(java.lang.String propertyName)
Constructs a getter method name given a property name. |
static java.lang.String |
makeIs(java.lang.String propertyName)
Constructs an is method name given a property name. |
static java.lang.String |
makeSetter(java.lang.String propertyName)
Constructs a setter method name given a property name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringTools()
| Method Detail |
|---|
public static java.lang.String capitalize(java.lang.String lower)
lower - the initial string. It must not be null and its length after
trimming must not be 0
public static java.lang.String decapitalize(java.lang.String upper)
upper - the initial string. It must not be null and its length after
trimming must not be 0
public static java.lang.String makeGetter(java.lang.String propertyName)
propertyName - the name of the property. It must not be null and
its length after trimming must not be 0.
public static java.lang.String makeSetter(java.lang.String propertyName)
propertyName - the name of the property. It must not be null and
its length after trimming must not be 0.
public static java.lang.String makeIs(java.lang.String propertyName)
propertyName - the name of the property. It must not be null and
its length after trimming must not be 0.
public static boolean isTrimmedEmpty(java.lang.String str)
str - the string to be tested
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||