|
© 2001 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.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()
|
Method Summary | |
static Expression |
createBranchExpression(java.lang.String logicalComparator)
Create the appropriate new branch Expression from the given information. |
static Expression |
createLeafExpression(java.lang.String propertySet,
java.lang.String propertyName,
java.lang.String comparator,
java.lang.Object literal)
Create the appropriate new leaf Expression from the given information. |
static java.lang.String |
getComparator(Expression expr)
Get the TypesHelper comparator constant for the specified leaf node. |
static java.lang.String |
getLogicalComparator(Expression expr)
Get the TypesHelper logical comparator constant for the specified branch node. |
static Expression |
toExpression(com.beasys.commerce.foundation.expression.Expression orig)
Convert from old expression to new expression. |
static com.beasys.commerce.foundation.expression.Expression |
toExpression(Expression orig)
Convert from new expression to old expression. |
static Search |
toSearch(com.beasys.commerce.foundation.expression.Search orig)
Convert an old Search to a new Search (including the contained expression). |
static com.beasys.commerce.foundation.expression.Search |
toSearch(Search orig)
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 toExpression(com.beasys.commerce.foundation.expression.Expression orig) throws java.lang.IllegalArgumentException
public static Expression createLeafExpression(java.lang.String propertySet, java.lang.String propertyName, java.lang.String comparator, java.lang.Object literal) throws java.lang.IllegalArgumentException
propertySet
- the propertySet name (can be null).propertyName
- the propertyName.comparator
- the TypesHelper comparator constant.literal
- the rhs literal value.public static Expression createBranchExpression(java.lang.String logicalComparator) throws java.lang.IllegalArgumentException
logicalComparator
- the TypesHelper comparator constant (AND or
OR).public static com.beasys.commerce.foundation.expression.Expression toExpression(Expression orig) throws java.lang.IllegalArgumentException
public static java.lang.String getComparator(Expression expr) throws java.lang.IllegalArgumentException
public static java.lang.String getLogicalComparator(Expression expr)
public static Search toSearch(com.beasys.commerce.foundation.expression.Search orig) throws java.lang.IllegalArgumentException
public static com.beasys.commerce.foundation.expression.Search toSearch(Search orig) throws java.lang.IllegalArgumentException
|
© 2001 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |