Package org.apache.maven.doxia.parser
Class AbstractXmlParser.XmlPullParserLocator
java.lang.Object
org.apache.maven.doxia.sink.impl.AbstractLocator
org.apache.maven.doxia.parser.AbstractXmlParser.XmlPullParserLocator
- All Implemented Interfaces:
Locator
- Enclosing class:
AbstractXmlParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.codehaus.plexus.util.xml.pull.XmlPullParser
-
Constructor Summary
ConstructorsConstructorDescriptionXmlPullParserLocator
(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, String reference) -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the column number for the sink event (starting from 1).int
Returns the line number for the sink event (starting from 1).Methods inherited from class org.apache.maven.doxia.sink.impl.AbstractLocator
getReference
-
Field Details
-
parser
private final org.codehaus.plexus.util.xml.pull.XmlPullParser parser
-
-
Constructor Details
-
XmlPullParserLocator
XmlPullParserLocator(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, String reference)
-
-
Method Details
-
getLineNumber
public int getLineNumber()Description copied from interface:Locator
Returns the line number for the sink event (starting from 1). If it is not known returns-1
.- Returns:
- the line number for the sink event
-
getColumnNumber
public int getColumnNumber()Description copied from interface:Locator
Returns the column number for the sink event (starting from 1). If it is not known returns-1
.- Returns:
- the column number for the sink event
-