01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 2007.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.query.resultio.sparqlxml;
07:
08: import org.openrdf.query.resultio.BooleanQueryResultFormat;
09: import org.openrdf.query.resultio.BooleanQueryResultParser;
10: import org.openrdf.query.resultio.BooleanQueryResultParserFactory;
11: import org.openrdf.query.resultio.TupleQueryResultFormat;
12: import org.openrdf.query.resultio.TupleQueryResultParserFactory;
13:
14: /**
15: * A {@link TupleQueryResultParserFactory} for parsers of SPARQL/XML boolean
16: * query results.
17: *
18: * @author Arjohn Kampman
19: */
20: public class SPARQLBooleanXMLParserFactory implements
21: BooleanQueryResultParserFactory {
22:
23: /**
24: * Returns {@link TupleQueryResultFormat#SPARQL}.
25: */
26: public BooleanQueryResultFormat getBooleanQueryResultFormat() {
27: return BooleanQueryResultFormat.SPARQL;
28: }
29:
30: /**
31: * Returns a new instance of SPARQLBooleanXMLParser.
32: */
33: public BooleanQueryResultParser getParser() {
34: return new SPARQLBooleanXMLParser();
35: }
36: }
|