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