Package cdc.issues.locations
Class TextFileLocation
- java.lang.Object
-
- cdc.issues.locations.AbstractLocation
-
- cdc.issues.locations.TextFileLocation
-
- All Implemented Interfaces:
Location,Comparable<Location>
public class TextFileLocation extends AbstractLocation
Implementation of Location dedicated to text files.- Author:
- Damien Carbonne
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTextFileLocation.Builder
-
Constructor Summary
Constructors Modifier Constructor Description protectedTextFileLocation(String systemId, int lineNumber, int columnNumber)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TextFileLocation.Builderbuilder()static TextFileLocationcreate(String systemId, String anchor)booleanequals(Object object)StringgetAnchor()intgetColumnNumber()intgetLineNumber()StringgetPath()StringgetSystemId()StringgetTag()inthashCode()-
Methods inherited from class cdc.issues.locations.AbstractLocation
toString
-
-
-
-
Field Detail
-
TAG
public static final String TAG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TextFileLocation
protected TextFileLocation(String systemId, int lineNumber, int columnNumber)
-
-
Method Detail
-
create
public static TextFileLocation create(String systemId, String anchor)
-
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()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractLocation
-
equals
public boolean equals(Object object)
- Overrides:
equalsin classAbstractLocation
-
builder
public static TextFileLocation.Builder builder()
-
-