Package io.vertx.mutiny.json.schema
Class JsonSchema
java.lang.Object
io.vertx.mutiny.json.schema.JsonSchema
- All Implemented Interfaces:
MutinyDelegate
A Json-Schema holder.
There are 2 kinds of Json-Schema's:
- JSON Object based
- Boolean based
This is a common interface to handle all kinds of schemas.
NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TypeArg<JsonSchema>
Predicate to filter out annotation keys.Predicate to filter out annotation keys. -
Constructor Summary
ConstructorsConstructorDescriptionJsonSchema
(io.vertx.json.schema.JsonSchema delegate) JsonSchema
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(String key) boolean
<R> R
<R> R
io.vertx.json.schema.JsonSchema
int
hashCode()
static JsonSchema
newInstance
(io.vertx.json.schema.JsonSchema arg) static JsonSchema
of
(boolean bool) static JsonSchema
of
(io.vertx.core.json.JsonObject json) static JsonSchema
io.vertx.core.json.JsonObject
resolve()
toString()
-
Field Details
-
__TYPE_ARG
-
EXCLUDE_ANNOTATIONS
Predicate to filter out annotation keys. -
EXCLUDE_ANNOTATION_ENTRIES
Predicate to filter out annotation keys.
-
-
Constructor Details
-
JsonSchema
public JsonSchema(io.vertx.json.schema.JsonSchema delegate) -
JsonSchema
-
-
Method Details
-
getDelegate
public io.vertx.json.schema.JsonSchema getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
of
- Parameters:
json
- a JSON Object.- Returns:
- a wrapper for the input object.
-
of
- Parameters:
id
- will force the given id as the schema $id.json
- a JSON Object.- Returns:
- a wrapper for the input object.
-
of
- Parameters:
bool
- a boolean.- Returns:
- a wrapper for the input object.
-
annotate
- Parameters:
key
- a keyvalue
- a value- Returns:
- the instance of JsonSchema to chain method calls.
-
get
- Parameters:
key
- a key- Returns:
- the value or
null
-
get
- Parameters:
key
- a keyfallback
- fallback when key is not present- Returns:
- the value or
null
-
containsKey
- Parameters:
key
- a key- Returns:
true
if present
-
fieldNames
- Returns:
- field names
-
resolve
public io.vertx.core.json.JsonObject resolve()- Returns:
- a new representing the schema with
$ref
s replaced by their value.
-
newInstance
-