public enum LinkType extends Enum<LinkType>
文件名:LinkType.java
用途: 用于枚举excel中可用的超链接类型
编码时间:2020年8月22日下午4:43:35
修改时间:2021年6月12日下午2:27:23
Enum Constant and Description |
---|
DOMCUMENT
表示文档内超链接
|
EMAIL
表示邮箱超链接
|
FILE
表示文件超链接
|
URL
表示网页超链接
|
Modifier and Type | Method and Description |
---|---|
short |
getCode()
用于返回枚举的编码
|
org.apache.poi.common.usermodel.HyperlinkType |
getHyperlinkType()
与枚举相关的关联的
HyperlinkType 枚举类对象 |
static LinkType |
getLinkType(short code)
用于根据枚举名称,识别枚举,并进行返回
|
String |
getName()
用于返回枚举的名称
|
static LinkType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LinkType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LinkType FILE
public static final LinkType URL
public static final LinkType EMAIL
public static final LinkType DOMCUMENT
public static LinkType[] values()
for (LinkType c : LinkType.values()) System.out.println(c);
public static LinkType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
public short getCode()
public org.apache.poi.common.usermodel.HyperlinkType getHyperlinkType()
HyperlinkType
枚举类对象HyperlinkType
枚举类对象public static LinkType getLinkType(short code)
若无法查到与之匹配的编码,则返回null
code
- 枚举值Copyright © 2024. All rights reserved.