Package io.github.qishr.cascara.schema
Enum SchemaType
java.lang.Object
java.lang.Enum<io.github.qishr.cascara.schema.SchemaType>
io.github.qishr.cascara.schema.SchemaType
public final enum SchemaType
extends Enum<SchemaType>
Enum Constants
| Enum Constant | Description |
|---|---|
| ANY | |
| STRING | |
| BOOLEAN | |
| INTEGER | |
| NUMBER | |
| OBJECT | |
| ARRAY | |
| NULL |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public static SchemaType[] | values() | |
| public static SchemaType | valueOf(String name) | |
| public static SchemaType | fromString(String type) | |
| public String | asString() | Return the JSON Schema type name |
Enum Constant Details
ANY
public static final ANY
STRING
public static final STRING
BOOLEAN
public static final BOOLEAN
INTEGER
public static final INTEGER
NUMBER
public static final NUMBER
OBJECT
public static final OBJECT
ARRAY
public static final ARRAY
NULL
public static final NULL
Method Details
values
public static SchemaType[] values()
valueOf
public static SchemaType valueOf(String name)
fromString
public static SchemaType fromString(String type)
asString
public String asString()
Return the JSON Schema type name