Documentation of 'hep.aida.ref.xml.AidaParser' Java class
AidaParser
hep.aida.ref.xml

Class AidaParser

  • All Implemented Interfaces:
    org.xml.sax.ContentHandler


    public class AidaParser
    extends java.lang.Object
    implements org.xml.sax.ContentHandler
    The class reads ASCII XML documents according to specified DTD and translates all related events into AidaHandler events.

    Usage sample:

        AidaParser parser = new AidaParser(...);
        parser.parse(new InputSource("..."));
     

    Warning: the class is machine generated. DO NOT MODIFY

    • Constructor Summary

      Constructors 
      Constructor and Description
      AidaParser(AidaHandler handler, org.xml.sax.EntityResolver resolver)
      Creates a parser instance.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void characters(char[] chars, int start, int len)
      This SAX interface method is implemented by the parser.
      void endDocument()
      This SAX interface method is implemented by the parser.
      void endElement(java.lang.String ns, java.lang.String name, java.lang.String qname)
      This SAX interface method is implemented by the parser.
      void endPrefixMapping(java.lang.String prefix)
      This SAX interface method is implemented by the parser.
      void ignorableWhitespace(char[] chars, int start, int len)
      This SAX interface method is implemented by the parser.
      void parse(org.xml.sax.InputSource input)
      The recognizer entry method taking an InputSource.
      static void parse(org.xml.sax.InputSource input, AidaHandler handler)
      The recognizer entry method taking an Inputsource.
      void parse(java.net.URL url)
      The recognizer entry method taking a URL.
      static void parse(java.net.URL url, AidaHandler handler)
      The recognizer entry method taking a URL.
      void processingInstruction(java.lang.String target, java.lang.String data)
      This SAX interface method is implemented by the parser.
      void setDocumentLocator(org.xml.sax.Locator locator)
      This SAX interface method is implemented by the parser.
      void setValidate(boolean validate) 
      void skippedEntity(java.lang.String name)
      This SAX interface method is implemented by the parser.
      void startDocument()
      This SAX interface method is implemented by the parser.
      void startElement(java.lang.String ns, java.lang.String name, java.lang.String qname, org.xml.sax.Attributes attrs)
      This SAX interface method is implemented by the parser.
      void startPrefixMapping(java.lang.String prefix, java.lang.String uri)
      This SAX interface method is implemented by the parser.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AidaParser

        public AidaParser(AidaHandler handler,
                          org.xml.sax.EntityResolver resolver)
        Creates a parser instance.
        Parameters:
        handler - handler interface implementation (never null
        resolver - SAX entity resolver implementation or null. It is recommended that it could be able to resolve at least the DTD.
    • Method Detail

      • setDocumentLocator

        public final void setDocumentLocator(org.xml.sax.Locator locator)
        This SAX interface method is implemented by the parser.
        Specified by:
        setDocumentLocator in interface org.xml.sax.ContentHandler
      • startDocument

        public final void startDocument()
                                 throws org.xml.sax.SAXException
        This SAX interface method is implemented by the parser.
        Specified by:
        startDocument in interface org.xml.sax.ContentHandler
        Throws:
        org.xml.sax.SAXException
      • endDocument

        public final void endDocument()
                               throws org.xml.sax.SAXException
        This SAX interface method is implemented by the parser.
        Specified by:
        endDocument in interface org.xml.sax.ContentHandler
        Throws:
        org.xml.sax.SAXException
      • startElement

        public final void startElement(java.lang.String ns,
                                       java.lang.String name,
                                       java.lang.String qname,
                                       org.xml.sax.Attributes attrs)
                                throws org.xml.sax.SAXException
        This SAX interface method is implemented by the parser.
        Specified by:
        startElement in interface org.xml.sax.ContentHandler
        Throws:
        org.xml.sax.SAXException
      • endElement

        public final void endElement(java.lang.String ns,
                                     java.lang.String name,
                                     java.lang.String qname)
                              throws org.xml.sax.SAXException
        This SAX interface method is implemented by the parser.
        Specified by:
        endElement in interface org.xml.sax.ContentHandler
        Throws:
        org.xml.sax.SAXException
      • characters

        public final void characters(char[] chars,
                                     int start,
                                     int len)
                              throws org.xml.sax.SAXException
        This SAX interface method is implemented by the parser.
        Specified by:
        characters in interface org.xml.sax.ContentHandler
        Throws:
        org.xml.sax.SAXException
      • ignorableWhitespace

        public final void ignorableWhitespace(char[] chars,
                                              int start,
                                              int len)
                                       throws org.xml.sax.SAXException
        This SAX interface method is implemented by the parser.
        Specified by:
        ignorableWhitespace in interface org.xml.sax.ContentHandler
        Throws:
        org.xml.sax.SAXException
      • processingInstruction

        public final void processingInstruction(java.lang.String target,
                                                java.lang.String data)
                                         throws org.xml.sax.SAXException
        This SAX interface method is implemented by the parser.
        Specified by:
        processingInstruction in interface org.xml.sax.ContentHandler
        Throws:
        org.xml.sax.SAXException
      • startPrefixMapping

        public final void startPrefixMapping(java.lang.String prefix,
                                             java.lang.String uri)
                                      throws org.xml.sax.SAXException
        This SAX interface method is implemented by the parser.
        Specified by:
        startPrefixMapping in interface org.xml.sax.ContentHandler
        Throws:
        org.xml.sax.SAXException
      • endPrefixMapping

        public final void endPrefixMapping(java.lang.String prefix)
                                    throws org.xml.sax.SAXException
        This SAX interface method is implemented by the parser.
        Specified by:
        endPrefixMapping in interface org.xml.sax.ContentHandler
        Throws:
        org.xml.sax.SAXException
      • skippedEntity

        public final void skippedEntity(java.lang.String name)
                                 throws org.xml.sax.SAXException
        This SAX interface method is implemented by the parser.
        Specified by:
        skippedEntity in interface org.xml.sax.ContentHandler
        Throws:
        org.xml.sax.SAXException
      • parse

        public void parse(org.xml.sax.InputSource input)
                   throws org.xml.sax.SAXException,
                          javax.xml.parsers.ParserConfigurationException,
                          java.io.IOException
        The recognizer entry method taking an InputSource.
        Parameters:
        input - InputSource to be parsed.
        Throws:
        java.io.IOException - on I/O error.
        org.xml.sax.SAXException - propagated exception thrown by a DocumentHandler.
        javax.xml.parsers.ParserConfigurationException - a parser satisfining requested configuration can not be created.
        javax.xml.parsers.FactoryConfigurationRrror - if the implementation can not be instantiated.
      • parse

        public void parse(java.net.URL url)
                   throws org.xml.sax.SAXException,
                          javax.xml.parsers.ParserConfigurationException,
                          java.io.IOException
        The recognizer entry method taking a URL.
        Parameters:
        url - URL source to be parsed.
        Throws:
        java.io.IOException - on I/O error.
        org.xml.sax.SAXException - propagated exception thrown by a DocumentHandler.
        javax.xml.parsers.ParserConfigurationException - a parser satisfining requested configuration can not be created.
        javax.xml.parsers.FactoryConfigurationRrror - if the implementation can not be instantiated.
      • parse

        public static void parse(org.xml.sax.InputSource input,
                                 AidaHandler handler)
                          throws org.xml.sax.SAXException,
                                 javax.xml.parsers.ParserConfigurationException,
                                 java.io.IOException
        The recognizer entry method taking an Inputsource.
        Parameters:
        input - InputSource to be parsed.
        Throws:
        java.io.IOException - on I/O error.
        org.xml.sax.SAXException - propagated exception thrown by a DocumentHandler.
        javax.xml.parsers.ParserConfigurationException - a parser satisfining requested configuration can not be created.
        javax.xml.parsers.FactoryConfigurationRrror - if the implementation can not be instantiated.
      • parse

        public static void parse(java.net.URL url,
                                 AidaHandler handler)
                          throws org.xml.sax.SAXException,
                                 javax.xml.parsers.ParserConfigurationException,
                                 java.io.IOException
        The recognizer entry method taking a URL.
        Parameters:
        url - URL source to be parsed.
        Throws:
        java.io.IOException - on I/O error.
        org.xml.sax.SAXException - propagated exception thrown by a DocumentHandler.
        javax.xml.parsers.ParserConfigurationException - a parser satisfining requested configuration can not be created.
        javax.xml.parsers.FactoryConfigurationRrror - if the implementation can not be instantiated.
      • setValidate

        public void setValidate(boolean validate)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.