Class AbstractParser

    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractParser()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected HistoryOsmPrimitive createPrimitive​(org.xml.sax.Attributes atts, OsmPrimitiveType type)  
      protected boolean doStartElement​(java.lang.String qName, org.xml.sax.Attributes atts)  
      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 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)  
      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 abstract void throwException​(java.lang.String message)  
      protected abstract void throwException​(java.lang.String message, java.lang.Exception e)  
      • Methods inherited from class org.xml.sax.helpers.DefaultHandler

        characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
      • throwException

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

        protected abstract void throwException​(java.lang.String message,
                                               java.lang.Exception e)
                                        throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • getMandatoryAttributeLong

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

        protected final 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 final 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 final 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
      • startNode

        protected final void startNode​(org.xml.sax.Attributes atts)
                                throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • startWay

        protected final void startWay​(org.xml.sax.Attributes atts)
                               throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • startRelation

        protected final void startRelation​(org.xml.sax.Attributes atts)
                                    throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • handleTag

        protected final void handleTag​(org.xml.sax.Attributes atts)
                                throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • handleNodeReference

        protected final 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
      • doStartElement

        protected final boolean doStartElement​(java.lang.String qName,
                                               org.xml.sax.Attributes atts)
                                        throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException