UIX 2.2.16

oracle.cabo.ui.expl
Class DataExpressionParser

java.lang.Object
  |
  +--oracle.cabo.share.expl.ExpressionParser
        |
        +--oracle.cabo.ui.expl.DataExpressionParser

public final class DataExpressionParser
extends ExpressionParser

DataExpressionParser is the BoundValues and literal parser for the "data" binding style.

For example, data:text="property@bean" is supported by this binding style.


Fields inherited from class oracle.cabo.share.expl.ExpressionParser
DATA_EXPRESSION_PARSER_NAME, EL_EXPRESSION_PARSER_NAME
 
Constructor Summary
DataExpressionParser()
           
 
Method Summary
 java.lang.String getName()
          gets the name of this bindingParser
 boolean isBinding(ExpressionContext context, java.lang.String attrURI, java.lang.String attrName, java.lang.String attrText)
           
 java.lang.Object parseExpression(ExpressionContext context, java.lang.String attrText, java.lang.Class attrType)
          Returns the parsed binding as a bound value or literal.
static DataExpressionParser sharedInstance()
          Returns the shared DataExpressionParser instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataExpressionParser

public DataExpressionParser()
Method Detail

sharedInstance

public static DataExpressionParser sharedInstance()
Returns the shared DataExpressionParser instance.

getName

public java.lang.String getName()
Description copied from class: ExpressionParser
gets the name of this bindingParser
Overrides:
getName in class ExpressionParser

isBinding

public boolean isBinding(ExpressionContext context,
                         java.lang.String attrURI,
                         java.lang.String attrName,
                         java.lang.String attrText)
Overrides:
isBinding in class ExpressionParser
Following copied from class: oracle.cabo.share.expl.ExpressionParser
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 ExpressionParser.parseExpression(oracle.cabo.share.expl.ExpressionContext, java.lang.String, java.lang.Class).

parseExpression

public java.lang.Object parseExpression(ExpressionContext context,
                                        java.lang.String attrText,
                                        java.lang.Class attrType)
                                 throws ExplException
Returns the parsed binding as a bound value or literal. If the namespace is a data bound namespace, then a bound value is parsed, otherwise a literal is parsed.
Overrides:
parseExpression in class ExpressionParser
Parameters:
context - the binding context
attrText - the attribute string value
attrType - the type of the parsed literal or the return type of the parsed bound value
Returns:
the parsed binding as a bound value or literal

UIX 2.2.16