Enum Class Type
- All Implemented Interfaces:
Serializable
,Comparable<Type>
,Constable
The listing of pre-defined types in the
ModelManifest
.
Created by patricktwohig on 8/16/17.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
findByClass
(Class<?> cls) static Type
findByValue
(String value) Finds theType
instance by the value read from the underlying script.static Type
Returns the enum constant of this class with the specified name.static Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STRING
The string type. Generally expressed as aString
. -
NUMBER
The number type. Generally expressed as aDouble
or primitive Java double. -
INTEGER
The number type. Generally expressed as aInteger
or primitive Java double. -
BOOLEAN
The boolean type. Generally expressed as aBoolean
or primitive Java boolean. -
OBJECT
The object type. -
ARRAY
The array type.
-
-
Field Details
-
value
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
findByValue
Finds theType
instance by the value read from the underlying script.- Parameters:
value
- the value- Returns:
- the
Type
instance - Throws:
IllegalArgumentException
- if the type was not supported
-
findByClass
-