|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.sdedit.util.Grep
public final class Grep
Utility class for matching strings against regular expressions and accessing substrings that match groups of the regular expression.
| Method Summary | |
|---|---|
static String[] |
parse(String regexp,
String string)
Matches a string against a regular expression and returns an array of the substrings corresponding to the groups of the regular expression, or null, if the string does not match the regular expression. |
static boolean |
parseAndSetProperties(Object bean,
String regexp,
String string,
String... properties)
Matches a string against a regular expression and uses the resulting groups (corresponding to portions of the regular expression between braces) for setting properties of a bean. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String[] parse(String regexp,
String string)
regexp - a regular expressionstring - a string
public static boolean parseAndSetProperties(Object bean,
String regexp,
String string,
String... properties)
throws IntrospectionException
bean - a beanregexp - a regular expressionstring - a string to match the regular expression againstproperties - names of properties of the bean
IntrospectionException - if the bean could not be introspected
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||