Class DefaultLocation

java.lang.Object
cdc.issues.locations.AbstractLocation
cdc.issues.locations.DefaultLocation
All Implemented Interfaces:
Location, Comparable<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
  • Field Details

  • Constructor Details

    • DefaultLocation

      public DefaultLocation(String path, String anchor)
    • DefaultLocation

      public DefaultLocation(String path)
    • DefaultLocation

      public DefaultLocation(Location other)
  • Method Details

    • 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.
    • hashCode

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

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

      public static DefaultLocation.Builder builder()