| java.lang.Object net.sourceforge.chaperon.process.GeneralParserProcessor
GeneralParserProcessor | public class GeneralParserProcessor implements ContentHandler,LexicalHandler(Code) | | This class represents a simulation of a pushdown automata using the parser automaton class.
author: Stephan Michels version: CVS $Id: GeneralParserProcessor.java,v 1.19 2003/12/14 09:41:35 benedikta Exp $ |
Method Summary | |
public void | characters(char[] ch, int start, int length) Receive notification of character data. | public void | comment(char[] ch, int start, int len) Report an XML comment anywhere in the document. | public void | endCDATA() Report the end of a CDATA section. | public void | endDTD() Report the end of DTD declarations. | public void | endDocument() Receive notification of the end of a document. | public void | endElement(String namespaceURI, String localName, String qName) Receive notification of the end of an element. | public void | endEntity(String name) Report the end of an entity. | public void | endPrefixMapping(String prefix) End the scope of a prefix-URI mapping. | public void | ignorableWhitespace(char[] ch, int start, int length) Receive notification of ignorable whitespace in element content. | public void | processingInstruction(String target, String data) Receive notification of a processing instruction. | public void | setContentHandler(ContentHandler handler) Set the ContentHandler that will receive XML data. | public void | setDocumentLocator(Locator locator) Receive an object for locating the origin of SAX document events. | public void | setFlatten(boolean flatten) | public void | setLexicalHandler(LexicalHandler handler) Set the LexicalHandler that will receive XML data. | public void | setLog(Log log) Provide processor with a log. | public void | setParserAutomaton(Automaton automaton) Set the parser automaton for the processor. | public void | skippedEntity(String name) Receive notification of a skipped entity. | public void | startCDATA() Report the start of a CDATA section. | public void | startDTD(String name, String publicId, String systemId) Report the start of DTD declarations, if any. | public void | startDocument() Receive notification of the beginning of a document. | public void | startElement(String namespaceURI, String localName, String qName, Attributes atts) Receive notification of the beginning of an element. | public void | startEntity(String name) Report the beginning of an entity. | public void | startPrefixMapping(String prefix, String uri) Begin the scope of a prefix-URI Namespace mapping. |
GeneralParserProcessor | public GeneralParserProcessor()(Code) | | Create a new parser processor.
|
GeneralParserProcessor | public GeneralParserProcessor(Automaton automaton, Log log)(Code) | | Create a new parser processor.
Parameters: automaton - Parser automaton, which the processor should ues. Parameters: handler - Handler, which should receives the parser events. Parameters: log - Log, which should used. |
characters | public void characters(char[] ch, int start, int length) throws SAXException(Code) | | Receive notification of character data.
Parameters: ch - Parameters: start - Parameters: length - throws: SAXException - |
comment | public void comment(char[] ch, int start, int len) throws SAXException(Code) | | Report an XML comment anywhere in the document.
|
endCDATA | public void endCDATA() throws SAXException(Code) | | Report the end of a CDATA section.
|
endElement | public void endElement(String namespaceURI, String localName, String qName) throws SAXException(Code) | | Receive notification of the end of an element.
Parameters: namespaceURI - Parameters: localName - Parameters: qName - throws: SAXException - |
ignorableWhitespace | public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException(Code) | | Receive notification of ignorable whitespace in element content.
Parameters: ch - Parameters: start - Parameters: length - throws: SAXException - |
processingInstruction | public void processingInstruction(String target, String data) throws SAXException(Code) | | Receive notification of a processing instruction.
Parameters: target - Parameters: data - throws: SAXException - |
setContentHandler | public void setContentHandler(ContentHandler handler)(Code) | | Set the ContentHandler that will receive XML data.
|
setDocumentLocator | public void setDocumentLocator(Locator locator)(Code) | | Receive an object for locating the origin of SAX document events.
Parameters: locator - |
setFlatten | public void setFlatten(boolean flatten)(Code) | | If the adapter should produce a more flatten XML hirachy, which means elements which the same
name will be collapsed
Parameters: flatten - True, if a more flatten hirachy should be produced. |
setLexicalHandler | public void setLexicalHandler(LexicalHandler handler)(Code) | | Set the LexicalHandler that will receive XML data.
|
setLog | public void setLog(Log log)(Code) | | Provide processor with a log.
Parameters: log - The log. |
setParserAutomaton | public void setParserAutomaton(Automaton automaton)(Code) | | Set the parser automaton for the processor.
Parameters: automaton - Parser automaton. |
startCDATA | public void startCDATA() throws SAXException(Code) | | Report the start of a CDATA section.
|
startElement | public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException(Code) | | Receive notification of the beginning of an element.
Parameters: namespaceURI - Parameters: localName - Parameters: qName - Parameters: atts - throws: SAXException - |
startPrefixMapping | public void startPrefixMapping(String prefix, String uri) throws SAXException(Code) | | Begin the scope of a prefix-URI Namespace mapping.
Parameters: prefix - Parameters: uri - throws: SAXException - |
|
|