public class NumericValidator extends Object
Modifier and Type | Method and Description |
---|---|
static com.google.gson.JsonPrimitive |
validateNumeric(com.google.gson.JsonObject inputObject,
String value)
Take JSON schema, number as a string input and validate.
|
public static com.google.gson.JsonPrimitive validateNumeric(com.google.gson.JsonObject inputObject, 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–2020 Apache Software Foundation. All rights reserved.