public class ArrayValidator
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static com.google.gson.JsonArray |
validateArray(java.util.Map.Entry<java.lang.String,com.google.gson.JsonElement> input,
com.google.gson.JsonObject schema)
This method will validates an input array according to a given schema.
|
public static com.google.gson.JsonArray validateArray(java.util.Map.Entry<java.lang.String,com.google.gson.JsonElement> input,
com.google.gson.JsonObject schema)
throws ValidatorException,
ParserException
input - input array as a Map.schema - JSON schema as an object.ValidatorException - Exception occurs in validation process.ParserException - Exception occurs in data type parsing.Copyright © 2005-2021 Apache Software Foundation. All Rights Reserved.