Class SPARQLBooleanSAXParser
- java.lang.Object
-
- org.eclipse.rdf4j.common.xml.SimpleSAXAdapter
-
- org.eclipse.rdf4j.query.resultio.sparqlxml.SPARQLBooleanSAXParser
-
- All Implemented Interfaces:
SimpleSAXListener
class SPARQLBooleanSAXParser extends SimpleSAXAdapter
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Boolean
value
-
Constructor Summary
Constructors Constructor Description SPARQLBooleanSAXParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endDocument()
Notifies the listener that the parser has finished parsing.boolean
getValue()
void
startTag(java.lang.String tagName, java.util.Map<java.lang.String,java.lang.String> atts, java.lang.String text)
Reports a start tag to the listener.-
Methods inherited from class org.eclipse.rdf4j.common.xml.SimpleSAXAdapter
endTag, startDocument
-
-
-
-
Method Detail
-
startTag
public void startTag(java.lang.String tagName, java.util.Map<java.lang.String,java.lang.String> atts, java.lang.String text) throws org.xml.sax.SAXException
Description copied from interface:SimpleSAXListener
Reports a start tag to the listener. The method call reports the tag's name, the attributes that were found in the start tag and any text that was found after the start tag.- Specified by:
startTag
in interfaceSimpleSAXListener
- Overrides:
startTag
in classSimpleSAXAdapter
- Parameters:
tagName
- The tag name.atts
- A map containing key-value-pairs representing the attributes that were found in the start tag.text
- The text immediately following the start tag, or an empty string if the start tag was followed by a nested start tag or if no text (other than whitespace) was found between start- and end tag.- Throws:
org.xml.sax.SAXException
-
endDocument
public void endDocument() throws org.xml.sax.SAXException
Description copied from interface:SimpleSAXListener
Notifies the listener that the parser has finished parsing.- Specified by:
endDocument
in interfaceSimpleSAXListener
- Overrides:
endDocument
in classSimpleSAXAdapter
- Throws:
org.xml.sax.SAXException
-
getValue
public boolean getValue()
-
-