Enum DataStyleElement.NumberFormatType
- java.lang.Object
-
- java.lang.Enum<DataStyleElement.NumberFormatType>
-
- org.odftoolkit.odfdom.dom.element.number.DataStyleElement.NumberFormatType
-
- All Implemented Interfaces:
Serializable
,Comparable<DataStyleElement.NumberFormatType>
- Enclosing class:
- DataStyleElement
public static enum DataStyleElement.NumberFormatType extends Enum<DataStyleElement.NumberFormatType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FORMAT_CURRENCY
FORMAT_DATE
FORMAT_NUMBER
FORMAT_PERCENT
FORMAT_TEXT
FORMAT_TIME
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataStyleElement.NumberFormatType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DataStyleElement.NumberFormatType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FORMAT_CURRENCY
public static final DataStyleElement.NumberFormatType FORMAT_CURRENCY
-
FORMAT_TEXT
public static final DataStyleElement.NumberFormatType FORMAT_TEXT
-
FORMAT_PERCENT
public static final DataStyleElement.NumberFormatType FORMAT_PERCENT
-
FORMAT_DATE
public static final DataStyleElement.NumberFormatType FORMAT_DATE
-
FORMAT_TIME
public static final DataStyleElement.NumberFormatType FORMAT_TIME
-
FORMAT_NUMBER
public static final DataStyleElement.NumberFormatType FORMAT_NUMBER
-
-
Method Detail
-
values
public static DataStyleElement.NumberFormatType[] 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.NumberFormatType c : DataStyleElement.NumberFormatType.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.NumberFormatType 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
-
-