org.springmodules.validation.valang.functions
Class EmailFunction

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

public class EmailFunction
extends AbstractFunction

Email function. Takes one argument. Converts the argument to a string using the toString() method, and checks whether the returned string is a valid email address.

Since:
May 26, 2006
Author:
Uri Boness

Constructor Summary
EmailFunction(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

EmailFunction

public EmailFunction(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.