org.springmodules.validation.valang.functions
Class RegExFunction

java.lang.Object
  extended by org.springmodules.validation.valang.functions.AbstractFunction
      extended by org.springmodules.validation.valang.functions.RegExFunction
All Implemented Interfaces:
Function

public class RegExFunction
extends AbstractFunction

Regular expression match function. Takes two arguments: the pattern as a string and the string to be matched. The toString method of the second parameter value is called to retrieve the string value. This function is not null-safe.

Since:
Sep 15, 2005
Author:
Steven Devijver

Constructor Summary
RegExFunction(Function[] arguments, int line, int column)
           
 
Method Summary
protected  java.lang.Object doGetResult(java.lang.Object target)
           
 
Methods inherited from class org.springmodules.validation.valang.functions.AbstractFunction
definedExactNumberOfArguments, definedMaxNumberOfArguments, definedMinNumberOfArguments, getArguments, getResult, getTemplate, init, isAutowireByName, isAutowireByType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegExFunction

public RegExFunction(Function[] arguments,
                     int line,
                     int column)
Method Detail

doGetResult

protected java.lang.Object doGetResult(java.lang.Object target)
                                throws java.lang.Exception
Specified by:
doGetResult in class AbstractFunction
Throws:
java.lang.Exception


Copyright © 2005. All Rights Reserved.