|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ijsberg.iglu.util.formatting.PatternMatchingSupport
public abstract class PatternMatchingSupport
Helper class that validates formats of values.
| Constructor Summary | |
|---|---|
PatternMatchingSupport()
|
|
| Method Summary | |
|---|---|
static boolean |
valueMatchesRegularExpression(String val,
Pattern regexp)
Returns true only if the value matches the regular expression only once and exactly. |
static boolean |
valueMatchesRegularExpression(String val,
String regexp)
Returns true only if the value matches the regular expression only once and exactly. |
static boolean |
valueMatchesWildcardExpression(String val,
String exp)
Matches DOS-type wildcardexpressions rather than regular expressions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PatternMatchingSupport()
| Method Detail |
|---|
public static boolean valueMatchesRegularExpression(String val,
String regexp)
val - string value that may match the expressionregexp - regular expression
public static boolean valueMatchesRegularExpression(String val,
Pattern regexp)
val - string value that may match the expressionregexp - regular expression
public static boolean valueMatchesWildcardExpression(String val,
String exp)
val - string value that may match the expressionexp - expression that may contain wild cards
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||