Class StandardSingleQueryClauseFunctionBundle

  • All Implemented Interfaces:
    QueryClauseFunctionBundle

    public class StandardSingleQueryClauseFunctionBundle
    extends java.lang.Object
    implements QueryClauseFunctionBundle
    Query clause function bundle for a single query language.
    Author:
    Lucian Chirita (lucianc@users.sourceforge.net)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addFunction​(java.lang.String clauseId, JRClauseFunction function)
      Registers a query clause function.
      JRClauseFunction getFunction​(java.lang.String queryLanguage, java.lang.String clauseId)
      Returns a clause function that applies to the specified query language and clause Id.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StandardSingleQueryClauseFunctionBundle

        public StandardSingleQueryClauseFunctionBundle​(java.lang.String queryLanguage)
        Creates a bundle for a query language
        Parameters:
        queryLanguage - the query language
    • Method Detail

      • addFunction

        public void addFunction​(java.lang.String clauseId,
                                JRClauseFunction function)
        Registers a query clause function.
        Parameters:
        clauseId - the clause Id
        function - the function implementation
      • getFunction

        public JRClauseFunction getFunction​(java.lang.String queryLanguage,
                                            java.lang.String clauseId)
        Description copied from interface: QueryClauseFunctionBundle
        Returns a clause function that applies to the specified query language and clause Id.
        Specified by:
        getFunction in interface QueryClauseFunctionBundle
        Parameters:
        queryLanguage - the query language
        clauseId - the clause Id
        Returns:
        a corresponding query function or null if the bundle doesn't know of such clause