public final class XmlDestination extends AbstractDestination
| Constructor and Description |
|---|
XmlDestination(Writer writer,
Map<String,String> propOrder,
String initialPropId,
String[] propIds)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
QueryResultsHandler |
getQueryResultsHandler(Query query,
DataSource dataSource,
KnowledgeSource knowledgeSource)
Performs any initialization required for the query results handler's
configuration.
|
String[] |
getSupportedPropositionIds(DataSource dataSource,
KnowledgeSource knowledgeSource)
Returns the proposition ids specified in the constructor.
|
getDisplayName, getId, getStatistics, isGetStatisticsSupportedpublic XmlDestination(Writer writer, Map<String,String> propOrder, String initialPropId, String[] propIds)
writer - The Writer object that will be used to write the
output.propOrder - A Map object that will be used to guide the
navigation between some propositions. If this results handler visits a
proposition, the ID of the proposition equals a key in the Map and the
value associated with the key is a name in a Reference associated
with the proposition, then the Reference is used to navigate from the
proposition. This has the effect of imposing a partial ordering on the
nesting of XML elements in the output.initialPropId - The ID of the proposition that will be the root of
the output.propIds - The IDs of propositions that are to be included in the
output. If a proposition's ID is not included in this array, it will not
be included in the output.public QueryResultsHandler getQueryResultsHandler(Query query, DataSource dataSource, KnowledgeSource knowledgeSource) throws QueryResultsHandlerInitException
Destination#collectStatistics() will work. This method is called by
Protempa before
#handleKnowledgeSource(org.protempa.KnowledgeSource) .QueryResultsHandlerInitExceptionpublic String[] getSupportedPropositionIds(DataSource dataSource, KnowledgeSource knowledgeSource)
getSupportedPropositionIds in interface DestinationgetSupportedPropositionIds in class AbstractDestinationStrings. Guaranteed not
null.Copyright © 2012–2016 Emory University. All rights reserved.