|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jafer.query.converter.Converter
org.jafer.query.converter.JaferQueryConverter
public class JaferQueryConverter
Field Summary | |
---|---|
private static QueryBuilder |
builder
Stores a reference to the query builder |
Constructor Summary | |
---|---|
JaferQueryConverter()
|
Method Summary | |
---|---|
static org.w3c.dom.Node |
normaliseJaferQuery(org.w3c.dom.Node jaferQueryNode)
normalises the jafer query node to apply demorgans laws and clear up any double ngatives in the query |
protected static org.w3c.dom.Node |
processAndNode(org.w3c.dom.Node node)
Apply demorgans laws to the AND node |
protected static org.w3c.dom.Node |
processNode(org.w3c.dom.Node node)
This method applies the demorgan laws to convert the query to a normalised fashion. |
protected static org.w3c.dom.Node |
processNotNode(org.w3c.dom.Node node)
Apply demorgans laws to the NOT node and remove any double negatives |
protected static org.w3c.dom.Node |
processOrNode(org.w3c.dom.Node node)
Apply demorgans laws to the OR node |
Methods inherited from class org.jafer.query.converter.Converter |
---|
findNotChild, getFirstChild, getNodeValue, getSecondChild, selectNode, selectNodeList |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static QueryBuilder builder
Constructor Detail |
---|
public JaferQueryConverter()
Method Detail |
---|
public static org.w3c.dom.Node normaliseJaferQuery(org.w3c.dom.Node jaferQueryNode) throws QueryException
jaferQueryNode
- The query to process
QueryException
protected static org.w3c.dom.Node processNode(org.w3c.dom.Node node) throws QueryException
node
- The node to convert
QueryException
protected static org.w3c.dom.Node processOrNode(org.w3c.dom.Node node) throws QueryException
node
- The node to process
QueryException
protected static org.w3c.dom.Node processAndNode(org.w3c.dom.Node node) throws QueryException
node
- The node to process
QueryException
protected static org.w3c.dom.Node processNotNode(org.w3c.dom.Node node) throws QueryException
node
- The node to process
QueryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |