public enum ValueType extends Enum<ValueType> implements OdfDataType
Enum Constant and Description |
---|
BOOLEAN |
CURRENCY |
DATE |
FLOAT |
PERCENTAGE |
STRING |
TIME |
Modifier and Type | Method and Description |
---|---|
static ValueType |
enumValueOf(String stringValue)
String to enum, turns a String into its corresponding enum constant
|
static boolean |
isValid(String stringValue)
check if the specified String is a valid valueType data type
|
String |
toString()
gets the name of this enum.
|
static String |
toString(ValueType aEnum)
enum to String, gets the name of this enum constant as a string.
|
static ValueType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ValueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValueType STRING
public static final ValueType TIME
public static final ValueType CURRENCY
public static final ValueType FLOAT
public static final ValueType DATE
public static final ValueType BOOLEAN
public static final ValueType PERCENTAGE
public static ValueType[] values()
for (ValueType c : ValueType.values()) System.out.println(c);
public static ValueType 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 toString()
public static String toString(ValueType aEnum)
aEnum
- the constant of ValueTypepublic static ValueType enumValueOf(String stringValue)
stringValue
- the name of ValueTypeCopyright © 2008–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.