|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springmodules.validation.util.condition.AbstractCondition
org.springmodules.validation.util.cel.valang.ValangCondition
public class ValangCondition
A Condition implementation that checks the given object based on a valang boolean expression.
| Constructor Summary | |
|---|---|
ValangCondition(java.lang.String expression)
|
|
ValangCondition(java.lang.String expression,
java.util.Map functionsByName,
java.util.Map parserByRegexp)
|
|
| 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. |
boolean |
doCheck(java.lang.Object object)
Performs the actual checking of this condition on the checked object. |
void |
setApplicationContext(ApplicationContext applicationContext)
|
void |
setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
|
void |
setBeanFactory(BeanFactory beanFactory)
|
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. |
void |
setMessageSource(MessageSource messageSource)
|
void |
setResourceLoader(ResourceLoader resourceLoader)
|
void |
setServletContext(ServletContext servletContext)
|
| Methods inherited from class org.springmodules.validation.util.condition.AbstractCondition |
|---|
afterObjectChecked, and, beforeObjectChecked, check, or |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValangCondition(java.lang.String expression)
public ValangCondition(java.lang.String expression,
java.util.Map functionsByName,
java.util.Map parserByRegexp)
| Method Detail |
|---|
public boolean doCheck(java.lang.Object object)
AbstractCondition
doCheck in class AbstractConditionobject - The object to be checked.
true if the given object adheres to this condition, false otherwise.
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.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.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.
public void setApplicationContext(ApplicationContext applicationContext)
throws BeansException
BeansException
public void setBeanFactory(BeanFactory beanFactory)
throws BeansException
BeansExceptionpublic void setResourceLoader(ResourceLoader resourceLoader)
public void setMessageSource(MessageSource messageSource)
public void setServletContext(ServletContext servletContext)
public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||