Package cdc.issues.locations
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultLocation.Builder
-
Constructor Summary
Constructors Constructor Description DefaultLocation(Location other)DefaultLocation(String path)DefaultLocation(String path, String anchor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultLocation.Builderbuilder()booleanequals(Object object)StringgetAnchor()StringgetPath()StringgetTag()inthashCode()-
Methods inherited from class cdc.issues.locations.AbstractLocation
toString
-
-
-
-
Field Detail
-
TAG
public static final String TAG
- See Also:
- Constant Field Values
-
-
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.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractLocation
-
equals
public boolean equals(Object object)
- Overrides:
equalsin classAbstractLocation
-
builder
public static DefaultLocation.Builder builder()
-
-