public class BooleanValidator extends Object
| Modifier and Type | Method and Description |
|---|---|
static com.google.gson.JsonPrimitive |
validateBoolean(com.google.gson.JsonObject inputObject,
String value)
Validate a boolean string according to a given schema.
|
public static com.google.gson.JsonPrimitive validateBoolean(com.google.gson.JsonObject inputObject,
String value)
throws ValidatorException,
ParserException
inputObject - json schema.value - boolean string.ValidatorException - exception occurs in validation.ParserException - exception occurs when parsing.Copyright © 2005–2023 Apache Software Foundation. All rights reserved.