@Deprecated public class Schema extends Object implements io.vertx.lang.rx.RxDelegate
A schema could have two states:
NoSyncValidationException
To check the schema state you can use method . Note that invoking validateAsync(java.lang.Object)
generally doesn't have any additional overhead than invoking validateSync(java.lang.Object)
.
The schema can mutate the state in time, e.g. if you have a schema that is asynchronous because of a $ref
,
after the first validation the external schema is cached inside SchemaRouter
and this schema will switch to synchronous state
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<Schema> |
__TYPE_ARG
Deprecated.
|
Constructor and Description |
---|
Schema(Object delegate)
Deprecated.
|
Schema(Schema delegate)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Deprecated.
|
Schema |
getDelegate()
Deprecated.
|
Object |
getJson()
Deprecated.
|
JsonPointer |
getScope()
Deprecated.
|
int |
hashCode()
Deprecated.
|
boolean |
isSync()
Deprecated.
|
static Schema |
newInstance(Schema arg)
Deprecated.
|
String |
toString()
Deprecated.
|
Future<Void> |
validateAsync(Object json)
Deprecated.
|
void |
validateSync(Object json)
Deprecated.
|
public static final io.vertx.lang.rx.TypeArg<Schema> __TYPE_ARG
public Schema(Schema delegate)
public Schema(Object delegate)
public Schema getDelegate()
getDelegate
in interface io.vertx.lang.rx.RxDelegate
@Deprecated public Future<Void> validateAsync(Object json)
Note: If the schema is synchronous, this method will call internally
json
- input to validateValidationException
if json doesn't match the schema, otherwise a succeeded future.@Deprecated public void validateSync(Object json)
ValidationException
if json doesn't match the schema.json
- input to validate@Deprecated public JsonPointer getScope()
@Deprecated public Object getJson()
@Deprecated public boolean isSync()
Copyright © 2025 Eclipse. All rights reserved.