org.openstreetmap.josm.io
Class OsmHistoryReader.Parser

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.openstreetmap.josm.io.OsmHistoryReader.Parser
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
Enclosing class:
OsmHistoryReader

private class OsmHistoryReader.Parser
extends org.xml.sax.helpers.DefaultHandler


Field Summary
private  HistoryOsmPrimitive current
          the current primitive to be read
private  org.xml.sax.Locator locator
           
 
Constructor Summary
private OsmHistoryReader.Parser()
           
 
Method Summary
protected  HistoryOsmPrimitive createPrimitive(org.xml.sax.Attributes atts, OsmPrimitiveType type)
           
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
           
protected  java.lang.Double getAttributeDouble(org.xml.sax.Attributes attr, java.lang.String name)
           
protected  java.lang.Long getAttributeLong(org.xml.sax.Attributes attr, java.lang.String name)
           
protected  java.lang.String getCurrentPosition()
           
protected  boolean getMandatoryAttributeBoolean(org.xml.sax.Attributes attr, java.lang.String name)
           
protected  long getMandatoryAttributeLong(org.xml.sax.Attributes attr, java.lang.String name)
           
protected  java.lang.String getMandatoryAttributeString(org.xml.sax.Attributes attr, java.lang.String name)
           
protected  void handleMember(org.xml.sax.Attributes atts)
           
protected  void handleNodeReference(org.xml.sax.Attributes atts)
           
protected  void handleTag(org.xml.sax.Attributes atts)
           
 void setDocumentLocator(org.xml.sax.Locator locator)
           
 void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
           
protected  void startNode(org.xml.sax.Attributes atts)
           
protected  void startRelation(org.xml.sax.Attributes atts)
           
protected  void startWay(org.xml.sax.Attributes atts)
           
protected  void throwException(java.lang.String message)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

current

private HistoryOsmPrimitive current
the current primitive to be read


locator

private org.xml.sax.Locator locator
Constructor Detail

OsmHistoryReader.Parser

private OsmHistoryReader.Parser()
Method Detail

setDocumentLocator

public void setDocumentLocator(org.xml.sax.Locator locator)
Specified by:
setDocumentLocator in interface org.xml.sax.ContentHandler
Overrides:
setDocumentLocator in class org.xml.sax.helpers.DefaultHandler

getCurrentPosition

protected java.lang.String getCurrentPosition()

throwException

protected void throwException(java.lang.String message)
                       throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getMandatoryAttributeLong

protected long getMandatoryAttributeLong(org.xml.sax.Attributes attr,
                                         java.lang.String name)
                                  throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getAttributeLong

protected java.lang.Long getAttributeLong(org.xml.sax.Attributes attr,
                                          java.lang.String name)
                                   throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getAttributeDouble

protected java.lang.Double getAttributeDouble(org.xml.sax.Attributes attr,
                                              java.lang.String name)
                                       throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getMandatoryAttributeString

protected java.lang.String getMandatoryAttributeString(org.xml.sax.Attributes attr,
                                                       java.lang.String name)
                                                throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getMandatoryAttributeBoolean

protected boolean getMandatoryAttributeBoolean(org.xml.sax.Attributes attr,
                                               java.lang.String name)
                                        throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

createPrimitive

protected HistoryOsmPrimitive createPrimitive(org.xml.sax.Attributes atts,
                                              OsmPrimitiveType type)
                                       throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

startNode

protected void startNode(org.xml.sax.Attributes atts)
                  throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

startWay

protected void startWay(org.xml.sax.Attributes atts)
                 throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

startRelation

protected void startRelation(org.xml.sax.Attributes atts)
                      throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

handleTag

protected void handleTag(org.xml.sax.Attributes atts)
                  throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

handleNodeReference

protected void handleNodeReference(org.xml.sax.Attributes atts)
                            throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

handleMember

protected void handleMember(org.xml.sax.Attributes atts)
                     throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

startElement

public void startElement(java.lang.String namespaceURI,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes atts)
                  throws org.xml.sax.SAXException
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

endElement

public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String qName)
                throws org.xml.sax.SAXException
Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException


JOSM