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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataExpressionParser
public DataExpressionParser()
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 contextattrURI
- the attribute namespaceattrName
- the attribute nameattrText
- 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 contextattrText
- the attribute string valueattrType
- 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