|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.org.iscream.cms.util.StringUtils
A class containing useful methods for manipulating String objects.
Field Summary | |
private String |
_name
This is the friendly identifier of the component this class is running in. |
static String |
REVISION
The current CVS revision of this class |
Constructor Summary | |
StringUtils()
|
Method Summary | |
static int |
getStringPos(String search,
String[] array)
This method takes an array of String's and a String to look for and returns the position in the array that the string occurs. |
static String |
replaceText(String text,
String search,
String replace)
Searches a string and replaces all occurences of the given search text with the given replacement text. |
String |
toString()
Overrides the Object.toString()
method to provide clean logging (every class should have this). |
static boolean |
wildcardMatch(String in,
String expression)
Checks if a given string matches a wildcard expression. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String REVISION
private String _name
Constructor Detail |
public StringUtils()
Method Detail |
public static String replaceText(String text, String search, String replace)
text
- the text to search and replace insearch
- the string to look for and replacereplace
- the text to replace with
public static int getStringPos(String search, String[] array)
search
- the string to look forarray
- the array to look in
public static boolean wildcardMatch(String in, String expression)
in
- the string to checkexpression
- the wildcard expression to match against
public String toString()
Object.toString()
method to provide clean logging (every class should have this).
This uses the uk.org.iscream.cms.server.util.FormatName class
to format the toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |