Package cdc.issues.locations
Class TextFileLocation
java.lang.Object
cdc.issues.locations.AbstractLocation
cdc.issues.locations.TextFileLocation
- All Implemented Interfaces:
Location,Comparable<Location>
Implementation of Location dedicated to text files.
- Author:
- Damien Carbonne
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTextFileLocation(String systemId, int lineNumber, int columnNumber) -
Method Summary
Modifier and TypeMethodDescriptionstatic TextFileLocation.Builderbuilder()static TextFileLocationbooleanintintgetPath()getTag()inthashCode()Methods inherited from class cdc.issues.locations.AbstractLocation
toString
-
Field Details
-
TAG
- See Also:
-
-
Constructor Details
-
TextFileLocation
-
-
Method Details
-
create
-
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.
-
getSystemId
-
getLineNumber
public int getLineNumber() -
getColumnNumber
public int getColumnNumber() -
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractLocation
-
equals
- Overrides:
equalsin classAbstractLocation
-
builder
-