public class NumericValidator
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static com.google.gson.JsonPrimitive |
validateNumeric(com.google.gson.JsonObject inputObject,
java.lang.String value)
Take JSON schema, number as a string input and validate.
|
public static com.google.gson.JsonPrimitive validateNumeric(com.google.gson.JsonObject inputObject,
java.lang.String value)
throws ParserException,
ValidatorException
inputObject - JSON schema.value - numeric valueParserException - Exception occurred in data type conversions.ValidatorException - Exception occurred in schema validations.Copyright © 2005-2021 Apache Software Foundation. All Rights Reserved.