public class GraphBuildingHandler
extends DefaultHandler
Constructor | Description |
---|---|
GraphBuildingHandler(GraphDB g) |
Create a new GraphBuildingHandler.
|
Modifier and Type | Method | Description |
---|---|---|
void |
endElement(String uri,
String localName,
String qName) |
Receive notification of the end of an element.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
Called at the beginning of an element.
|
public GraphBuildingHandler(GraphDB g)
g
- The graph to populate with the XML data.public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in class DefaultHandler
uri
- The Namespace URI, or the empty string if the element has no Namespace URI or
if Namespace processing is not being performed.localName
- The local name (without prefix), or the empty string if Namespace
processing is not being performed.qName
- The qualified name (with prefix), or the empty string if qualified names are
not available. This tells us which element we're looking at.attributes
- The attributes attached to the element. If there are no attributes, it
shall be an empty Attributes object.SAXException
- Any SAX exception, possibly wrapping another exception.Attributes
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in class DefaultHandler
uri
- The Namespace URI, or the empty string if the element has no Namespace URI or
if Namespace processing is not being performed.localName
- The local name (without prefix), or the empty string if Namespace
processing is not being performed.qName
- The qualified name (with prefix), or the empty string if qualified names are
not available.SAXException
- Any SAX exception, possibly wrapping another exception.