org.springmodules.validation.valang.parser
Interface ValangBased

All Superinterfaces:
ApplicationContextAware, ApplicationEventPublisherAware, BeanFactoryAware, ContextAware, MessageSourceAware, ResourceLoaderAware
All Known Implementing Classes:
SimpleValangBased, ValangCondition, ValangConditionExpressionParser, ValangFunctionExpressionParser, ValangValidator

public interface ValangBased
extends ContextAware

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 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.
 
Methods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContext
 
Methods inherited from interface org.springframework.beans.factory.BeanFactoryAware
setBeanFactory
 
Methods inherited from interface org.springframework.context.ResourceLoaderAware
setResourceLoader
 
Methods inherited from interface org.springframework.context.MessageSourceAware
setMessageSource
 
Methods inherited from interface org.springframework.context.ApplicationEventPublisherAware
setApplicationEventPublisher
 

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 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.