public abstract class AbstractQueryResultParser extends Object implements QueryResultParser
QueryResultParsers 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 |
|---|
AbstractQueryResultParser()
Creates a new parser base that, by default, will use the global instance of
SimpleValueFactory
to create Value objects. |
AbstractQueryResultParser(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, waitgetQueryResultFormat, parseQueryResultprotected ValueFactory valueFactory
ValueFactory to use for creating RDF model objects.protected QueryResultHandler handler
QueryResultHandler that will handle the parsed query results.public AbstractQueryResultParser()
SimpleValueFactory
to create Value objects.public AbstractQueryResultParser(ValueFactory valueFactory)
public void setValueFactory(ValueFactory valueFactory)
QueryResultParsersetValueFactory in interface QueryResultParservalueFactory - The value factory that the parser should use.public void setQueryResultHandler(QueryResultHandler handler)
QueryResultParserQueryResultHandler to be used when parsing query results using
QueryResultParser.parseQueryResult(InputStream).setQueryResultHandler in interface QueryResultParserhandler - The QueryResultHandler to use for handling results.public void setParserConfig(ParserConfig config)
QueryResultParsersetParserConfig in interface QueryResultParserconfig - a parser configuration object.public ParserConfig getParserConfig()
QueryResultParsergetParserConfig in interface QueryResultParserpublic Collection<RioSetting<?>> getSupportedSettings()
getSupportedSettings in interface QueryResultParserRioSettings that are supported by this QueryResultParser.Copyright © 2015-2016 Eclipse Foundation. All Rights Reserved.