Package cdc.issues.locations
Class DefaultLocation
java.lang.Object
cdc.issues.locations.AbstractLocation
cdc.issues.locations.DefaultLocation
- All Implemented Interfaces:
Location,Comparable<Location>
Default implementation of IssueLocation.
For example, it can be used to designate the attribute of an object.
- Author:
- Damien Carbonne
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultLocation(Location other) DefaultLocation(String path) DefaultLocation(String path, String anchor) -
Method Summary
Methods inherited from class cdc.issues.locations.AbstractLocation
toString
-
Field Details
-
TAG
- See Also:
-
-
Constructor Details
-
DefaultLocation
-
DefaultLocation
-
DefaultLocation
-
-
Method Details
-
getTag
- Returns:
- The string used to identify the implementation of this interface. It is used in serialization.
- See Also:
-
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
- Returns:
- The internal part of the location, inside the resource.
It may be
null.
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractLocation
-
equals
- Overrides:
equalsin classAbstractLocation
-
builder
-