|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.z3950.zing.cql.CQLNode
Represents a node in a CQL parse-tree.
Method Summary | |
protected static java.lang.String |
indent(int level)
Returns a String of spaces for indenting to the specified level. |
abstract java.lang.String |
toCQL()
Decompiles a parse-tree into a CQL query. |
abstract java.lang.String |
toPQF(java.util.Properties config)
Renders a parse-tree into a Yaz-style PQF string. |
abstract java.lang.String |
toXCQL(int level)
Translates a parse-tree into an XCQL document. |
protected static java.lang.String |
xq(java.lang.String str)
Returns the argument String quoted for XML. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public abstract java.lang.String toXCQL(int level)
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 abstract java.lang.String toCQL()
public abstract java.lang.String toPQF(java.util.Properties config) throws PQFTranslationException
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'.
protected static java.lang.String indent(int level)
protected static java.lang.String xq(java.lang.String str)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |