Package org.apache.maven.doxia.sink
Interface Locator
-
- All Known Implementing Classes:
EmptyLocator
public interface LocatorInterface for associating aSinkevent with a document location.- Since:
- 2.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetColumnNumber()Returns the column number for the sink event (starting from 1).intgetLineNumber()Returns the line number for the sink event (starting from 1).java.lang.StringgetReference()Returns the underlying source reference (for file based documents a relative file path, otherwise an arbitrary string ornull).
-
-
-
Method Detail
-
getReference
java.lang.String getReference()
Returns the underlying source reference (for file based documents a relative file path, otherwise an arbitrary string ornull).- Returns:
- the source for the sink event (may be
null)
-
getLineNumber
int getLineNumber()
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
int getColumnNumber()
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
-
-