public abstract class QueryResultParserBase extends Object implements QueryResultParser
QueryResultParser
s offering common functionality for
query result parsers.Modifier and Type | Field and Description |
---|---|
protected QueryResultHandler |
handler
The
QueryResultHandler that will handle the parsed query results. |
protected ValueFactory |
valueFactory
The
ValueFactory to use for creating RDF model objects. |
Constructor and Description |
---|
QueryResultParserBase()
Creates a new parser base that, by default, will use the global instance
of
ValueFactoryImpl to create Value objects. |
QueryResultParserBase(ValueFactory valueFactory)
Creates a new parser base that will use the supplied ValueFactory to
create Value objects.
|
Modifier and Type | Method and Description |
---|---|
ParserConfig |
getParserConfig()
Retrieves the current parser configuration as a single object.
|
Collection<RioSetting<?>> |
getSupportedSettings() |
void |
setParserConfig(ParserConfig config)
Sets all supplied parser configuration options.
|
void |
setQueryResultHandler(QueryResultHandler handler)
Sets the
QueryResultHandler to be used when parsing query results
using QueryResultParser.parseQueryResult(InputStream) . |
void |
setValueFactory(ValueFactory valueFactory)
Sets the ValueFactory that the parser will use to create Value objects for
the parsed query result.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getQueryResultFormat, parseQueryResult
protected ValueFactory valueFactory
ValueFactory
to use for creating RDF model objects.protected QueryResultHandler handler
QueryResultHandler
that will handle the parsed query results.public QueryResultParserBase()
ValueFactoryImpl
to create Value objects.public QueryResultParserBase(ValueFactory valueFactory)
public void setValueFactory(ValueFactory valueFactory)
QueryResultParser
setValueFactory
in interface QueryResultParser
valueFactory
- The value factory that the parser should use.public void setQueryResultHandler(QueryResultHandler handler)
QueryResultParser
QueryResultHandler
to be used when parsing query results
using QueryResultParser.parseQueryResult(InputStream)
.setQueryResultHandler
in interface QueryResultParser
handler
- The QueryResultHandler
to use for handling results.public void setParserConfig(ParserConfig config)
QueryResultParser
setParserConfig
in interface QueryResultParser
config
- a parser configuration object.public ParserConfig getParserConfig()
QueryResultParser
getParserConfig
in interface QueryResultParser
public Collection<RioSetting<?>> getSupportedSettings()
getSupportedSettings
in interface QueryResultParser
RioSetting
s that are supported by this
QueryResultParser.Copyright © 2001-2016 Aduna. All Rights Reserved.