Enum Class AttributeName

java.lang.Object
java.lang.Enum<AttributeName>
org.aoju.bus.office.excel.sax.AttributeName
All Implemented Interfaces:
Serializable, Comparable<AttributeName>, Constable

public enum AttributeName extends Enum<AttributeName>
Excel的XML中属性名枚举
Since:
Java 17+
Author:
Kimi Liu
  • Enum Constant Details

    • r

      public static final AttributeName r
      行列号属性,行标签下此为行号属性名,cell标签下下为列号属性名
    • s

      public static final AttributeName s
      ST(StylesTable) 的索引,样式index,用于获取行或单元格样式
    • t

      public static final AttributeName t
      Type类型,单元格类型属性,见CellDataType
  • Method Details

    • values

      public static AttributeName[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AttributeName valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • match

      public boolean match(String attributeName)
      是否匹配给定属性
      Parameters:
      attributeName - 属性
      Returns:
      是否匹配
    • getValue

      public String getValue(Attributes attributes)
      从属性里列表中获取对应属性值
      Parameters:
      attributes - 属性列表
      Returns:
      属性值