public class SPARQLBooleanXMLWriter extends QueryResultWriterBase implements BooleanQueryResultWriter
BooleanQueryResultWriter that writes boolean query results in the
SPARQL Query Results XML
Format.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
documentOpen |
protected boolean |
headerComplete |
protected boolean |
headerOpen |
protected boolean |
tupleVariablesFound |
protected XMLWriter |
xmlWriter
XMLWriter to write XML to.
|
| Constructor and Description |
|---|
SPARQLBooleanXMLWriter(java.io.OutputStream out) |
SPARQLBooleanXMLWriter(XMLWriter xmlWriter) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
endDocument() |
void |
endHeader() |
void |
endQueryResult() |
BooleanQueryResultFormat |
getBooleanQueryResultFormat() |
BooleanQueryResultFormat |
getQueryResultFormat() |
java.util.Collection<RioSetting<?>> |
getSupportedSettings() |
void |
handleBoolean(boolean value) |
void |
handleLinks(java.util.List<java.lang.String> linkUrls) |
void |
handleNamespace(java.lang.String prefix,
java.lang.String uri) |
void |
handleSolution(BindingSet bindingSet) |
void |
handleStylesheet(java.lang.String url) |
void |
setPrettyPrint(boolean prettyPrint)
Deprecated.
Use
QueryResultWriterBase.getWriterConfig()
.set(BasicWriterSettings.PRETTY_PRINT, prettyPrint) instead. |
void |
startDocument() |
void |
startHeader() |
void |
startQueryResult(java.util.List<java.lang.String> bindingNames) |
void |
write(boolean value) |
getWriterConfig, setWriterConfig, xsdStringToPlainLiteralclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitendHeader, getSupportedSettings, getWriterConfig, handleNamespace, handleStylesheet, setWriterConfig, startDocument, startHeaderendQueryResult, handleBoolean, handleLinks, handleSolution, startQueryResultprotected XMLWriter xmlWriter
protected boolean documentOpen
protected boolean headerOpen
protected boolean headerComplete
protected boolean tupleVariablesFound
public SPARQLBooleanXMLWriter(java.io.OutputStream out)
public SPARQLBooleanXMLWriter(XMLWriter xmlWriter)
public final BooleanQueryResultFormat getBooleanQueryResultFormat()
getBooleanQueryResultFormat in interface BooleanQueryResultWriterpublic final BooleanQueryResultFormat getQueryResultFormat()
getQueryResultFormat in interface QueryResultWriterpublic void write(boolean value)
throws java.io.IOException
write in interface BooleanQueryResultWriterjava.io.IOException@Deprecated public void setPrettyPrint(boolean prettyPrint)
QueryResultWriterBase.getWriterConfig()
.set(BasicWriterSettings.PRETTY_PRINT, prettyPrint) instead.startDocument() is called).protected void endDocument()
throws java.io.IOException
java.io.IOExceptionpublic void handleBoolean(boolean value)
throws QueryResultHandlerException
handleBoolean in interface QueryResultHandlerQueryResultHandlerExceptionpublic void startDocument()
throws QueryResultHandlerException
startDocument in interface QueryResultWriterQueryResultHandlerExceptionpublic void handleStylesheet(java.lang.String url)
throws QueryResultHandlerException
handleStylesheet in interface QueryResultWriterQueryResultHandlerExceptionpublic void startHeader()
throws QueryResultHandlerException
startHeader in interface QueryResultWriterQueryResultHandlerExceptionpublic void handleLinks(java.util.List<java.lang.String> linkUrls)
throws QueryResultHandlerException
handleLinks in interface QueryResultHandlerQueryResultHandlerExceptionpublic void endHeader()
throws QueryResultHandlerException
endHeader in interface QueryResultWriterQueryResultHandlerExceptionpublic void startQueryResult(java.util.List<java.lang.String> bindingNames)
throws TupleQueryResultHandlerException
startQueryResult in interface QueryResultHandlerTupleQueryResultHandlerExceptionpublic void endQueryResult()
throws TupleQueryResultHandlerException
endQueryResult in interface QueryResultHandlerTupleQueryResultHandlerExceptionpublic void handleSolution(BindingSet bindingSet) throws TupleQueryResultHandlerException
handleSolution in interface QueryResultHandlerTupleQueryResultHandlerExceptionpublic final java.util.Collection<RioSetting<?>> getSupportedSettings()
getSupportedSettings in interface QueryResultWritergetSupportedSettings in class QueryResultWriterBasepublic void handleNamespace(java.lang.String prefix,
java.lang.String uri)
throws QueryResultHandlerException
handleNamespace in interface QueryResultWriterQueryResultHandlerExceptionCopyright © 2001-2015 Aduna. All Rights Reserved.