Package cdc.issues.locations
Class WorkbookLocation
java.lang.Object
cdc.issues.locations.AbstractLocation
cdc.issues.locations.WorkbookLocation
- All Implemented Interfaces:
Location,Comparable<Location>
Implementation of Location dedicated to workbooks.
Note: A valid row number is
It can be used to designate:
- A workbook: (systemId),
- A sheet: (systemId, sheetName),
- A column: (systemId, sheetName, columnName),
- A row: (systemId, sheetName, rowNumber) or (systemId, sheetName, rowId),
- Or a cell: (systemId, sheetName, columnName, rowNumber) or (systemId, sheetName, columnName, rowId).
Note: A valid row number is
> 0.- Author:
- Damien Carbonne
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WorkbookLocation.Builderbuilder()static WorkbookLocationbooleangetPath()getRowId()intgetTag()booleaninthashCode()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanMethods inherited from class cdc.issues.locations.AbstractLocation
toString
-
Field Details
-
TAG
- See Also:
-
-
Constructor Details
-
WorkbookLocation
-
-
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
- Returns:
- The system id of this location.
-
getSheetName
- Returns:
- The sheet name, possibly
null, of this location.
-
getRowNumber
public int getRowNumber()- Returns:
- The row number, possibly
<= 0, of this location.
-
getRowId
- Returns:
- The row id, possibly
null, of this location.
-
getColumnName
- Returns:
- The column name, possibly
null, of this location.
-
hasSheetData
public boolean hasSheetData()- Returns:
trueif this location contains sheet data.
-
hasRowNumberData
public boolean hasRowNumberData()- Returns:
trueif this location contains row number data.
-
hasRowIdData
public boolean hasRowIdData()- Returns:
trueif this location contains row id data.
-
hasRowData
public boolean hasRowData()- Returns:
trueif this location contains row data.
-
hasColumnData
public boolean hasColumnData()- Returns:
trueif this location contains column data.
-
isWorkbookLocation
public boolean isWorkbookLocation()- Returns:
trueif this location designates a workbook.
-
isSheetLocation
public boolean isSheetLocation()- Returns:
trueif this location designates a sheet.
-
isColumnLocation
public boolean isColumnLocation()- Returns:
trueif this location designates a column.
-
isRowLocation
public boolean isRowLocation()- Returns:
trueif this location designates a row.
-
isCellLocation
public boolean isCellLocation()- Returns:
trueif this location designates a cell.
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractLocation
-
equals
- Overrides:
equalsin classAbstractLocation
-
builder
-