hep.aida.ref.xml
Class AidaParser
- java.lang.Object
-
- hep.aida.ref.xml.AidaParser
-
- All Implemented Interfaces:
- org.xml.sax.ContentHandler
public class AidaParser extends java.lang.Object implements org.xml.sax.ContentHandlerThe 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 voidcharacters(char[] chars, int start, int len)This SAX interface method is implemented by the parser.voidendDocument()This SAX interface method is implemented by the parser.voidendElement(java.lang.String ns, java.lang.String name, java.lang.String qname)This SAX interface method is implemented by the parser.voidendPrefixMapping(java.lang.String prefix)This SAX interface method is implemented by the parser.voidignorableWhitespace(char[] chars, int start, int len)This SAX interface method is implemented by the parser.voidparse(org.xml.sax.InputSource input)The recognizer entry method taking an InputSource.static voidparse(org.xml.sax.InputSource input, AidaHandler handler)The recognizer entry method taking an Inputsource.voidparse(java.net.URL url)The recognizer entry method taking a URL.static voidparse(java.net.URL url, AidaHandler handler)The recognizer entry method taking a URL.voidprocessingInstruction(java.lang.String target, java.lang.String data)This SAX interface method is implemented by the parser.voidsetDocumentLocator(org.xml.sax.Locator locator)This SAX interface method is implemented by the parser.voidsetValidate(boolean validate)voidskippedEntity(java.lang.String name)This SAX interface method is implemented by the parser.voidstartDocument()This SAX interface method is implemented by the parser.voidstartElement(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.voidstartPrefixMapping(java.lang.String prefix, java.lang.String uri)This SAX interface method is implemented by the parser.
-
-
-
Constructor Detail
-
AidaParser
public AidaParser(AidaHandler handler, org.xml.sax.EntityResolver resolver)
Creates a parser instance.- Parameters:
handler- handler interface implementation (nevernullresolver- SAX entity resolver implementation ornull. 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:
setDocumentLocatorin interfaceorg.xml.sax.ContentHandler
-
startDocument
public final void startDocument() throws org.xml.sax.SAXExceptionThis SAX interface method is implemented by the parser.- Specified by:
startDocumentin interfaceorg.xml.sax.ContentHandler- Throws:
org.xml.sax.SAXException
-
endDocument
public final void endDocument() throws org.xml.sax.SAXExceptionThis SAX interface method is implemented by the parser.- Specified by:
endDocumentin interfaceorg.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.SAXExceptionThis SAX interface method is implemented by the parser.- Specified by:
startElementin interfaceorg.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.SAXExceptionThis SAX interface method is implemented by the parser.- Specified by:
endElementin interfaceorg.xml.sax.ContentHandler- Throws:
org.xml.sax.SAXException
-
characters
public final void characters(char[] chars, int start, int len) throws org.xml.sax.SAXExceptionThis SAX interface method is implemented by the parser.- Specified by:
charactersin interfaceorg.xml.sax.ContentHandler- Throws:
org.xml.sax.SAXException
-
ignorableWhitespace
public final void ignorableWhitespace(char[] chars, int start, int len) throws org.xml.sax.SAXExceptionThis SAX interface method is implemented by the parser.- Specified by:
ignorableWhitespacein interfaceorg.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.SAXExceptionThis SAX interface method is implemented by the parser.- Specified by:
processingInstructionin interfaceorg.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.SAXExceptionThis SAX interface method is implemented by the parser.- Specified by:
startPrefixMappingin interfaceorg.xml.sax.ContentHandler- Throws:
org.xml.sax.SAXException
-
endPrefixMapping
public final void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXExceptionThis SAX interface method is implemented by the parser.- Specified by:
endPrefixMappingin interfaceorg.xml.sax.ContentHandler- Throws:
org.xml.sax.SAXException
-
skippedEntity
public final void skippedEntity(java.lang.String name) throws org.xml.sax.SAXExceptionThis SAX interface method is implemented by the parser.- Specified by:
skippedEntityin interfaceorg.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.IOExceptionThe 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.IOExceptionThe 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.IOExceptionThe 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.IOExceptionThe 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