Package com.stardog.stark.query.io.xml
Class SPARQLXMLBooleanResultWriter
- java.lang.Object
-
- com.stardog.stark.query.io.xml.AbstractSPARQLXMLWriter<java.lang.Boolean>
-
- com.stardog.stark.query.io.xml.SPARQLXMLBooleanResultWriter
-
- All Implemented Interfaces:
BooleanQueryResultHandler
,BooleanQueryResultWriter
,QueryResultWriter<java.lang.Boolean>
,QueryResultHandler<java.lang.Boolean>
public final class SPARQLXMLBooleanResultWriter extends AbstractSPARQLXMLWriter<java.lang.Boolean> implements BooleanQueryResultWriter
Writer
forBooleanQueryResult
which will serialize results in SPARQL/XML format.- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SPARQLXMLBooleanResultWriter.SPARQLXMLSelectResultWriterFactory
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BINDING_NAME_ATT
static java.lang.String
BINDING_TAG
static java.lang.String
BNODE_TAG
static java.lang.String
BOOLEAN_FALSE
static java.lang.String
BOOLEAN_TAG
static java.lang.String
BOOLEAN_TRUE
static java.lang.String
CONTEXT_TAG
static java.lang.String
HEAD_TAG
static java.lang.String
HREF_ATT
static java.lang.String
LINK_TAG
static java.lang.String
LITERAL_DATATYPE_ATT
static java.lang.String
LITERAL_LANG_ATT
static java.lang.String
LITERAL_TAG
static java.lang.String
NAMESPACE
static java.lang.String
OBJECT_TAG
static java.lang.String
PREDICATE_TAG
static java.lang.String
QNAME
static java.lang.String
RESULT_SET_TAG
static java.lang.String
RESULT_TAG
static java.lang.String
ROOT_TAG
static java.lang.String
STATEMENT_TAG
static java.lang.String
SUBJECT_TAG
static java.lang.String
UNBOUND_TAG
static java.lang.String
URI_TAG
static java.lang.String
VAR_NAME_ATT
static java.lang.String
VAR_TAG
-
Fields inherited from class com.stardog.stark.query.io.xml.AbstractSPARQLXMLWriter
documentOpen, headerComplete, headerOpen, mNamespaces, mOptions, mWriter, tupleVariablesFound
-
-
Constructor Summary
Constructors Constructor Description SPARQLXMLBooleanResultWriter(java.io.OutputStream theOutputStream, Options theOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryResultFormat
format()
Theformat
this writer will serialize output invoid
handle(java.lang.Boolean theResult)
Handle a result to a query-
Methods inherited from class com.stardog.stark.query.io.xml.AbstractSPARQLXMLWriter
end, links, namespace, start
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.stardog.stark.query.io.QueryResultWriter
end, links, namespace, start
-
-
-
-
Field Detail
-
NAMESPACE
public static final java.lang.String NAMESPACE
- See Also:
- Constant Field Values
-
ROOT_TAG
public static final java.lang.String ROOT_TAG
- See Also:
- Constant Field Values
-
HEAD_TAG
public static final java.lang.String HEAD_TAG
- See Also:
- Constant Field Values
-
LINK_TAG
public static final java.lang.String LINK_TAG
- See Also:
- Constant Field Values
-
VAR_TAG
public static final java.lang.String VAR_TAG
- See Also:
- Constant Field Values
-
VAR_NAME_ATT
public static final java.lang.String VAR_NAME_ATT
- See Also:
- Constant Field Values
-
HREF_ATT
public static final java.lang.String HREF_ATT
- See Also:
- Constant Field Values
-
BOOLEAN_TAG
public static final java.lang.String BOOLEAN_TAG
- See Also:
- Constant Field Values
-
BOOLEAN_TRUE
public static final java.lang.String BOOLEAN_TRUE
- See Also:
- Constant Field Values
-
BOOLEAN_FALSE
public static final java.lang.String BOOLEAN_FALSE
- See Also:
- Constant Field Values
-
RESULT_SET_TAG
public static final java.lang.String RESULT_SET_TAG
- See Also:
- Constant Field Values
-
RESULT_TAG
public static final java.lang.String RESULT_TAG
- See Also:
- Constant Field Values
-
BINDING_TAG
public static final java.lang.String BINDING_TAG
- See Also:
- Constant Field Values
-
BINDING_NAME_ATT
public static final java.lang.String BINDING_NAME_ATT
- See Also:
- Constant Field Values
-
URI_TAG
public static final java.lang.String URI_TAG
- See Also:
- Constant Field Values
-
BNODE_TAG
public static final java.lang.String BNODE_TAG
- See Also:
- Constant Field Values
-
LITERAL_TAG
public static final java.lang.String LITERAL_TAG
- See Also:
- Constant Field Values
-
LITERAL_LANG_ATT
public static final java.lang.String LITERAL_LANG_ATT
- See Also:
- Constant Field Values
-
LITERAL_DATATYPE_ATT
public static final java.lang.String LITERAL_DATATYPE_ATT
- See Also:
- Constant Field Values
-
UNBOUND_TAG
public static final java.lang.String UNBOUND_TAG
- See Also:
- Constant Field Values
-
QNAME
public static final java.lang.String QNAME
- See Also:
- Constant Field Values
-
STATEMENT_TAG
public static final java.lang.String STATEMENT_TAG
- See Also:
- Constant Field Values
-
SUBJECT_TAG
public static final java.lang.String SUBJECT_TAG
- See Also:
- Constant Field Values
-
PREDICATE_TAG
public static final java.lang.String PREDICATE_TAG
- See Also:
- Constant Field Values
-
OBJECT_TAG
public static final java.lang.String OBJECT_TAG
- See Also:
- Constant Field Values
-
CONTEXT_TAG
public static final java.lang.String CONTEXT_TAG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SPARQLXMLBooleanResultWriter
public SPARQLXMLBooleanResultWriter(java.io.OutputStream theOutputStream, Options theOptions)
-
-
Method Detail
-
handle
public void handle(@Nonnull java.lang.Boolean theResult) throws ResultWritingFailed
Handle a result to a query- Specified by:
handle
in interfaceBooleanQueryResultHandler
- Specified by:
handle
in interfaceQueryResultHandler<java.lang.Boolean>
- Specified by:
handle
in interfaceQueryResultWriter<java.lang.Boolean>
- Parameters:
theResult
- the result- Throws:
ResultWritingFailed
-
format
@Nonnull public QueryResultFormat format()
Theformat
this writer will serialize output in- Specified by:
format
in interfaceQueryResultWriter<java.lang.Boolean>
- Returns:
- the format
-
-