Class EntityJsonReader<EntityType>

    • Constructor Detail

      • EntityJsonReader

        public EntityJsonReader​(String entityType)
        Parameters:
        entityType - The expected "entity-type" property in the json.
    • Method Detail

      • read

        public final EntityType read​(com.fasterxml.jackson.databind.JsonNode jn)
                              throws IOException
        Description copied from class: AbstractJsonReader
        Implement this method, read the entity data in the provided JsonNode and return corresponding java object.
        Specified by:
        read in class AbstractJsonReader<EntityType>
        Parameters:
        jn - A ready to use JsonNode.
        Returns:
        The unmarshalled entity.
        Throws:
        IOException
      • readEntity

        protected abstract EntityType readEntity​(com.fasterxml.jackson.databind.JsonNode jn)
                                          throws IOException
        Implement this method to read the entity.
        Parameters:
        jn - A JsonNode pointing at the root of the json input.
        Returns:
        The parsed entity.
        Throws:
        IOException
        Since:
        7.2