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

    Modifier and Type
    Method
    Description
    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 given root, unless it is already present.
    element(int index)
     

    Methods inherited from interface org.hibernate.search.backend.elasticsearch.gson.impl.JsonAccessor

    get, getOrCreate, set
  • Method Details

    • 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 given root, 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.