|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tiles.autotag.tool.StringTool
public class StringTool
A Velocity tools to manipulate strings.
Constructor Summary | |
---|---|
StringTool()
Constructor. |
Method Summary | |
---|---|
String |
capitalizeFirstLetter(String string)
Creates a string in which the first character is capitalized. |
String |
getClassToCast(String type)
Returns the class to be used to cast an Object. |
String |
getDefaultValue(String type,
String overriddenDefaultValue)
Returns the default value for a type. |
List<String> |
splitOnNewlines(String toSplit)
Creates a list of strings, separating a string when a newline is encountered. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringTool()
Method Detail |
---|
public List<String> splitOnNewlines(String toSplit)
toSplit
- The string to split.
public String capitalizeFirstLetter(String string)
string
- The string to use.
public String getDefaultValue(String type, String overriddenDefaultValue)
type
- The type.overriddenDefaultValue
- The default value, as specified by developers.
public String getClassToCast(String type)
type
- The type to use, even a primitive type.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |