JSF-Spring

de.mindmatters.faces.el
Class ELParser

java.lang.Object
  extended by de.mindmatters.faces.el.ELParser

public final class ELParser
extends java.lang.Object

Utility class to implement support functionality to "morph" JSP EL into JSF EL.

Author:
Andreas Kuhrwahl

Method Summary
 java.lang.String convertToJspElExpression(java.lang.String expressionString)
          Convert ValueBinding syntax #{ } to JSP EL syntax ${ }.
static ELParser getCurrentInstance()
          Returns an instance of ELParser.
 java.lang.Object parseExpression(java.lang.String expressionString)
          Returns the parsed form of the given expression string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCurrentInstance

public static ELParser getCurrentInstance()
Returns an instance of ELParser.

Returns:
The singleton of this class.

convertToJspElExpression

public java.lang.String convertToJspElExpression(java.lang.String expressionString)
Convert ValueBinding syntax #{ } to JSP EL syntax ${ }.

Parameters:
expressionString - ValueBinding reference expression
Returns:
JSP EL compatible expression

parseExpression

public java.lang.Object parseExpression(java.lang.String expressionString)
Returns the parsed form of the given expression string. Returns either an Expression or ExpressionString.

Parameters:
expressionString - ValueBinding reference expression
Returns:
The parsed expression.
Throws:
ReferenceSyntaxException - in cases of parsing errors

JSF-Spring

Copyright © 2006 mindmatters GmbH & Co. KG