| java.lang.Object net.sourceforge.chaperon.process.ParserProcessor
ParserProcessor | public class ParserProcessor implements ContentHandler,LexicalHandler(Code) | | This class represents a simulation of a pushdown automata using the parser automaton class.
author: Stephan Michels version: CVS $Id: ParserProcessor.java,v 1.28 2004/01/08 11:30:52 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 | setLocalizable(boolean localizable) If true , the line and column number information are let in the XML output for
each token. | public void | setLog(Log log) Provide processor with a log. | public void | setParserAutomaton(ParserAutomaton 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. |
NS_OUTPUT | final public static String NS_OUTPUT(Code) | | Namespace for the generated SAX events.
|
ParserProcessor | public ParserProcessor()(Code) | | Create a new parser processor.
|
ParserProcessor | public ParserProcessor(ParserAutomaton 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.
|
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.
|
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.
|
setLocalizable | public void setLocalizable(boolean localizable)(Code) | | If true , the line and column number information are let in the XML output for
each token.
Parameters: localizable - If the XML may be localizable. |
setLog | public void setLog(Log log)(Code) | | Provide processor with a log.
Parameters: log - The log. |
setParserAutomaton | public void setParserAutomaton(ParserAutomaton 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.
|
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.
|
|
|