Interface ConfluenceResourceBuilder<T extends ConfluenceResource>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T fromJson​(org.json.simple.JSONObject jsonDocument)
      Creates a T instance from a JSON representation
      T fromJson​(org.json.simple.JSONObject jsonDocument, T document)
      Populates the given T instance from a JSON representation and return it
      java.lang.Class<T> getType()
      Returns the Class of the resource that can be built
    • Method Detail

      • fromJson

        T fromJson​(org.json.simple.JSONObject jsonDocument)

        Creates a T instance from a JSON representation

        Parameters:
        jsonDocument -
        Returns:
        T instance
      • fromJson

        T fromJson​(org.json.simple.JSONObject jsonDocument,
                   T document)

        Populates the given T instance from a JSON representation and return it

        Parameters:
        jsonDocument -
        Returns:
        T instance
      • getType

        java.lang.Class<T> getType()

        Returns the Class of the resource that can be built

        Returns:
        the type Class of the resource which can be built by this builder