com.atlassian.confluence.renderer.embedded
Interface EmbeddedResourceRenderer

All Known Implementing Classes:
AbstractEmbeddedResourceRenderer, EmbeddedAudioRenderer, EmbeddedFlashRenderer, EmbeddedMp4Renderer, EmbeddedQuickTimeRenderer, EmbeddedRealMediaRenderer, EmbeddedVideoRenderer, EmbeddedWindowsMediaRenderer

public interface EmbeddedResourceRenderer

Interface for embedded resource renderers. Used by the embedded-resource-renderer plugin module.


Method Summary
 boolean matchesType(EmbeddedObject resource)
          Returns true if the renderer matches the resource
 String renderResource(EmbeddedObject resource, com.atlassian.renderer.RenderContext context)
          Render the embedded resource to a string.
 

Method Detail

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


Copyright © 2003-2011 Atlassian. All Rights Reserved.