org.apache.maven.doxia.module.docbook
Class DocBookParser

java.lang.Object
  extended by org.apache.maven.doxia.parser.AbstractParser
      extended by org.apache.maven.doxia.parser.AbstractXmlParser
          extended by org.apache.maven.doxia.module.docbook.DocBookParser
All Implemented Interfaces:
Markup, XmlMarkup, DocbookMarkup, Parser

public class DocBookParser
extends AbstractXmlParser
implements DocbookMarkup

Parse a Docbook document and emit events into the specified doxia Sink.

Since:
1.0
Version:
$Id: DocBookParser.java 567679 2007-08-20 13:05:20Z ltheussl $
Author:
Jason van Zyl

Field Summary
 
Fields inherited from class org.apache.maven.doxia.parser.AbstractParser
macroManager, secondParsing
 
Fields inherited from interface org.apache.maven.doxia.module.docbook.DocbookMarkup
ANCHOR_TAG, ARABIC_STYLE, ARTICLE_TAG, ARTICLEINFO_TAG, BOOK_TAG, BOOKINFO_TAG, CHAPTER_TAG, COLS_ATTRIBUTE, COLSEP_ATTRIBUTE, COLSPEC_TAG, CORPAUTHOR_TAG, DATE_TAG, EMAIL_TAG, ENTRY_TAG, FIGURE_TAG, FILEREF_ATTRIBUTE, FORMALPARA_TAG, FORMAT_ATTRIBUTE, FRAME_ATTRIBUTE, IMAGEDATA_TAG, IMAGEOBJECT_TAG, INFO_TAG, INFORMALFIGURE_TAG, INFORMALTABLE_TAG, ITEMIZEDLIST_TAG, LINK_TAG, LINKEND_ATTRIBUTE, LISTITEM_TAG, LOWERALPHA_STYLE, LOWERROMAN_STYLE, MEDIAOBJECT_TAG, NUMERATION_ATTRIBUTE, ORDEREDLIST_TAG, PARA_TAG, PROGRAMLISTING_TAG, ROW_TAG, ROWSEP_ATTRIBUTE, SECTION_TAG, SIMPARA_TAG, TBODY_TAG, TERM_TAG, TGROUP_TAG, THEAD_TAG, ULINK_TAG, UPPERALPHA_STYLE, UPPERROMAN_STYLE, URL_ATTRIBUTE, URL_TAG, VARIABLELIST_TAG, VARLISTENTRY_TAG, XREF_TAG
 
Fields inherited from interface org.apache.maven.doxia.markup.XmlMarkup
BANG, CDATA
 
Fields inherited from interface org.apache.maven.doxia.markup.Markup
EOL, EQUAL, GREATER_THAN, LEFT_CURLY_BRACKET, LEFT_SQUARE_BRACKET, LESS_THAN, MINUS, PLUS, QUOTE, RIGHT_CURLY_BRACKET, RIGHT_SQUARE_BRACKET, SLASH, SPACE, STAR
 
Fields inherited from interface org.apache.maven.doxia.parser.Parser
JUSTIFY_CENTER, JUSTIFY_LEFT, JUSTIFY_RIGHT, ROLE, TXT_TYPE, UNKNOWN_TYPE, XML_TYPE
 
Constructor Summary
DocBookParser()
           
 
Method Summary
protected  void handleEndTag(XmlPullParser parser, Sink sink)
          Goes through the possible end tags.
protected  void handleStartTag(XmlPullParser parser, Sink sink)
          Goes through the possible start tags.
protected  void handleText(XmlPullParser parser, Sink sink)
          Handles text events.
 
Methods inherited from class org.apache.maven.doxia.parser.AbstractXmlParser
getType, parse
 
Methods inherited from class org.apache.maven.doxia.parser.AbstractParser
executeMacro, getBasedir, setSecondParsing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocBookParser

public DocBookParser()
Method Detail

handleStartTag

protected void handleStartTag(XmlPullParser parser,
                              Sink sink)
                       throws XmlPullParserException,
                              MacroExecutionException
Goes through the possible start tags.

Specified by:
handleStartTag in class AbstractXmlParser
Parameters:
parser - A parser.
sink - the sink to receive the events.
Throws:
XmlPullParserException - if there's a problem parsing the model
MacroExecutionException - if there's a problem executing a macro

handleEndTag

protected void handleEndTag(XmlPullParser parser,
                            Sink sink)
                     throws XmlPullParserException,
                            MacroExecutionException
Goes through the possible end tags.

Specified by:
handleEndTag in class AbstractXmlParser
Parameters:
parser - A parser.
sink - the sink to receive the events.
Throws:
XmlPullParserException - if there's a problem parsing the model
MacroExecutionException - if there's a problem executing a macro

handleText

protected void handleText(XmlPullParser parser,
                          Sink sink)
                   throws XmlPullParserException
Handles text events.

Specified by:
handleText in class AbstractXmlParser
Parameters:
parser - A parser.
sink - the sink to receive the events.
Throws:
XmlPullParserException - if there's a problem parsing the model


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.