|
||||||||
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. |
protected static java.lang.String |
renderPrefixes(int level,
java.util.Vector prefixes)
|
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. |
java.lang.String |
toXCQL(int level)
Translates a parse-tree into an XCQL document. |
abstract java.lang.String |
toXCQL(int level,
java.util.Vector prefixes)
|
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 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 toXCQL(int level, java.util.Vector prefixes)
protected static java.lang.String renderPrefixes(int level, java.util.Vector prefixes)
public abstract java.lang.String toCQL()
public abstract java.lang.String toPQF(java.util.Properties config) throws PQFTranslationException
config
- A Properties object containing configuration
information that specifies the mapping from CQL qualifiers,
relations, etc. to Type-1 attributes. The mapping
specification is described in the cql-java distribution's
sample PQF-mapping configuration file,
etc/pqf.properties, which see.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 |