public class ExcelHyperlink extends Object
| Constructor and Description |
|---|
ExcelHyperlink(ExcelHyperlinkType type,
String location)
Creates a new ExcelHyperlink with the specified type and location.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static FieldLocationPredicate |
fieldHasHyperlink()
Creates a field location predicate that matches fields containing an ExcelHyperlink in their metadata.
|
static ExcelHyperlink |
forCell(String sheetName,
int columnIndex,
int rowIndex)
Creates a hyperlink to another cell in the same Excel workbook.
|
static ExcelHyperlink |
forEmail(String email)
Creates a hyperlink to an email address.
|
static ExcelHyperlink |
forFile(String fileUri)
Creates a hyperlink to a file.
|
static ExcelHyperlink |
forUrl(String url)
Creates a hyperlink to a URL.
|
String |
getLocation()
Gets the location/address of this hyperlink.
|
ExcelHyperlinkType |
getType()
Gets the type of this hyperlink.
|
int |
hashCode() |
String |
toString() |
public ExcelHyperlink(ExcelHyperlinkType type, String location)
type - the type of hyperlinklocation - the hyperlink location/addresspublic static ExcelHyperlink forCell(String sheetName, int columnIndex, int rowIndex)
sheetName - the name of the sheet containing the target cellcolumnIndex - the zero-based column index of the target cellrowIndex - the zero-based row index of the target cellDataException - if sheetName is null or empty, or if columnIndex or rowIndex is negativepublic static ExcelHyperlink forEmail(String email)
email - the email addressDataException - if email is null or emptypublic static ExcelHyperlink forUrl(String url)
url - the URLDataException - if url is null or emptypublic static ExcelHyperlink forFile(String fileUri)
fileUri - the file URIDataException - if fileUri is null or emptypublic static FieldLocationPredicate fieldHasHyperlink()
public ExcelHyperlinkType getType()
public String getLocation()
Copyright (c) 2006-2026 North Concepts Inc. All Rights Reserved.