org.apache.maven.doxia.parser

Class AbstractXmlParser

public abstract class AbstractXmlParser extends AbstractParser implements XmlMarkup

An abstract class that defines some convenience methods for XML parsers.

Since: 1.0

Version: $Id: AbstractXmlParser.java 567665 2007-08-20 12:23:16Z ltheussl $

Author: Vincent Siveton

Method Summary
intgetType()
protected abstract voidhandleEndTag(XmlPullParser parser, Sink sink)
Goes through the possible end tags.
protected abstract voidhandleStartTag(XmlPullParser parser, Sink sink)
Goes through the possible start tags.
protected abstract voidhandleText(XmlPullParser parser, Sink sink)
Handles text events.
voidparse(Reader source, Sink sink)

Method Detail

getType

public final int getType()
{@inheritDoc }

handleEndTag

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

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

handleStartTag

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

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 abstract void handleText(XmlPullParser parser, Sink sink)
Handles text events.

Parameters: parser A parser. sink the sink to receive the events.

Throws: XmlPullParserException if there's a problem parsing the model

parse

public void parse(Reader source, Sink sink)
{@inheritDoc }
Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.