|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sdlip.helpers.QueryUtil
This class provides functions to manipulate boolean queries in DAV/DASL format.
Constructor Summary | |
QueryUtil()
|
Method Summary | |
static Element |
canonicalDNF(Element q)
Translates boolean query into disjunctive normal form whereas every path from root to leaf or negated leaf is or length 2. |
static Element |
DNF(Element q)
Translates boolean query into disjunctive normal form |
static boolean |
equals(org.w3c.dom.Node a,
org.w3c.dom.Node b)
Checks whether two elements are syntactically equivalent. |
static Element |
inside(Element q)
returns the single child of an element |
static boolean |
isAND(Element q)
tests whether elements is an AND operator |
static boolean |
isBoolean(Element q)
tests whether elements is a boolean operator |
static boolean |
isFalse(Element q)
tests whether query evaluates to false |
static boolean |
isNOT(Element q)
tests whether elements is an NOT operator |
static boolean |
isOR(Element q)
tests whether elements is an OR operator |
static boolean |
isTrue(Element q)
tests whether query evaluates to true |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public QueryUtil()
Method Detail |
public static boolean isAND(Element q)
public static boolean isOR(Element q)
public static boolean isNOT(Element q)
public static boolean isBoolean(Element q)
public static boolean isTrue(Element q)
public static boolean isFalse(Element q)
public static Element DNF(Element q)
public static Element canonicalDNF(Element q)
public static boolean equals(org.w3c.dom.Node a, org.w3c.dom.Node b)
public static Element inside(Element q)
public static void main(java.lang.String[] args) throws java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |