Package io.github.qishr.cascara.common.lang.type
Enum PrimitiveType
java.lang.Object
java.lang.Enum<io.github.qishr.cascara.common.lang.type.PrimitiveType>
io.github.qishr.cascara.common.lang.type.PrimitiveType
public final enum PrimitiveType
extends Enum<PrimitiveType>
Based on JSON Schema: core definitions and terminology §3.5
Enum Constants
| Enum Constant | Description |
|---|---|
| ANY | |
| ARRAY | |
| BOOLEAN | |
| INTEGER | |
| NUMBER | |
| NULL | |
| OBJECT | |
| STRING |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public static PrimitiveType[] | values() | |
| public static PrimitiveType | valueOf(String name) | |
| public static PrimitiveType | fromString(String type) | |
| public String | asString() | Return the JSON Schema type name |
| public static PrimitiveType | of(Object jvmType) |
Enum Constant Details
ANY
public static final ANY
ARRAY
public static final ARRAY
BOOLEAN
public static final BOOLEAN
INTEGER
public static final INTEGER
NUMBER
public static final NUMBER
NULL
public static final NULL
OBJECT
public static final OBJECT
STRING
public static final STRING
Method Details
values
public static PrimitiveType[] values()
valueOf
public static PrimitiveType valueOf(String name)
fromString
public static PrimitiveType fromString(String type)
asString
public String asString()
Return the JSON Schema type name
of
public static PrimitiveType of(Object jvmType)