public enum LogicalType extends java.lang.Enum<LogicalType>
Class
or JavaType
).Enum Constant and Description |
---|
Array
Array types of other values.
|
Binary
Binary data such as
byte[] and ByteBuffer . |
Boolean
Boolean , boolean , AtomicBoolean . |
Collection
Collection values (and "Collection-like" for JVM
languages and datatype libraries with semantically similar types) |
DateTime
Date/time datatypes such as
Date , Calendar . |
Enum
Various
Enum types. |
Float
Basic floating-point numbers types like
short , int , long
and matching wrapper types, BigInteger . |
Integer
Basic integral numbers types like
short , int , long
and matching wrapper types, BigInteger . |
Map
Map values (and "Map-like" for JVM
languages and datatype libraries with semantically similar types) |
OtherScalar
Scalar types other than ones listed above: includes types like
URL
and UUID . |
POJO
Types that are handled by default "set of key/value pairs" serialization,
also known as "Beans".
|
Textual
Purely textual types,
String and similar (but not types that
are generally expressed as Strings in input). |
Untyped
"Non-type", Type used to contained untyped, free-form content: maybe
a "Tree" (sometimes called "AST"), or buffer of some kind,
or even just nominal type of
Object |
Modifier and Type | Method and Description |
---|---|
static LogicalType |
fromClass(java.lang.Class<?> raw,
LogicalType defaultIfNotRecognized)
Helper method to use for figuring out logical type from physical type,
in cases where caller wants a guess.
|
static LogicalType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LogicalType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LogicalType Array
Note: excludes binary type byte[]
.
public static final LogicalType Collection
Collection
values (and "Collection-like" for JVM
languages and datatype libraries with semantically similar types)public static final LogicalType Map
Map
values (and "Map-like" for JVM
languages and datatype libraries with semantically similar types)public static final LogicalType POJO
In addition to user-defined types, also includes JDK types like:
Throwable
public static final LogicalType Untyped
Object
public static final LogicalType Integer
short
, int
, long
and matching wrapper types, BigInteger
.public static final LogicalType Float
short
, int
, long
and matching wrapper types, BigInteger
.public static final LogicalType Boolean
Boolean
, boolean
, AtomicBoolean
.public static final LogicalType Enum
Enum
types.public static final LogicalType Textual
String
and similar (but not types that
are generally expressed as Strings in input).public static final LogicalType Binary
byte[]
and ByteBuffer
.public static final LogicalType DateTime
Date
, Calendar
.public static final LogicalType OtherScalar
URL
and UUID
.public static LogicalType[] values()
for (LogicalType c : LogicalType.values()) System.out.println(c);
public static LogicalType 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 LogicalType fromClass(java.lang.Class<?> raw, LogicalType defaultIfNotRecognized)
Collection
,
Map
and Enum
cases; but not
more specific types (for example datatype-provided extension types).raw
- Type-erased class to classifydefaultIfNotRecognized
- if no type recognized, value to return
(for example, null
)Copyright © 2010 - 2023 Adobe. All Rights Reserved