|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.patterns.listdata.data.SimpleRule
public class SimpleRule
This class represents set of data conditions which are connected with logical operation and can be used to filter or match data object. Since only single operator such as AND or OR is used to connect all data condition it is considered to be a simple rule (as oposed to complex rule where these operations could be mixed).
| Field Summary | |
|---|---|
static SimpleRule |
ALL_DATA
This rule matches all data |
static int |
LOGICAL_AND
AND operation code |
static int |
LOGICAL_OR
OR operation code |
protected java.util.List |
m_conditions
List of DataCondition objects connected with the logical operation. |
protected int |
m_iLogicalOperation
Logical operation to connect data condition. |
| Constructor Summary | |
|---|---|
SimpleRule()
Default constructor. |
|
SimpleRule(int iLogicalOperation,
java.util.List conditions)
Constructor with all parameters |
|
| Method Summary | |
|---|---|
java.util.List |
getConditions()
|
int |
getInterConditionOperation()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int LOGICAL_AND
public static final int LOGICAL_OR
public static final SimpleRule ALL_DATA
protected int m_iLogicalOperation
protected java.util.List m_conditions
| Constructor Detail |
|---|
public SimpleRule()
public SimpleRule(int iLogicalOperation,
java.util.List conditions)
iLogicalOperation - - logical operation to connect data condition.
Use one of LOGICAL_XXX constants.conditions - - list of DataConditions| Method Detail |
|---|
public java.util.List getConditions()
public int getInterConditionOperation()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||