public class MapDBHandler extends DefaultHandler
Modifier and Type | Field and Description |
---|---|
private String |
activeState |
private static Set<String> |
ALLOWED_HIGHWAY_TYPES
Only allow for non-service roads; this prevents going on pedestrian streets as much as
possible.
|
private GraphDB |
g |
Constructor and Description |
---|
MapDBHandler(GraphDB g) |
Modifier and Type | Method and 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.
|
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
private static final Set<String> ALLOWED_HIGHWAY_TYPES
private String activeState
private final GraphDB g
public MapDBHandler(GraphDB g)
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
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 interface ContentHandler
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.