| java.lang.Object net.sourceforge.chaperon.process.extended.ExtendedDirectParserProcessor
ExtendedDirectParserProcessor | public class ExtendedDirectParserProcessor implements ContentHandler,LexicalHandler(Code) | | This class represents a simulation of a pushdown automata using the parser automaton class.
author: Stephan Michels version: CVS $Id: ExtendedDirectParserProcessor.java,v 1.12 2004/01/09 10:34:51 benedikta Exp $ |
Field Summary | |
final public static String | NS_OUTPUT Namespace for the generated SAX events. |
Method Summary | |
public void | characters(char[] text, int textstart, int textlength) 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 | setExtendedGrammar(ExtendedGrammar grammar) Set the parser automaton for the processor. | 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 | 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. |
NS_OUTPUT | final public static String NS_OUTPUT(Code) | | Namespace for the generated SAX events.
|
ExtendedDirectParserProcessor | public ExtendedDirectParserProcessor()(Code) | | Create a new parser processor.
|
ExtendedDirectParserProcessor | public ExtendedDirectParserProcessor(ExtendedGrammar grammar, 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[] text, int textstart, int textlength) throws SAXException(Code) | | Receive notification of character data.
|
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.
|
endDocument | public void endDocument() throws SAXException(Code) | | Receive notification of the end of a document.
|
endPrefixMapping | public void endPrefixMapping(String prefix) throws SAXException(Code) | | End the scope of a prefix-URI mapping.
|
ignorableWhitespace | public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException(Code) | | Receive notification of ignorable whitespace in element content.
|
processingInstruction | public void processingInstruction(String target, String data) throws SAXException(Code) | | Receive notification of a processing instruction.
|
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.
|
setExtendedGrammar | public void setExtendedGrammar(ExtendedGrammar grammar)(Code) | | Set the parser automaton for the processor.
Parameters: automaton - Parser automaton. |
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. |
startCDATA | public void startCDATA() throws SAXException(Code) | | Report the start of a CDATA section.
|
startDocument | public void startDocument() throws SAXException(Code) | | Receive notification of the beginning of a document.
|
startPrefixMapping | public void startPrefixMapping(String prefix, String uri) throws SAXException(Code) | | Begin the scope of a prefix-URI Namespace mapping.
|
|
|