Class ElementJsonPostProcessor

  • All Implemented Interfaces:
    io.gsonfire.PostProcessor<Element>

    @Singleton
    public class ElementJsonPostProcessor
    extends Object
    implements io.gsonfire.PostProcessor<Element>
    This enriches the scenarios with feature information and adds a feature index to every feature.
    • Method Detail

      • postDeserialize

        public void postDeserialize​(Element element,
                                    com.google.gson.JsonElement jsonElement,
                                    com.google.gson.Gson gson)
        This processes attachments and adds the toggle to fail on pending or undefined steps to each scenario.
        Specified by:
        postDeserialize in interface io.gsonfire.PostProcessor<Element>
        Parameters:
        element - The current scenario.
        jsonElement - The current JSON being processed (not used).
        gson - The Gson instance for JSON processing.
      • postSerialize

        public void postSerialize​(com.google.gson.JsonElement jsonElement,
                                  Element element,
                                  com.google.gson.Gson gson)
        Unused method.
        Specified by:
        postSerialize in interface io.gsonfire.PostProcessor<Element>
        Parameters:
        jsonElement - The current JSON element
        element - The current scenario.
        gson - The Gson instance for JSON processing.