Package org.openstreetmap.josm.io
Class OsmChangesetContentParser.Parser
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.openstreetmap.josm.io.AbstractParser
-
- org.openstreetmap.josm.io.OsmChangesetContentParser.Parser
-
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
- Enclosing class:
- OsmChangesetContentParser
private class OsmChangesetContentParser.Parser extends AbstractParser
-
-
Field Summary
Fields Modifier and Type Field Description private ChangesetDataSet.ChangesetModificationType
currentModificationType
the current change modification type-
Fields inherited from class org.openstreetmap.josm.io.AbstractParser
currentPrimitive, locator, useAnonymousUser
-
-
Constructor Summary
Constructors Constructor Description Parser(boolean useAnonymousUser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endElement(String uri, String localName, String qName)
void
error(SAXParseException e)
void
fatalError(SAXParseException e)
void
startElement(String namespaceURI, String localName, String qName, Attributes atts)
protected void
throwException(String message)
protected void
throwException(String message, Exception e)
-
Methods inherited from class org.openstreetmap.josm.io.AbstractParser
createPrimitive, doStartElement, getAttributeDouble, getAttributeLong, getMandatoryAttributeBoolean, getMandatoryAttributeLong, getMandatoryAttributeString, handleMember, handleNodeReference, handleTag, setDocumentLocator, startNode, startRelation, startWay
-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Field Detail
-
currentModificationType
private ChangesetDataSet.ChangesetModificationType currentModificationType
the current change modification type
-
-
Constructor Detail
-
Parser
Parser(boolean useAnonymousUser)
-
-
Method Detail
-
throwException
protected void throwException(String message) throws XmlParsingException
- Specified by:
throwException
in classAbstractParser
- Throws:
XmlParsingException
-
throwException
protected void throwException(String message, Exception e) throws XmlParsingException
- Specified by:
throwException
in classAbstractParser
- Throws:
XmlParsingException
-
startElement
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
endElement
public void endElement(String uri, String localName, String qName) throws SAXException
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
error
public void error(SAXParseException e) throws SAXException
- Specified by:
error
in interfaceErrorHandler
- Overrides:
error
in classDefaultHandler
- Throws:
SAXException
-
fatalError
public void fatalError(SAXParseException e) throws SAXException
- Specified by:
fatalError
in interfaceErrorHandler
- Overrides:
fatalError
in classDefaultHandler
- Throws:
SAXException
-
-