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  Object doGetResult(Object target)
          Processes result for subclasses.
 
Methods inherited from class org.springmodules.validation.valang.functions.AbstractFunction
definedExactNumberOfArguments, definedMaxNumberOfArguments, definedMinNumberOfArguments, getArguments, getResult, getTemplate, init, isAutowireByName, isAutowireByType, setArguments, setTemplate, setTemplate
 
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 Object doGetResult(Object target)
                      throws Exception
Description copied from class: AbstractFunction
Processes result for subclasses.

Specified by:
doGetResult in class AbstractFunction
Throws:
Exception


Copyright © 2009. All Rights Reserved.