Enum DataStyleElement.TokenType
- java.lang.Object
-
- java.lang.Enum<DataStyleElement.TokenType>
-
- org.odftoolkit.odfdom.dom.element.number.DataStyleElement.TokenType
-
- All Implemented Interfaces:
Serializable
,Comparable<DataStyleElement.TokenType>
- Enclosing class:
- DataStyleElement
public static enum DataStyleElement.TokenType extends Enum<DataStyleElement.TokenType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description TOKEN_COLOR
TOKEN_CURRENCY
TOKEN_NUMBER
TOKEN_TEXT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataStyleElement.TokenType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DataStyleElement.TokenType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TOKEN_TEXT
public static final DataStyleElement.TokenType TOKEN_TEXT
-
TOKEN_NUMBER
public static final DataStyleElement.TokenType TOKEN_NUMBER
-
TOKEN_COLOR
public static final DataStyleElement.TokenType TOKEN_COLOR
-
TOKEN_CURRENCY
public static final DataStyleElement.TokenType TOKEN_CURRENCY
-
-
Method Detail
-
values
public static DataStyleElement.TokenType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DataStyleElement.TokenType c : DataStyleElement.TokenType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataStyleElement.TokenType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-