类 WorkbookReference
java.lang.Object
com.grapecity.documents.excel.expressions.WorkbookReference
Represents a reference to an external workbook. This class is immutable.
-
字段概要
-
构造器概要
-
方法概要
修饰符和类型方法说明boolean
equals
(WorkbookReference other) Check if the workbook reference equals to another.boolean
Check if the workbook reference equals to another.static WorkbookReference
FromFilePath
(String workbookFullPath) Creates a workbook reference from file path.static WorkbookReference
Creates a workbook reference from workbook name.static WorkbookReference
Creates a workbook reference from a URI link to workbook.The base directory that contains workbook.The base uri that contains workbook.int
getId()
Gets or sets the workbook id if the reference came from low-level storage of formulas.getName()
The name of the workbook.int
hashCode()
Gets hash code of the workbook reference.toString()
Converts workbook reference to string.
-
字段详细资料
-
SupportsReferenceId
public static final boolean SupportsReferenceId- 另请参阅:
-
-
构造器详细资料
-
WorkbookReference
public WorkbookReference()
-
-
方法详细资料
-
getBaseDirectory
The base directory that contains workbook. If the value is notnull
,Name
is the file name of workbook. If the value is empty, the path isthe root directory. -
getBaseUri
The base uri that contains workbook.
If the value is notnull
,Name
is the file name ofworkbook.
For example, the base uri of https://www.grapecity.com/file/example.xlsx is https://www.grapecity.com/file . The file name is example.xlsx . -
getName
The name of the workbook. If theBaseDirectory
is notnull
, represents the file name of the workbook. -
getId
public int getId()Gets or sets the workbook id if the reference came from low-level storage of formulas. The default value is 0, which means the current workbook. -
FromFilePath
Creates a workbook reference from file path.- 参数:
workbookFullPath
- The full path of workbook. It must be a valid filepath.- 返回:
- Workbook reference
-
FromUri
Creates a workbook reference from a URI link to workbook.- 参数:
uri
- A URI link to the workbook.- 返回:
-
FromName
Creates a workbook reference from workbook name.- 参数:
name
- The name of the workbook. It can be different from file name.- 返回:
- Workbook reference
-
equals
Check if the workbook reference equals to another. -
equals
Check if the workbook reference equals to another.- 参数:
other
- Another workbook reference- 返回:
- equality
-
hashCode
public int hashCode()Gets hash code of the workbook reference. -
toString
Converts workbook reference to string.
-