| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.lib.util.SimpleRegex
public class SimpleRegex
Allows for simple regex style testing of strings. The wildcard '.'
 is used to represent any single character, while '.*' is used to represent
 any series of 0 or more characters. Examples:
  SimpleRegex re = new SimpleRegex("the qu.ck .* dog", true);
 boolean matches = re.matches("The quick fox jumped over the lazy dog");
 
| Constructor Summary | |
|---|---|
| SimpleRegex(java.lang.String expr,
            boolean caseInsensitive) | |
| Method Summary | |
|---|---|
|  boolean | matches(java.lang.String target) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public SimpleRegex(java.lang.String expr,
                   boolean caseInsensitive)
| Method Detail | 
|---|
public boolean matches(java.lang.String target)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||