Class DefaultLocation

  • All Implemented Interfaces:
    Location

    public class DefaultLocation
    extends AbstractLocation
    Default implementation of IssueLocation.

    For example, it can be used to designate the attribute of an object.

    Author:
    Damien Carbonne
    • Constructor Detail

      • DefaultLocation

        public DefaultLocation​(String path,
                               String anchor)
      • DefaultLocation

        public DefaultLocation​(String path)
      • DefaultLocation

        public DefaultLocation​(Location other)
    • 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.