Package org.opencms.jsp.util
Class CmsTemplatePluginWrapper
- java.lang.Object
-
- org.opencms.jsp.util.CmsTemplatePluginWrapper
-
public class CmsTemplatePluginWrapper extends java.lang.Object
Wrapper around template plugin objects for use in JSP EL expressions.
-
-
Constructor Summary
Constructors Constructor Description CmsTemplatePluginWrapper(CmsObject cms, CmsTemplatePlugin plugin)
Creates a new wrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>
getAttributes()
Gets the plugin attributes.java.lang.String
getGroup()
Gets the group of the plugin.java.lang.String
getLink()
Gets a link to the plugin target.int
getOrder()
Gets the order of the plugin.java.lang.String
getPath()
Returns the path of the resource, if this is an internal link, and null otherwise.CmsTemplatePlugin
getPlugin()
Gets the plugin bean wrapped by this wrapper.java.lang.String
toString()
-
-
-
Constructor Detail
-
CmsTemplatePluginWrapper
public CmsTemplatePluginWrapper(CmsObject cms, CmsTemplatePlugin plugin)
Creates a new wrapper.- Parameters:
cms
- the current CmsObjectplugin
- the plugin to wrap
-
-
Method Detail
-
getAttributes
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
Gets the plugin attributes.- Returns:
- the plugin attributes
-
getGroup
public java.lang.String getGroup()
Gets the group of the plugin.- Returns:
- the group
-
getLink
public java.lang.String getLink()
Gets a link to the plugin target.- Returns:
- a link to the plugin target
-
getOrder
public int getOrder()
Gets the order of the plugin.- Returns:
- the order of the plugin
-
getPath
public java.lang.String getPath()
Returns the path of the resource, if this is an internal link, and null otherwise.- Returns:
- the path of the link target
-
getPlugin
public CmsTemplatePlugin getPlugin()
Gets the plugin bean wrapped by this wrapper.- Returns:
- the wrapped template plugin
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
-