Interface JsonArrayAccessor
-
- All Superinterfaces:
JsonAccessor<com.google.gson.JsonArray>
- All Known Implementing Classes:
JsonArrayAccessorImpl
public interface JsonArrayAccessor extends JsonAccessor<com.google.gson.JsonArray>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddElementIfAbsent(com.google.gson.JsonObject root, com.google.gson.JsonElement newValue)Add the given JsonElement to the array this accessor points to for the givenroot, unless it is already present.UnknownTypeJsonAccessorelement(int index)-
Methods inherited from interface org.hibernate.search.backend.elasticsearch.gson.impl.JsonAccessor
get, getOrCreate, set
-
-
-
-
Method Detail
-
element
UnknownTypeJsonAccessor element(int index)
-
addElementIfAbsent
void addElementIfAbsent(com.google.gson.JsonObject root, com.google.gson.JsonElement newValue)Add the given JsonElement to the array this accessor points to for the givenroot, unless it is already present.- Parameters:
root- The root to be accessed.newValue- The value to add.- Throws:
UnexpectedJsonElementTypeException- If an element in the path has unexpected type, preventing write access to the array this accessor points to.
-
-