Interface QueryResultParser

    • Method Detail

      • getQueryResultFormat

        QueryResultFormat getQueryResultFormat()
        Gets the query result format that this parser can parse.
        Returns:
        The QueryResultFormat supported by this parser.
      • setValueFactory

        QueryResultParser setValueFactory​(ValueFactory valueFactory)
        Sets the ValueFactory that the parser will use to create Value objects for the parsed query result.
        Parameters:
        valueFactory - The value factory that the parser should use.
      • setParseErrorListener

        QueryResultParser setParseErrorListener​(ParseErrorListener el)
        Sets the ParseErrorListener that will be notified of any errors that this parser finds during parsing.
        Parameters:
        el - The ParseErrorListener that will be notified of errors or warnings.
        Returns:
        Either a copy of this parser, if it is immutable, or this object, to allow chaining of method calls.
      • setParseLocationListener

        QueryResultParser setParseLocationListener​(ParseLocationListener ll)
        Sets the ParseLocationListener that will be notified of the parser's progress during the parse process.
        Parameters:
        ll - The ParseLocationListener that will be notified of the parser's progress.
        Returns:
        Either a copy of this parser, if it is immutable, or this object, to allow chaining of method calls.
      • setParserConfig

        QueryResultParser setParserConfig​(ParserConfig config)
        Sets all supplied parser configuration options.
        Parameters:
        config - a parser configuration object.
      • getParserConfig

        ParserConfig getParserConfig()
        Retrieves the current parser configuration as a single object.
        Returns:
        a parser configuration object representing the current configuration of the parser.
      • getSupportedSettings

        java.util.Collection<RioSetting<?>> getSupportedSettings()
        Returns:
        A collection of RioSettings that are supported by this QueryResultParser.
      • set

        <T> QueryResultParser set​(RioSetting<T> setting,
                                  T value)
        Set a setting on the parser, and return this parser object to allow chaining.
        Parameters:
        setting - The setting to change.
        value - The value to change.
        Returns:
        Either a copy of this parser, if it is immutable, or this object, to allow chaining of method calls.