Class TextFileLocation

java.lang.Object
cdc.issues.locations.AbstractLocation
cdc.issues.locations.TextFileLocation
All Implemented Interfaces:
Location, Comparable<Location>

public class TextFileLocation extends AbstractLocation
Implementation of Location dedicated to text files.
Author:
Damien Carbonne
  • Field Details

  • Constructor Details

    • TextFileLocation

      protected TextFileLocation(String systemId, int lineNumber, int columnNumber)
  • Method Details

    • create

      public static TextFileLocation create(String systemId, String anchor)
    • getTag

      public String getTag()
      Returns:
      The string used to identify the implementation of this interface. It is used in serialization.
      See Also:
    • getPath

      public String getPath()
      Returns:
      The external part of the location, the path of the designated resource.
      It is typically a file name, an URI, a kind of 'absolute' identifier.
    • getAnchor

      public String getAnchor()
      Returns:
      The internal part of the location, inside the resource. It may be null.
    • getSystemId

      public String getSystemId()
    • getLineNumber

      public int getLineNumber()
    • getColumnNumber

      public int getColumnNumber()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AbstractLocation
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class AbstractLocation
    • builder

      public static TextFileLocation.Builder builder()