Class CQLQueryParser

  • All Implemented Interfaces:
    SRUQueryParser<org.z3950.zing.cql.CQLNode>

    public final class CQLQueryParser
    extends Object
    implements SRUQueryParser<org.z3950.zing.cql.CQLNode>
    Default query parser to parse CQL.
    • Constructor Detail

      • CQLQueryParser

        public CQLQueryParser()
    • Method Detail

      • getQueryType

        public String getQueryType()
        Description copied from interface: SRUQueryParser
        Get the short name for supported query, e.g. "cql".
        Specified by:
        getQueryType in interface SRUQueryParser<org.z3950.zing.cql.CQLNode>
        Returns:
        the query short name
      • supportsVersion

        public boolean supportsVersion​(SRUVersion version)
        Description copied from interface: SRUQueryParser
        Check if query is supported by a specific version of SRU/CQL
        Specified by:
        supportsVersion in interface SRUQueryParser<org.z3950.zing.cql.CQLNode>
        Parameters:
        version - the version
        Returns:
        true if version is supported, false otherwise
      • getQueryTypeDefintion

        public String getQueryTypeDefintion()
        Description copied from interface: SRUQueryParser
        The URI for the for the query type’s definition.
        Specified by:
        getQueryTypeDefintion in interface SRUQueryParser<org.z3950.zing.cql.CQLNode>
        Returns:
        the URI for the for the query type’s definition.