public class Validator extends Object implements io.vertx.lang.rx.RxDelegate
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<Validator> |
__TYPE_ARG |
Constructor and Description |
---|
Validator(Object delegate) |
Validator(Validator delegate) |
Modifier and Type | Method and Description |
---|---|
static Validator |
create(JsonSchema schema,
JsonSchemaOptions options)
Creates a new validator with some initial schema and options.
|
static Validator |
create(JsonSchema schema,
JsonSchemaOptions options,
JsonFormatValidator jsonFormatValidator)
Creates a new validator with some initial schema, options and a custom JSON format validator.
|
boolean |
equals(Object o) |
Validator |
getDelegate() |
int |
hashCode() |
static Validator |
newInstance(Validator arg) |
String |
toString() |
OutputUnit |
validate(Object instance)
Validate a given input against the initial schema.
|
public static final io.vertx.lang.rx.TypeArg<Validator> __TYPE_ARG
public Validator(Validator delegate)
public Validator(Object delegate)
public Validator getDelegate()
getDelegate
in interface io.vertx.lang.rx.RxDelegate
public static Validator create(JsonSchema schema, JsonSchemaOptions options)
When validation is to be reused, it is recommended to create a SchemaRepository
instance and use the
SchemaRepository.validator(io.vertx.rxjava.json.schema.JsonSchema)
} method. The use of a String
key allows avoiding re-parsing
and fast lookups.
schema
- the initial schemaoptions
- the validator optionspublic static Validator create(JsonSchema schema, JsonSchemaOptions options, JsonFormatValidator jsonFormatValidator)
SchemaRepository
instance and use the
SchemaRepository.validator(io.vertx.rxjava.json.schema.JsonSchema)
} method. The use of a String
key allows avoiding re-parsing
and fast lookups.schema
- the initial schemaoptions
- the validator optionsjsonFormatValidator
- the custom JSON format validatorpublic OutputUnit validate(Object instance)
instance
- instance to validateCopyright © 2025 Eclipse. All rights reserved.