org.springmodules.validation.valang.parser
Interface ValangBased

All Known Implementing Classes:
SimpleValangBased, ValangCondition, ValangConditionExpressionParser, ValangFunctionExpressionParser, ValangValidator

public interface ValangBased

Objects that are based on the ValangParser should implement this interface.

Author:
Uri Boness

Method Summary
 void addCustomFunction(String functionName, String functionClassName)
          Adds the a new custom function to be used in the valang el.
 void setCustomFunctions(Map<String,Object> functionByName)
          Sets custom functions that should be registered with the used ValangParser.
 void setDateParsers(Map parserByRegexp)
          Sets the date parser that should be registered with the used ValangParser.
 

Method Detail

addCustomFunction

void addCustomFunction(String functionName,
                       String functionClassName)
Adds the a new custom function to be used in the valang el.

Parameters:
functionName - The name of the function.
functionClassName - The fully qualified class name of the function.

setCustomFunctions

void setCustomFunctions(Map<String,Object> functionByName)
Sets custom functions that should be registered with the used ValangParser.

Parameters:
functionByName - the custom functions where the key is the function name and the value is the function class FQN.

setDateParsers

void setDateParsers(Map parserByRegexp)
Sets the date parser that should be registered with the used ValangParser.

Parameters:
parserByRegexp - the date parsers where the key is the regexp associated with the parser and the value is the parser class FQN.


Copyright © 2009. All Rights Reserved.