com.atlassian.confluence.themes
Class PluginThemeStylesheet

java.lang.Object
  extended by com.atlassian.confluence.themes.PluginThemeStylesheet
All Implemented Interfaces:
ThemeStylesheet

public class PluginThemeStylesheet
extends Object
implements ThemeStylesheet

A theme stylesheet which is a resource in a plugin.


Constructor Summary
PluginThemeStylesheet(String completeModuleKey, ResourceDescriptor resourceDescriptor)
          Creates a theme stylesheet which refers to a resource in a dynamic plugin.
 
Method Summary
 String getCompleteModuleKey()
          Returns the plugin module key which this stylesheet belongs to, or the plugin key if the resource is specified at the plugin level.
 String getLocation()
          Returns the location of this stylesheet resource on the classpath of the Velocity classloader.
 String getName()
          Returns the name of the stylesheet resource.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PluginThemeStylesheet

public PluginThemeStylesheet(String completeModuleKey,
                             ResourceDescriptor resourceDescriptor)
Creates a theme stylesheet which refers to a resource in a dynamic plugin.

Parameters:
completeModuleKey - the key of the module or plugin which the stylesheet resource is in
resourceDescriptor - the resource descriptor for the stylesheet resource
Method Detail

getLocation

public String getLocation()
Description copied from interface: ThemeStylesheet
Returns the location of this stylesheet resource on the classpath of the Velocity classloader. Used to load it as a Velocity template using #parse() in the main stylesheet.

Specified by:
getLocation in interface ThemeStylesheet

getCompleteModuleKey

public String getCompleteModuleKey()
Description copied from interface: ThemeStylesheet
Returns the plugin module key which this stylesheet belongs to, or the plugin key if the resource is specified at the plugin level. Returns null if the stylesheet is not part of a plugin.

Specified by:
getCompleteModuleKey in interface ThemeStylesheet

getName

public String getName()
Description copied from interface: ThemeStylesheet
Returns the name of the stylesheet resource.

Specified by:
getName in interface ThemeStylesheet

toString

public String toString()
Overrides:
toString in class Object


Confluence is developed by Atlassian Pty Ltd.