|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springmodules.validation.util.context.BasicContextAware
org.springmodules.validation.valang.parser.SimpleValangBased
public class SimpleValangBased
A simple implementation of ValangBased.
| Field Summary |
|---|
| Fields inherited from class org.springmodules.validation.util.context.BasicContextAware |
|---|
applicationContext, applicationEventPublisher, beanFactory, messageSource, resourceLoader, servletContext |
| Constructor Summary | |
|---|---|
SimpleValangBased()
|
|
| Method Summary | |
|---|---|
void |
addCustomFunction(java.lang.String functionName,
java.lang.String functionClassName)
Adds the a new custom function to be used in the valang el. |
ValangParser |
createValangParser(java.lang.String expression)
Creates a new ValangParser that is already configured with the proper custom functions and date
parsers. |
protected java.util.Map |
findAllCustomFunctionsInApplicationContext()
|
java.util.Map |
getAllCustomFunctions()
Returns all the custom functions that can be found. |
java.util.Map |
getCustomFunctions()
|
java.util.Map |
getDateParsers()
|
void |
initValang(java.lang.Object object)
|
void |
setCustomFunctions(java.util.Map functionByName)
Sets custom functions that should be registered with the used ValangParser. |
void |
setDateParsers(java.util.Map parserByRegexp)
Sets the date parser that should be registered with the used ValangParser. |
| Methods inherited from class org.springmodules.validation.util.context.BasicContextAware |
|---|
initLifecycle, initLifecycle, setApplicationContext, setApplicationEventPublisher, setBeanFactory, setMessageSource, setResourceLoader, setServletContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleValangBased()
| Method Detail |
|---|
public void setCustomFunctions(java.util.Map functionByName)
ValangBasedValangParser.
setCustomFunctions in interface ValangBasedfunctionByName - the custom functions where the key is the function name and the value is the function
class FQN.ValangBased.setCustomFunctions(java.util.Map)
public void addCustomFunction(java.lang.String functionName,
java.lang.String functionClassName)
ValangBased
addCustomFunction in interface ValangBasedfunctionName - The name of the function.functionClassName - The fully qualified class name of the function.ValangBased.addCustomFunction(String, String)public void setDateParsers(java.util.Map parserByRegexp)
ValangBasedValangParser.
setDateParsers in interface ValangBasedparserByRegexp - the date parsers where the key is the regexp associated with the parser and the value
is the parser class FQN.ValangBased.setDateParsers(java.util.Map)public java.util.Map getCustomFunctions()
public java.util.Map getDateParsers()
public ValangParser createValangParser(java.lang.String expression)
ValangParser that is already configured with the proper custom functions and date
parsers.
ValangParser.public void initValang(java.lang.Object object)
public java.util.Map getAllCustomFunctions()
FunctionDefinition
beans.
protected java.util.Map findAllCustomFunctionsInApplicationContext()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||