|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.netweaver.bc.uwl.config.CompoundExpression
Contains one or more Expression and CompondExpression objects. These contained objects are either "OR" ed or "AND" ed. CompoundExpression is used for specifying Filters.
Following examples illustrate how to build complex expressions.
In these example A, B, C are atomic units i.e. Expressions. For example A Could be priority = high or days > 3 etc.
1. A & B & C
<CompoundExpression operator=AND>
<Expression A> <Expression B> <Expression C>
</CompoundExpression>
2. (A & B) || C || D
<CompoundExpression operator=OR>
<CompoundExpression operator=AND>
<Expression A> <Expression B>
</CompoundExpression>
<Expression C>
<Expression D>
</CompoundExpression>
Expression,
Serialized Form| Constructor Summary | |
CompoundExpression(ArrayList conds,
ArrayList compoundExprs,
Descriptions displNames,
boolean or)
|
|
CompoundExpression(ArrayList conds,
ArrayList compoundExprs,
Descriptions displNames,
String bundle,
boolean or)
|
|
| Method Summary | |
Object |
clone()
|
boolean |
equals(CompoundExpression obj)
|
CompoundExpression[] |
getCompoundExpressions()
|
Descriptions |
getDisplayNames()
Returns the descriptions. |
Expression[] |
getExpressions()
|
String |
getReferenceBundle()
Could be null |
Object |
internalGetFilterSql()
Used for internal purposes to cache the SQL for filtering. |
void |
internalSetFilterSql(Object sql)
Used for internal purposes to cache the SQL for filtering. |
boolean |
isDefaultFilter()
This is used to determine which filter should be applied to a view the first time it displayed. |
boolean |
isOr()
|
void |
setDefaultFilter(boolean b)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CompoundExpression(ArrayList conds,
ArrayList compoundExprs,
Descriptions displNames,
boolean or)
conds - null is okey.Modifying the conds after creating the CompoundExpression object has no effect.compoundExprs - null is okey.Modifying the compoundExprs after creating the CompoundExpression object has no effect.displNames - could be nullor - means ORed or ANDed
public CompoundExpression(ArrayList conds,
ArrayList compoundExprs,
Descriptions displNames,
String bundle,
boolean or)
conds - null is okey. Modifying the conds after creating the CompoundExpression object has no effect.compoundExprs - null is okey. Modifying the compoundExprs after creating the CompoundExpression object has no effect.displNames - could be nullbundle - could be nullor - means ORed or ANDed| Method Detail |
public String getReferenceBundle()
public boolean isOr()
public Expression[] getExpressions()
public CompoundExpression[] getCompoundExpressions()
public Descriptions getDisplayNames()
public Object internalGetFilterSql()
public void internalSetFilterSql(Object sql)
sql - coule be null
public Object clone()
throws CloneNotSupportedException
CloneNotSupportedExceptionpublic boolean equals(CompoundExpression obj)
public String toString()
public boolean isDefaultFilter()
public void setDefaultFilter(boolean b)
b -
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||