org.jboss.seam.xml.parser
Class ParserMain
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.jboss.seam.xml.parser.ParserMain
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler
public class ParserMain
- extends DefaultHandler
Parser for xml configration, this class should only be used once and then
discarded
- Author:
- Stuart Douglas
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, 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 |
ParserMain
public ParserMain()
parse
public SaxNode parse(InputSource inputSource,
String fileUrl,
List<Exception> errors)
characters
public void characters(char[] ch,
int start,
int length)
throws SAXException
- Specified by:
characters in interface ContentHandler- Overrides:
characters in class DefaultHandler
- Throws:
SAXException
startElement
public void startElement(String uri,
String localName,
String qName,
Attributes attributes)
throws SAXException
- Specified by:
startElement in interface ContentHandler- Overrides:
startElement in class DefaultHandler
- Throws:
SAXException
endElement
public void endElement(String uri,
String localName,
String qName)
throws SAXException
- Specified by:
endElement in interface ContentHandler- Overrides:
endElement in class DefaultHandler
- Throws:
SAXException
setDocumentLocator
public void setDocumentLocator(Locator locator)
- Specified by:
setDocumentLocator in interface ContentHandler- Overrides:
setDocumentLocator in class DefaultHandler
error
public void error(SAXParseException e)
throws SAXException
- Specified by:
error in interface ErrorHandler- Overrides:
error in class DefaultHandler
- Throws:
SAXException
fatalError
public void fatalError(SAXParseException e)
throws SAXException
- Specified by:
fatalError in interface ErrorHandler- Overrides:
fatalError in class DefaultHandler
- Throws:
SAXException
Copyright © 2010 Seam Framework. All Rights Reserved.