org.springmodules.validation.util.cel.valang
Class ValangConditionExpressionParser

java.lang.Object
  extended by org.springmodules.validation.util.context.BasicContextAware
      extended by org.springmodules.validation.valang.parser.SimpleValangBased
          extended by org.springmodules.validation.util.cel.valang.ValangConditionExpressionParser
All Implemented Interfaces:
BeanFactoryAware, ApplicationContextAware, ApplicationEventPublisherAware, MessageSourceAware, ResourceLoaderAware, ConditionExpressionParser, ContextAware, ValangBased

public class ValangConditionExpressionParser
extends SimpleValangBased
implements ConditionExpressionParser

A ConditionExpressionParser implementation that knows how to parse valang boolean expressions.

Author:
Uri Boness

Field Summary
 
Fields inherited from class org.springmodules.validation.util.context.BasicContextAware
applicationContext, applicationEventPublisher, beanFactory, messageSource, resourceLoader
 
Constructor Summary
ValangConditionExpressionParser()
           
 
Method Summary
 Condition parse(String expression)
          Parses the given condition expression and returns the parsed condition.
 
Methods inherited from class org.springmodules.validation.valang.parser.SimpleValangBased
addCustomFunction, createValangParser, createValangParser, findAllCustomFunctionsInApplicationContext, getAllCustomFunctions, getCustomFunctions, getDateParsers, initValang, setCustomFunctions, setDateParsers
 
Methods inherited from class org.springmodules.validation.util.context.BasicContextAware
initLifecycle, initLifecycle, setApplicationContext, setApplicationEventPublisher, setBeanFactory, setMessageSource, setResourceLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
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
 

Constructor Detail

ValangConditionExpressionParser

public ValangConditionExpressionParser()
Method Detail

parse

public Condition parse(String expression)
                throws CelParseException
Description copied from interface: ConditionExpressionParser
Parses the given condition expression and returns the parsed condition.

Specified by:
parse in interface ConditionExpressionParser
Parameters:
expression - The given condition expression.
Returns:
The parsed condition.
Throws:
CelParseException - thrown when the condition expression parsing fails.


Copyright © 2009. All Rights Reserved.