public enum OpenAPIDataType extends Enum<OpenAPIDataType>
DataType
for data entry on the UI.Enum Constant and Description |
---|
ARRAY |
BOOLEAN |
INTEGER |
NUMBER |
OBJECT |
STRING |
Modifier and Type | Method and Description |
---|---|
DataType |
getBrowseFieldType()
Returns the corresponding browse
DataType field available for a corresponding OpenAPI Data Type |
boolean |
isSimpleType()
Determines if the OpenAPI Data type is a simple, unstructured primitive data type.
|
static OpenAPIDataType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OpenAPIDataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OpenAPIDataType STRING
public static final OpenAPIDataType NUMBER
public static final OpenAPIDataType INTEGER
public static final OpenAPIDataType BOOLEAN
public static final OpenAPIDataType ARRAY
public static final OpenAPIDataType OBJECT
public static OpenAPIDataType[] values()
for (OpenAPIDataType c : OpenAPIDataType.values()) System.out.println(c);
public static OpenAPIDataType 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 DataType getBrowseFieldType()
DataType
field available for a corresponding OpenAPI Data Typepublic boolean isSimpleType()