Package org.apache.maven.doxia.sink
Class EmptyLocator
- java.lang.Object
-
- org.apache.maven.doxia.sink.EmptyLocator
-
-
Constructor Summary
Constructors Constructor Description EmptyLocator()
-
Method Summary
All Methods Instance Methods Concrete 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).
-
-
-
Field Detail
-
INSTANCE
public static final Locator INSTANCE
-
-
Method Detail
-
getLineNumber
public int getLineNumber()
Description copied from interface:LocatorReturns the line number for the sink event (starting from 1). If it is not known returns-1.- Specified by:
getLineNumberin interfaceLocator- Returns:
- the line number for the sink event
-
getColumnNumber
public int getColumnNumber()
Description copied from interface:LocatorReturns the column number for the sink event (starting from 1). If it is not known returns-1.- Specified by:
getColumnNumberin interfaceLocator- Returns:
- the column number for the sink event
-
getReference
public java.lang.String getReference()
Description copied from interface:LocatorReturns the underlying source reference (for file based documents a relative file path, otherwise an arbitrary string ornull).- Specified by:
getReferencein interfaceLocator- Returns:
- the source for the sink event (may be
null)
-
-