|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wamblee.conditions.PropertyRegexCondition<T>
public class PropertyRegexCondition<T>
Condition to check whether a given property value matches a certain regular expression.
| Constructor Summary | |
|---|---|
PropertyRegexCondition(java.lang.String aProperty,
java.lang.String aRegex,
boolean aTolower)
Constructs the condition. |
|
| Method Summary | |
|---|---|
boolean |
matches(T aObject)
Determines if an object matches a condition. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyRegexCondition(java.lang.String aProperty,
java.lang.String aRegex,
boolean aTolower)
aProperty - Name of the property to examine.aRegex - Regular expression to use.aTolower - Whether or not to convert the value to lowercase before
matching.| Method Detail |
|---|
public boolean matches(T aObject)
Condition
matches in interface Condition<T>aObject - object to match.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||