|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.z3950.zing.cql.CQLNode
org.z3950.zing.cql.CQLPrefixNode
public class CQLPrefixNode
Represents a prefix node in a CQL parse-tree.
| Field Summary |
|---|
| Fields inherited from class org.z3950.zing.cql.CQLNode |
|---|
APPLICATION, BITSTRING, BOOLEAN, CONSTRUCTED, CONTEXT, ENUMERATED, EXTERNAL, GENERALSTRING, INTEGER, NULL, OBJECTDESCRIPTOR, OBJECTIDENTIFIER, OCTETSTRING, PRIMITIVE, PRIVATE, SEQUENCE, SET, UNIVERSAL, VISIBLESTRING |
| Constructor Summary | |
|---|---|
CQLPrefixNode(String name,
String identifier,
CQLNode subtree)
Creates a new CQLPrefixNode inducing a mapping from the specified index-set name to the specified identifier across the specified subtree. |
|
| Method Summary | |
|---|---|
CQLPrefix |
getPrefix()
The prefix definition that governs the subtree. |
CQLNode |
getSubtree()
The root of a parse-tree representing the part of the query that is governed by this prefix definition. |
String |
toCQL()
Decompiles a parse-tree into a CQL query. |
String |
toPQF(Properties config)
Renders a parse-tree into a Yaz-style PQF string. |
byte[] |
toType1BER(Properties config)
Renders a parser-tree into a BER-endoded packet representing an equivalent Z39.50 Type-1 query. |
| Methods inherited from class org.z3950.zing.cql.CQLNode |
|---|
getResultSetName, lenLen, makeOID, makeQuery, numLen, putNum, putTag, toString, toXCQL |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CQLPrefixNode(String name,
String identifier,
CQLNode subtree)
| Method Detail |
|---|
public CQLPrefix getPrefix()
public CQLNode getSubtree()
public String toCQL()
CQLNode
toCQL in class CQLNode
public String toPQF(Properties config)
throws PQFTranslationException
CQLNode
toPQF in class CQLNodeconfig - A Properties object containing configuration
information that specifies the mapping from CQL indexes,
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.
PQFTranslationException
public byte[] toType1BER(Properties config)
throws PQFTranslationException
CQLNode
toType1BER in class CQLNodeconfig - A Properties object containing configuration
information that specifies the mapping from CQL indexes,
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.
PQFTranslationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||