org.dromara.hutool.poi.excel.sax.ElementName Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hutool-poi Show documentation
Show all versions of hutool-poi Show documentation
Hutool POI工具类(对Office文档、OFD等操作)
/*
* Copyright (c) 2023 looly([email protected])
* Hutool is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* https://license.coscl.org.cn/MulanPSL2
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PSL v2 for more details.
*/
package org.dromara.hutool.poi.excel.sax;
/**
* 标签名枚举
*
* @author looly
* @since 5.3.6
*/
public enum ElementName {
/**
* 行标签名,表示一行
*/
row,
/**
* Cell单元格标签名,表示一个单元格
*/
c,
/**
* Value单元格值的标签,表示单元格内的值
*/
v,
/**
* Formula公式,表示一个存放公式的单元格
*/
f;
/**
* 给定标签名是否匹配当前标签
*
* @param elementName 标签名
* @return 是否匹配
*/
public boolean match(final String elementName){
return this.name().equals(elementName);
}
/**
* 解析支持的节点名枚举
* @param elementName 节点名
* @return 节点名枚举
*/
public static ElementName of(final String elementName){
try {
return valueOf(elementName);
} catch (final Exception ignore){
}
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy