Class EmptyLocator

java.lang.Object
org.apache.maven.doxia.sink.EmptyLocator
All Implemented Interfaces:
Locator

public final class EmptyLocator extends Object implements Locator
  • Field Details

    • INSTANCE

      public static final Locator INSTANCE
  • Constructor Details

    • EmptyLocator

      public EmptyLocator()
  • 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.
      Specified by:
      getLineNumber in interface Locator
      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.
      Specified by:
      getColumnNumber in interface Locator
      Returns:
      the column number for the sink event
    • getReference

      public String getReference()
      Description copied from interface: Locator
      Returns the underlying source reference (for file based documents a relative file path, otherwise an arbitrary string or null).
      Specified by:
      getReference in interface Locator
      Returns:
      the source for the sink event (may be null)