Class TextFileLocation

  • All Implemented Interfaces:
    Location

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

      • TextFileLocation

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

      • getTag

        public String getTag()
        Returns:
        The string used to identify the implementation of this interface. It is used in serialization.
        See Also:
        Locations
      • 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()