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 row can either be designated using a number or a functional id, but not using both solutions.
Note: A valid row number is
It can be used to designate:
- A workbook:
tag::systemId, - A sheet:
tag::systemId::sheetName, - A column:
tag::systemId::sheetName[columnName], - A row:
tag::systemId::sheetName[:rowNumber]ortag::systemId::sheetName[:rowId], - Or a cell:
tag::systemId::sheetName[columnName:rowNumber]ortag::systemId::sheetName[columnName:rowId].
rowId part should (not mandatory) be encoded as key1=value1,key2=value2,...Note: A row can either be designated using a number or a functional id, but not using both solutions.
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
-