Enum Constant and Description |
---|
CURRENCY |
DATE |
ENUMERATION |
NONCURRENCY |
PERCENTAGE |
TEXT |
TRANSIENT_TEXT |
UNSPECIFIED |
Modifier and Type | Method and Description |
---|---|
static DataType |
fromString(java.lang.String displayName)
Returns an instance of the enum with the specified display name.
|
static DataType |
getDataType(int dataType)
Returns an instance of the enum with the specified type.
|
java.lang.String |
getDisplayName()
Returns the name of this enum constant, as contained in the
declaration.
|
int |
getIntDataType()
Returns the integer type of this enum constant, as contained in the
declaration.
|
java.lang.String |
toString()
Returns the display name of this enum constant, as contained in the
declaration.
|
static DataType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataType CURRENCY
public static final DataType DATE
public static final DataType ENUMERATION
public static final DataType NONCURRENCY
public static final DataType PERCENTAGE
public static final DataType TEXT
public static final DataType TRANSIENT_TEXT
public static final DataType UNSPECIFIED
public static DataType fromString(java.lang.String displayName)
displayName
- user friendly namepublic static DataType getDataType(int dataType)
dataType
- data typepublic java.lang.String getDisplayName()
public int getIntDataType()
public java.lang.String toString()
toString
in class java.lang.Enum<DataType>
public static DataType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static DataType[] values()
for (DataType c : DataType.values()) System.out.println(c);
Copyright © 2017, 2025, Oracle and/or its affiliates. All rights reserved.