public class Validator extends Object
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<Validator> |
__TYPE_ARG |
Constructor and Description |
---|
Validator(Object delegate) |
Validator(io.vertx.json.schema.Validator delegate) |
Modifier and Type | Method and Description |
---|---|
static Validator |
create(JsonSchema schema,
io.vertx.json.schema.JsonSchemaOptions options)
Creates a new validator with some initial schema and options.
|
boolean |
equals(Object o) |
io.vertx.json.schema.Validator |
getDelegate() |
int |
hashCode() |
static Validator |
newInstance(io.vertx.json.schema.Validator arg) |
String |
toString() |
io.vertx.json.schema.OutputUnit |
validate(Object instance)
Validate a given input against the initial schema
|
public Validator(io.vertx.json.schema.Validator delegate)
public Validator(Object delegate)
public io.vertx.json.schema.Validator getDelegate()
public static Validator create(JsonSchema schema, io.vertx.json.schema.JsonSchemaOptions options)
schema
- the initial schemaoptions
- the validator optionspublic io.vertx.json.schema.OutputUnit validate(Object instance)
instance
- instance to validatepublic static Validator newInstance(io.vertx.json.schema.Validator arg)
Copyright © 2022 Eclipse. All rights reserved.