Interface EmbeddedResourceRenderer


public interface EmbeddedResourceRenderer
Interface for embedded resource renderers. Used by the embedded-resource-renderer plugin module.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the renderer matches the resource
    renderResource(EmbeddedObject resource, com.atlassian.renderer.RenderContext context)
    Render the embedded resource to a string.
  • Method Details

    • renderResource

      String renderResource(EmbeddedObject resource, com.atlassian.renderer.RenderContext context)
      Render the embedded resource to a string.
      Parameters:
      resource - to be rendered
      context - of render
      Returns:
      html source for the object element
    • matchesType

      boolean matchesType(EmbeddedObject resource)
      Returns true if the renderer matches the resource
      Parameters:
      resource - the resource to match
      Returns:
      true if the resource matches