edu.cmu.aura.service
Class ExpressionUtil
java.lang.Object
|
+--edu.cmu.aura.service.ExpressionUtil
- public class ExpressionUtil
- extends java.lang.Object
ExpressionUtil provides convenience methods for dealing
with expressions.
|
Method Summary |
static java.lang.Object |
parseEqExpression(ExpressionNode eNode,
java.lang.StringBuffer attribName)
Parses a key equality expression and finds the literal
value specified. |
static java.lang.Object |
parseKeyEqExpression(ExpressionNode eNode,
java.lang.String attribName,
java.lang.Class literalClass)
Parses a key equality expression and finds the literal
value specified. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpressionUtil
public ExpressionUtil()
parseKeyEqExpression
public static java.lang.Object parseKeyEqExpression(ExpressionNode eNode,
java.lang.String attribName,
java.lang.Class literalClass)
throws ExpressionNotSupportedException,
RequestException
- Parses a key equality expression and finds the literal
value specified. An exception is thrown if
the expression is not a key equality expression,
if the attribute name in the expression is incorrect,
or if the type of the literal in the expression is incorrect.
- Parameters:
eNode - the key equality expressionattribName - the name of the key attributeliteralClass - the type of literal value that is required
- Returns:
- the literal value specified in eNode for the
key attribute
ExpressionNotSupportedException
RequestException
parseEqExpression
public static java.lang.Object parseEqExpression(ExpressionNode eNode,
java.lang.StringBuffer attribName)
throws ExpressionNotSupportedException,
RequestException
- Parses a key equality expression and finds the literal
value specified. An exception is thrown if
the expression is not a key equality expression,
if the attribute name in the expression is incorrect.
- Parameters:
eNode - the key equality expressionattribName - the name of the key attribute
- Returns:
- the literal value specified in eNode for the
key attribute
ExpressionNotSupportedException
RequestException