Class DefaultPlugin
java.lang.Object
net.ontopia.topicmaps.nav2.plugins.DefaultPlugin
- All Implemented Interfaces:
PluginIF
- Direct Known Subclasses:
FulltextPlugin,GooglePlugin,RDF2TMPlugin,ReloadPlugin,TextPlugin,TopicMapLinkPlugin,ValidationPlugin,VizPlugin
INTERNAL: This is the plugin implementation that is used if no
other implementation is requested in the plugin.xml file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Listprotected Stringprotected Mapstatic final Stringstatic final Stringprotected intprotected Stringprotected Stringprotected StringFields inherited from interface net.ontopia.topicmaps.nav2.plugins.PluginIF
ACTIVATED, DEACTIVATED, ERROR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidINTERNAL: Add the specified group to groups this plugin belongs to.booleangenerateHTML(ContextTag context) INTERNAL: Called by the framework to make the plugin produce the HTML that is going to represent it on a web page in the web application.INTERNAL: Gets the description of this plugin.INTERNAL: Returns the groups this plugin belongs to.getId()INTERNAL: Returns the ID of this plugin.getParameter(String name) INTERNAL: Returns the value of the parameter.INTERNAL: Returns the path to the plugin directory.intgetState()INTERNAL: Returns the state of this plugin.protected StringINTERNAL: Returns the URI frame target of this plugin.getTitle()INTERNAL: Returns the title of this plugin.getURI()INTERNAL: Returns the URI of this plugin.inthashCode()voidinit()INTERNAL: Called by the framework to finalize initialization.voidINTERNAL: Reset all group settings for this plugin.voidsetDescription(String description) INTERNAL: Sets the description of this plugin.voidINTERNAL: Sets the groups this plugin belongs to.voidINTERNAL: Sets the ID of this plugin.voidsetParameter(String name, String value) INTERNAL: Called by the framework to give the plugin the value of a configuration parameter.voidsetPluginDirectory(String path) INTERNAL: Called by the framework to give the plugin the directory its plugin.xml file was found in.voidsetState(int state) INTERNAL: Sets the state of this plugin.voidINTERNAL: Sets the URI frame target of this plugin.voidINTERNAL: Sets the title of this plugin.voidINTERNAL: Sets the URI of this plugin.toString()
-
Field Details
-
state
protected int state -
title
-
description
-
uri
-
target
-
id
-
directory
-
params
-
groups
-
RP_TOPICMAP_ID
- See Also:
-
RP_TOPIC_ID
- See Also:
-
-
Constructor Details
-
DefaultPlugin
public DefaultPlugin()
-
-
Method Details
-
init
public void init()Description copied from interface:PluginIFINTERNAL: Called by the framework to finalize initialization. Called when there are no more parameters. -
getId
Description copied from interface:PluginIFINTERNAL: Returns the ID of this plugin. -
setId
Description copied from interface:PluginIFINTERNAL: Sets the ID of this plugin. -
resetGroups
public void resetGroups()Description copied from interface:PluginIFINTERNAL: Reset all group settings for this plugin. After this operation this plugin will belong to no group.- Specified by:
resetGroupsin interfacePluginIF
-
getGroups
Description copied from interface:PluginIFINTERNAL: Returns the groups this plugin belongs to. Each group is represented by a string containing the group id. -
addGroup
Description copied from interface:PluginIFINTERNAL: Add the specified group to groups this plugin belongs to. -
setGroups
Description copied from interface:PluginIFINTERNAL: Sets the groups this plugin belongs to. -
getTitle
Description copied from interface:PluginIFINTERNAL: Returns the title of this plugin. -
setTitle
Description copied from interface:PluginIFINTERNAL: Sets the title of this plugin. -
getDescription
Description copied from interface:PluginIFINTERNAL: Gets the description of this plugin.- Specified by:
getDescriptionin interfacePluginIF
-
setDescription
Description copied from interface:PluginIFINTERNAL: Sets the description of this plugin.- Specified by:
setDescriptionin interfacePluginIF
-
getURI
Description copied from interface:PluginIFINTERNAL: Returns the URI of this plugin. -
setURI
Description copied from interface:PluginIFINTERNAL: Sets the URI of this plugin.Note: This has not to contain the web application context path.
Example:
plugins/hello/hello.jsp -
getTarget
Description copied from interface:PluginIFINTERNAL: Returns the URI frame target of this plugin. -
setTarget
Description copied from interface:PluginIFINTERNAL: Sets the URI frame target of this plugin. -
getState
public int getState()Description copied from interface:PluginIFINTERNAL: Returns the state of this plugin. -
setState
public void setState(int state) Description copied from interface:PluginIFINTERNAL: Sets the state of this plugin. -
getParameter
Description copied from interface:PluginIFINTERNAL: Returns the value of the parameter.- Specified by:
getParameterin interfacePluginIF
-
setParameter
Description copied from interface:PluginIFINTERNAL: Called by the framework to give the plugin the value of a configuration parameter.- Specified by:
setParameterin interfacePluginIF
-
getPluginDirectory
Description copied from interface:PluginIFINTERNAL: Returns the path to the plugin directory. This is the path in the file system the server is running in, if the web application is deployed as an unexploded WAR.- Specified by:
getPluginDirectoryin interfacePluginIF
-
setPluginDirectory
Description copied from interface:PluginIFINTERNAL: Called by the framework to give the plugin the directory its plugin.xml file was found in. This is useful for plugins which wish to use other files found in the same directory.- Specified by:
setPluginDirectoryin interfacePluginIF
-
hashCode
public int hashCode() -
equals
-
toString
-
getStateAsString
-