com.vinculumtech.platform.util
Class RegexMatchFunction
java.lang.Object
com.vinculumtech.platform.util.RegexMatchFunction
- All Implemented Interfaces:
- Function, UnaryFunction
- public class RegexMatchFunction
- extends java.lang.Object
- implements UnaryFunction
The RegexMatchFunction class is a simple implementation of the UnaryFunction interface.
The execute method will return the given value, if its toString() matches the regular
expression set on the constructor.
If the regular expression is null, this function does nothing but return the
value object, null or not.
- Version:
- $Id: //depot/carrierwave/src/shared/com/vinculumtech/platform/util/RegexMatchFunction.java#1 $
Method Summary |
java.lang.Object |
execute(java.lang.Object value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegexMatchFunction
public RegexMatchFunction(java.lang.String regex)
execute
public java.lang.Object execute(java.lang.Object value)
throws java.lang.Exception
- Specified by:
execute
in interface UnaryFunction
- Throws:
java.lang.Exception
Copyright (C) 2002 Vinculum Technologies, Inc. All Rights Reserved.