|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.z3950.zing.cql.CQLNode | +--org.z3950.zing.cql.CQLBooleanNode
Represents a boolean node in a CQL parse-tree.
Field Summary | |
CQLNode |
left
The root of a parse-tree representing the left-hand side. |
CQLNode |
right
The root of a parse-tree representing the right-hand side. |
Method Summary | |
java.lang.String |
toCQL()
Decompiles a parse-tree into a CQL query. |
java.lang.String |
toPQF(java.util.Properties config)
Renders a parse-tree into a Yaz-style PQF string. |
java.lang.String |
toXCQL(int level)
Translates a parse-tree into an XCQL document. |
Methods inherited from class org.z3950.zing.cql.CQLNode |
indent, xq |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public CQLNode left
public CQLNode right
Method Detail |
public java.lang.String toXCQL(int level)
CQLNode
toXCQL
in class CQLNode
org.z3950.zing.cql.CQLNode
level
- The number of levels to indent the top element of the XCQL
document. This will typically be 0 when invoked by an
application; it takes higher values when this method is
invoked recursively for nodes further down the tree.public java.lang.String toCQL()
CQLNode
toCQL
in class CQLNode
org.z3950.zing.cql.CQLNode
public java.lang.String toPQF(java.util.Properties config) throws PQFTranslationException
CQLNode
query ::= top-set query-struct. top-set ::= [ '@attrset' string ] query-struct ::= attr-spec | simple | complex | '@term' term-type attr-spec ::= '@attr' [ string ] string query-struct complex ::= operator query-struct query-struct. operator ::= '@and' | '@or' | '@not' | '@prox' proximity. simple ::= result-set | term. result-set ::= '@set' string. term ::= string. proximity ::= exclusion distance ordered relation which-code unit-code. exclusion ::= '1' | '0' | 'void'. distance ::= integer. ordered ::= '1' | '0'. relation ::= integer. which-code ::= 'known' | 'private' | integer. unit-code ::= integer. term-type ::= 'general' | 'numeric' | 'string' | 'oid' | 'datetime' | 'null'.
toPQF
in class CQLNode
org.z3950.zing.cql.CQLNode
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |