UIX 2.2.16

oracle.cabo.share.expl
Class ExpressionParser

java.lang.Object
  |
  +--oracle.cabo.share.expl.ExpressionParser
Direct Known Subclasses:
DataExpressionParser, ELExpressionParser

public abstract class ExpressionParser
extends java.lang.Object

ExpressionParser is the abstraction for parsing expressions and literal values.


Field Summary
static java.lang.String DATA_EXPRESSION_PARSER_NAME
           
static java.lang.String EL_EXPRESSION_PARSER_NAME
           
 
Constructor Summary
ExpressionParser()
           
 
Method Summary
abstract  java.lang.String getName()
          gets the name of this bindingParser
abstract  boolean isBinding(ExpressionContext context, java.lang.String attrURI, java.lang.String attrName, java.lang.String attrText)
           
abstract  java.lang.Object parseExpression(ExpressionContext context, java.lang.String text, java.lang.Class type)
          Returns the parsed expression as a BoundValue or literal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EL_EXPRESSION_PARSER_NAME

public static final java.lang.String EL_EXPRESSION_PARSER_NAME

DATA_EXPRESSION_PARSER_NAME

public static final java.lang.String DATA_EXPRESSION_PARSER_NAME
Constructor Detail

ExpressionParser

public ExpressionParser()
Method Detail

parseExpression

public abstract java.lang.Object parseExpression(ExpressionContext context,
                                                 java.lang.String text,
                                                 java.lang.Class type)
                                          throws ExplException
Returns the parsed expression as a BoundValue or literal.
Parameters:
context - the binding context
text - the expression to parse
type - the type of the parsed literal or the return type of the parsed bound value
Returns:
the parsed expression as a BoundValue or literal

isBinding

public abstract boolean isBinding(ExpressionContext context,
                                  java.lang.String attrURI,
                                  java.lang.String attrName,
                                  java.lang.String attrText)
Parameters:
context - the binding context
attrURI - the attribute namespace
attrName - the attribute name
attrText - the attribute string value
Returns:
true if the value for the specified attribute is not a literal and needs to be parsed into a BoundValue by parseExpression(oracle.cabo.share.expl.ExpressionContext, java.lang.String, java.lang.Class).

getName

public abstract java.lang.String getName()
gets the name of this bindingParser

UIX 2.2.16