|
© 2005 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bea.p13n.content.expression.ExpressionAdapter
Class which can adapt between old com.beasys.commerce.foundation.expression and new com.bea.p13n.expression.Expressions, specifically for content.
This will be removed when the com.beasys.commerce.foundation.expression.Expressions are removed.
| Constructor Summary | |
ExpressionAdapter()
Deprecated. |
|
| Method Summary | |
static Expression |
createBranchExpression(String logicalComparator)
Deprecated. Create the appropriate new branch Expression from the given information. |
static Expression |
createLeafExpression(String propertySet,
String propertyName,
String comparator,
Object literal)
Deprecated. Create the appropriate new leaf Expression from the given information. |
static String |
getComparator(Expression expr)
Deprecated. Get the TypesHelper comparator constant for the specified leaf node. |
static String |
getLogicalComparator(Expression expr)
Deprecated. Get the TypesHelper logical comparator constant for the specified branch node. |
static Expression |
toExpression(Expression orig)
Deprecated. Convert from old expression to new expression. |
static Expression |
toExpression(Expression orig)
Deprecated. Convert from new expression to old expression. |
static Search |
toSearch(Search orig)
Deprecated. Convert an old Search to a new Search (including the contained expression). |
static Search |
toSearch(Search orig)
Deprecated. Convert an new Search to an old Search (including the contained expression). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ExpressionAdapter()
| Method Detail |
public static Expression createBranchExpression(String logicalComparator)
throws IllegalArgumentException
logicalComparator - the TypesHelper comparator constant (AND or
OR).
IllegalArgumentException - thrown if logicalComparator is invalid.
public static Expression createLeafExpression(String propertySet,
String propertyName,
String comparator,
Object literal)
throws IllegalArgumentException
propertySet - the propertySet name (can be null).propertyName - the propertyName.comparator - the TypesHelper comparator constant.literal - the rhs literal value.
IllegalArgumentException - thrown if comparator is invalid.
public static String getComparator(Expression expr)
throws IllegalArgumentException
IllegalArgumentException - thrown if expr is not a leaf node.public static String getLogicalComparator(Expression expr)
IllegalArgumentException - thrown if expr is not a branch node.
public static Expression toExpression(Expression orig)
throws IllegalArgumentException
IllegalArgumentException - thrown if the incoming expression is
invalid.
public static Expression toExpression(Expression orig)
throws IllegalArgumentException
IllegalArgumentException - thrown if the incoming expression is
invalid.
public static Search toSearch(Search orig)
throws IllegalArgumentException
IllegalArgumentException - thrown if the incoming expression is
invalid.
public static Search toSearch(Search orig)
throws IllegalArgumentException
IllegalArgumentException - thrown if the incoming expression is
invalid.
|
© 2005 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||