Interface IEntityDeserializationStateHolder


@Deprecated public interface IEntityDeserializationStateHolder
Deprecated.
State holder for setting and retrieving data, used by IEntityDeserializationExtension. The state's lifecycle is tied to the entity being serialized. In particular, state set in handlePreFieldDeserializationHook will be available in handlePostEntityDeserializationHook.
Since:
8.3.0
Author:
XIMA MEDIA GmbH
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String key)
    Deprecated.
    Gets the value associated with the given key.
    <T> T
    get(String key, Class<T> type)
    Deprecated.
    Gets the value associated with the given key, cast to the given type.
    void
    put(String key, Object value)
    Deprecated.
    Associates the given value with the given key.
    void
    Deprecated.
    Removes the association with the given key.
  • Method Details

    • get

      Object get(String key)
      Deprecated.
      Gets the value associated with the given key.
      Parameters:
      key - The key to look up.
      Returns:
      The value associated with the key, or null if no value is associated with the key.
    • get

      <T> T get(String key, Class<T> type)
      Deprecated.
      Gets the value associated with the given key, cast to the given type. Returns null when the value is of the wrong type or no value is associated with the key.
      Type Parameters:
      T - The type to cast the value to.
      Parameters:
      key - The key to look up.
      type - The type to cast the value to.
      Returns:
      The value associated with the key, or null if no value is associated with the key or the value is of the wrong type.
    • put

      void put(String key, Object value)
      Deprecated.
      Associates the given value with the given key. Removes the association if the value is null.
      Parameters:
      key - The key to associate the value with.
      value - The value to associate with the key.
    • remove

      void remove(String key)
      Deprecated.
      Removes the association with the given key.
      Parameters:
      key - The key to remove the association for.