|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.z3950.zing.cql.CQLNode org.z3950.zing.cql.CQLTermNode
public class CQLTermNode
Represents a terminal node in a CQL parse-tree. A term node consists of the term String itself, together with, optionally, an index string and a relation. Neither or both of these must be provided - you can't have an index without a relation or vice versa.
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 | |
---|---|
CQLTermNode(java.lang.String index,
CQLRelation relation,
java.lang.String term)
Creates a new term node with the specified index, relation and term. |
Method Summary | |
---|---|
java.lang.String |
getIndex()
|
CQLRelation |
getRelation()
|
java.lang.String |
getResultSetName()
Returns the name of the result-set to which this query is a reference, if and only if the entire query consists only of a result-set reference. |
java.lang.String |
getTerm()
|
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. |
byte[] |
toType1BER(java.util.Properties config)
Renders a parser-tree into a BER-endoded packet representing an equivalent Z39.50 Type-1 query. |
java.lang.String |
toXCQL(int level,
java.util.Vector<CQLPrefix> prefixes,
java.util.Vector<ModifierSet> sortkeys)
|
Methods inherited from class org.z3950.zing.cql.CQLNode |
---|
indent, lenLen, makeOID, makeQuery, numLen, putLen, putNum, putTag, renderPrefixes, renderSortKeys, toXCQL, toXCQL, xq |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CQLTermNode(java.lang.String index, CQLRelation relation, java.lang.String term)
Method Detail |
---|
public java.lang.String getIndex()
public CQLRelation getRelation()
public java.lang.String getTerm()
public java.lang.String getResultSetName()
CQLNode
getResultSetName
in class CQLNode
public java.lang.String toXCQL(int level, java.util.Vector<CQLPrefix> prefixes, java.util.Vector<ModifierSet> sortkeys)
toXCQL
in class CQLNode
public java.lang.String toCQL()
CQLNode
toCQL
in class CQLNode
public java.lang.String toPQF(java.util.Properties config) throws PQFTranslationException
CQLNode
toPQF
in class CQLNode
config
- 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(java.util.Properties config) throws PQFTranslationException
CQLNode
toType1BER
in class CQLNode
config
- 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 |