Package io.vertx.mutiny.json.schema
Class JsonFormatValidator
- java.lang.Object
-
- io.vertx.mutiny.json.schema.JsonFormatValidator
-
public class JsonFormatValidator extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<JsonFormatValidator>
__TYPE_ARG
static JsonFormatValidator
DEFAULT_VALIDATOR
The default validator which performs a NOOP.
-
Constructor Summary
Constructors Constructor Description JsonFormatValidator(io.vertx.json.schema.JsonFormatValidator delegate)
JsonFormatValidator(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
io.vertx.json.schema.JsonFormatValidator
getDelegate()
int
hashCode()
static JsonFormatValidator
newInstance(io.vertx.json.schema.JsonFormatValidator arg)
String
toString()
String
validateFormat(String instanceType, String format, Object instance)
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<JsonFormatValidator> __TYPE_ARG
-
DEFAULT_VALIDATOR
public static final JsonFormatValidator DEFAULT_VALIDATOR
The default validator which performs a NOOP.
-
-
Constructor Detail
-
JsonFormatValidator
public JsonFormatValidator(io.vertx.json.schema.JsonFormatValidator delegate)
-
JsonFormatValidator
public JsonFormatValidator(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.json.schema.JsonFormatValidator getDelegate()
-
validateFormat
public String validateFormat(String instanceType, String format, Object instance)
- Parameters:
instanceType
- The type of the related instanceformat
- The format specified in the schema for the current object instance.instance
- The current object instance that is currently being validated.- Returns:
- Any string if there are any format validation errors, null if there are no validation errors.
-
newInstance
public static JsonFormatValidator newInstance(io.vertx.json.schema.JsonFormatValidator arg)
-
-