|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jafer.query.JaferQuery
public class JaferQuery
Field Summary | |
---|---|
protected org.w3c.dom.Node |
queryRoot
Stores a reference to the root of the jafer query |
Constructor Summary | |
---|---|
protected |
JaferQuery()
Protected empty constructor to allow test utilities to create query without performing normalisation |
|
JaferQuery(org.w3c.dom.Node query)
Constructor that forbids a NOT clause at the start of the query to avoid conversion errors when translating to a query language that does not support UNARY not clauses. |
|
JaferQuery(org.w3c.dom.Node query,
boolean allowTopLevelNot)
Constructor that optionally allows a NOT clause at the start of the query |
Method Summary | |
---|---|
org.w3c.dom.Node |
getQuery()
Get the constructed query object |
java.lang.String |
getXML()
This method returns a string representation of the XML for the current query |
private void |
initialise(org.w3c.dom.Node query,
boolean allowTopLevelNot)
Initialises the JaferQuery by normalising the query and optionally allowing a NOT clause at the start of the query. |
CQLQuery |
toCQLQuery()
This method converts the current Query representation into a CQLQuery object |
JaferQuery |
toJaferQuery()
This method converts the current Query representation into a JaferQuery object |
RPNQuery |
toRPNQuery()
This method converts the current Query representation into a RPNQuery object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.w3c.dom.Node queryRoot
Constructor Detail |
---|
protected JaferQuery()
public JaferQuery(org.w3c.dom.Node query) throws QueryException
query
- A root node element in the format of a JaferQuery
QueryException
public JaferQuery(org.w3c.dom.Node query, boolean allowTopLevelNot) throws QueryException
query
- A root node element in the format of a JaferQueryallowTopLevelNot
- If true the JaferQuery is allowed to be created
when the normalisation process completes with a NOT at the top
level.
QueryException
Method Detail |
---|
private void initialise(org.w3c.dom.Node query, boolean allowTopLevelNot) throws QueryException
query
- A root node element in the format of a JaferQueryallowTopLevelNot
- If true the JaferQuery is allowed to be created
when the normalisation process completes with a NOT at the top
level.
QueryException
public org.w3c.dom.Node getQuery()
public CQLQuery toCQLQuery() throws QueryException
toCQLQuery
in interface QueryConverter
QueryException
public JaferQuery toJaferQuery()
toJaferQuery
in interface QueryConverter
public RPNQuery toRPNQuery() throws QueryException
toRPNQuery
in interface QueryConverter
QueryException
public java.lang.String getXML() throws QueryException
getXML
in interface QueryConverter
JaferException
QueryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |