|
eRqlEngine API documentation - http://www.wleklinski.de/rdf/ | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteworks.RQL.model.Condition
eworks.RQL.model.CompositionCondition
eworks.RQL.model.ConjunctionCondition
A condition that represents a conjunction of several other conditions,
so called "subconditions". (A conjunction is expressed using the
AND
-operator according to the RQL syntax.)
Field Summary |
Fields inherited from class eworks.RQL.model.CompositionCondition |
subConditions |
Constructor Summary | |
ConjunctionCondition()
Creates an empty conjunction condition (with no subconditions). |
|
ConjunctionCondition(Condition subCondition)
Creates a conjunction condition using one certain subcondition. |
|
ConjunctionCondition(Condition[] subConditions)
Creates a conjunction condition using certain subconditions. |
Method Summary | |
boolean |
matches(SymbolTable symbols)
Checks if this conjunction condition is satisfied using a certain symbol table. |
Methods inherited from class eworks.RQL.model.CompositionCondition |
add, compact, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ConjunctionCondition()
public ConjunctionCondition(Condition[] subConditions)
subConditions
- This condition's subconditions.public ConjunctionCondition(Condition subCondition)
subCondition
- This condition's only subcondition.Method Detail |
public boolean matches(SymbolTable symbols) throws VariableNotBoundException
Checks if this conjunction condition is satisfied using a certain symbol
table. Therefore it is checked for all subconditions if they are satisfied
(using the same symbol table). The result is true
if and only if
each subcondition matches, too.
This method uses so called "short circuit evaluation", that
means the false
is returned immediately after the first
subcondition is found that does not match, and all further
subconditions are not evaluated any more.
matches
in class Condition
symbols
- The symbol table to use.
true
if this conjunction condition is satisfied,
false
else.
VariableNotBoundException
- if one or several needed values of this
condition's values or it's subcondition's values are not bound by
the given symbol table.
|
eRqlEngine API documentation - http://www.wleklinski.de/rdf/ | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |