com.inxar.affirm
Class AffirmMatch
java.lang.Object
|
+--com.inxar.affirm.AbstractAffirmation
|
+--com.inxar.affirm.AffirmMatch
- All Implemented Interfaces:
- Affirmation
- public class AffirmMatch
- extends AbstractAffirmation
Affirmation
implementation which checks that the value
associated with a certain key is a valid String
which
matches the given regular expression. The regular expression test
is encapsulated by gnu.regexp.RE.isMatch(Object
value)
.
Constructor Summary |
AffirmMatch(java.lang.Object key,
boolean isFatal,
java.lang.String pattern)
|
AffirmMatch(java.lang.Object key,
java.lang.String pattern)
|
AffirmMatch(java.lang.Object key,
java.lang.String msg,
boolean isFatal,
java.lang.String pattern)
|
Method Summary |
java.lang.Object |
affirm(java.lang.Object val)
Evaluates the given Input for validity. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AffirmMatch
public AffirmMatch(java.lang.Object key,
java.lang.String msg,
boolean isFatal,
java.lang.String pattern)
throws java.lang.Exception
AffirmMatch
public AffirmMatch(java.lang.Object key,
boolean isFatal,
java.lang.String pattern)
throws java.lang.Exception
AffirmMatch
public AffirmMatch(java.lang.Object key,
java.lang.String pattern)
throws java.lang.Exception
affirm
public java.lang.Object affirm(java.lang.Object val)
throws AffirmationException
- Description copied from interface:
Affirmation
- Evaluates the given
Input
for validity. If valid,
the method should return with an Object to be subsequently
included in a Datum
and Data
container. If invalid, an AffirmationException
is
thrown which carries out the error message and isFatal flag.