public static final class Type.BuiltinType extends ApiEnumeration<Type.BuiltinType>
BuiltinType
enumeration class provides enumeration constant for each
of the built-in types present in the interface definition language type system.
Modifier and Type | Class and Description |
---|---|
static class |
Type.BuiltinType.Values
Native Java
enum representing this enumeration class. |
Modifier and Type | Field and Description |
---|---|
static Type.BuiltinType |
ANY_ERROR
The built-in type is an arbitrary exception type.
|
static Type.BuiltinType |
BINARY
The built-in type is a binary.
|
static Type.BuiltinType |
BOOLEAN
The built-in type is a boolean.
|
static Type.BuiltinType |
DATE_TIME
The built-in type is a datetime.
|
static Type.BuiltinType |
DOUBLE
The built-in type is a double.
|
static Type.BuiltinType |
DYNAMIC_STRUCTURE
The built-in type is a dynamic structure.
|
static Type.BuiltinType |
ID
The built-in type is an ID.
|
static Type.BuiltinType |
LONG
The built-in type is a long.
|
static Type.BuiltinType |
OPAQUE
The built-in type is an opaque.
|
static Type.BuiltinType |
SECRET
The built-in type is a secret.
|
static Type.BuiltinType |
STRING
The built-in type is a string.
|
static Type.BuiltinType |
URI
The built-in type is an URI.
|
static Type.BuiltinType |
VOID
The built-in type is a void.
|
Modifier and Type | Method and Description |
---|---|
Type.BuiltinType.Values |
getEnumValue()
Returns a native Java
enum constant representing this enumeration
constant. |
boolean |
isUnknown()
Checks if this enumeration constant is unknown.
|
static Type.BuiltinType |
valueOf(java.lang.String name)
Returns the enumeration constant for the specified name.
|
static Type.BuiltinType[] |
values()
Retrieve all enumeration constants pre-defined by this enumeration class.
|
buildNameMap, equals, hashCode, name, toString
public static final Type.BuiltinType VOID
null
.public static final Type.BuiltinType BOOLEAN
public static final Type.BuiltinType LONG
public static final Type.BuiltinType DOUBLE
public static final Type.BuiltinType STRING
public static final Type.BuiltinType BINARY
public static final Type.BuiltinType SECRET
public static final Type.BuiltinType DATE_TIME
public static final Type.BuiltinType ID
public static final Type.BuiltinType URI
public static final Type.BuiltinType ANY_ERROR
public static final Type.BuiltinType DYNAMIC_STRUCTURE
public static final Type.BuiltinType OPAQUE
public static Type.BuiltinType[] values()
Additional instances might exist at runtime, for example to represent a
new constant added to this enumeration class in subsequent version of the
API. Such new constant is represented as instance of Type.BuiltinType
but is not pre-defined.
null
.public static Type.BuiltinType valueOf(java.lang.String name)
If the name matches exactly the identifier used to declare an enumeration constant from this enumeration class, the constant in question will be returned.
Otherwise, a new instance of Type.BuiltinType
will be returned for the
specified name, which will not be one of the pre-defined constant
instances. Such new instance maps to the Type.BuiltinType.Values._UNKNOWN
enum
constant from the native Java enum
.
name
- The name of the constant to return. Must not be null
.null
.public boolean isUnknown()
valueOf(java.lang.String)
and values()
.true
if this constant is unknown, and false
otherwise.public Type.BuiltinType.Values getEnumValue()
enum
constant representing this enumeration
constant. The result is useful for usual handling of Java enum
,
for example it can be used in switch
statements.
If this enumeration constant is unknown, then Type.BuiltinType.Values._UNKNOWN
enum
constant is returned.
The native Java enum
is Type.BuiltinType.Values
.
enum
constant. Never null
.