|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.velocity.util.StringUtils
public class StringUtils
This class provides some methods for dynamically invoking methods in objects, and some string manipulation methods used by torque. The string methods will soon be moved into the turbine string utilities class.
| Constructor Summary | |
|---|---|
StringUtils()
|
|
| Method Summary | ||
|---|---|---|
boolean |
allEmpty(java.util.List list)
Check to see if all the string objects passed in are empty. |
|
static java.lang.String |
capitalizeFirstLetter(java.lang.String data)
Capitalize the first letter but leave the rest as they are. |
|
static java.lang.String |
chop(java.lang.String s,
int i)
Chop i characters off the end of a string. |
|
static java.lang.String |
chop(java.lang.String s,
int i,
java.lang.String eol)
Chop i characters off the end of a string. |
|
static java.lang.String |
collapseNewlines(java.lang.String argStr)
Remove/collapse multiple newline characters. |
|
static java.lang.String |
collapseSpaces(java.lang.String argStr)
Remove/collapse multiple spaces. |
|
java.lang.String |
concat(java.util.List list)
Concatenates a list of objects as a String. |
|
static java.lang.String |
fileContentsToString(java.lang.String file)
Read the contents of a file and place them in a string object. |
|
static java.lang.String |
firstLetterCaps(java.lang.String data)
Makes the first letter caps and the rest p;METHOD |
DETAIL: FIELD | CONSTR | METHOD |
public interface ContextAware
Event handlers implementing this interface will automatically have the method setContext called before each event. This allows the event handler to use information in the latest context when responding to the event.
Important Note: Only local event handlers attached to the context (as opposed to global event handlers initialized in the velocity.properties file) should implement ContextAware. Since global event handlers are singletons individual requests will not be able to count on the correct context being loaded before a request.
| Method Summary | |
|---|---|
void |
setContext(Context context)
Initialize the EventHandler. |
| Method Detail |
|---|
void setContext(Context context)
context -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||