public class WikiModuleInfo extends java.lang.Object implements java.lang.Comparable<WikiModuleInfo>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
m_adminBeanClass |
protected java.lang.String |
m_author |
protected java.lang.String |
m_authorUrl |
protected java.lang.String |
m_description |
protected java.lang.String |
m_htmlTemplate |
protected java.lang.String |
m_maxVersion |
protected java.lang.String |
m_minVersion |
protected java.lang.String |
m_moduleUrl |
protected java.lang.String |
m_moduleVersion |
protected java.lang.String |
m_name |
protected java.net.URL |
m_resource |
protected java.lang.String |
m_scriptLocation |
protected java.lang.String |
m_scriptText |
protected java.lang.String |
m_stylesheetLocation |
protected java.lang.String |
m_stylesheetText |
| Constructor and Description |
|---|
WikiModuleInfo(java.lang.String name)
Create a new info container.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(WikiModuleInfo mod) |
boolean |
equals(java.lang.Object obj)
The WikiModuleInfo is equal to another WikiModuleInfo, if the name is equal.
|
java.lang.String |
getAdminBeanClass()
Returns the AdminBean class which is supposed to manage this module.
|
java.lang.String |
getAuthor()
Returns the name of the author of this plugin (if defined).
|
java.lang.String |
getAuthorUrl()
Returns the url of the author of this plugin (if defined).
|
java.lang.String |
getDescription()
The description of what this module does.
|
java.lang.String |
getHtmlTemplate()
Return the location of the html template for this module.
|
java.lang.String |
getMaxVersion()
Returns the maximum version of JSPWiki that this module supports.
|
java.lang.String |
getMinVersion()
Returns the minimum version of JSPWiki that this module supports.
|
java.lang.String |
getModuleUrl()
The URL for this getting more information about this module.
|
java.lang.String |
getModuleVersion()
The current version of the implemented module
|
java.lang.String |
getName()
Returns the common name for this particular module.
|
java.lang.String |
getScriptLocation()
Return the location of the script for this module.
|
java.lang.String |
getStylesheetLocation()
Returns the style sheet location for this module.
|
protected java.lang.String |
getTextResource(java.lang.String resourceLocation)
Attempts to locate a resource from a JAR file and returns it as a string.
|
int |
hashCode() |
protected void |
initializeFromXML(org.jdom2.Element el)
Initializes the ModuleInfo from some standard XML elements which are under the given element.
|
protected java.lang.String m_name
protected java.lang.String m_description
protected java.lang.String m_moduleUrl
protected java.lang.String m_moduleVersion
protected java.lang.String m_htmlTemplate
protected java.lang.String m_scriptLocation
protected java.lang.String m_scriptText
protected java.lang.String m_stylesheetLocation
protected java.lang.String m_stylesheetText
protected java.lang.String m_author
protected java.lang.String m_authorUrl
protected java.net.URL m_resource
protected java.lang.String m_minVersion
protected java.lang.String m_maxVersion
protected java.lang.String m_adminBeanClass
public WikiModuleInfo(java.lang.String name)
name - The name of the module.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - public int hashCode()
hashCode in class java.lang.Objectprotected void initializeFromXML(org.jdom2.Element el)
el - The element to parse.public java.lang.String getAdminBeanClass()
public java.lang.String getName()
Every module defines a name, so this method should never return null.
public java.lang.String getDescription()
public java.lang.String getModuleUrl()
public java.lang.String getModuleVersion()
public java.lang.String getHtmlTemplate()
public java.lang.String getStylesheetLocation()
public java.lang.String getScriptLocation()
public java.lang.String getAuthor()
public java.lang.String getAuthorUrl()
public java.lang.String getMinVersion()
public java.lang.String getMaxVersion()
protected java.lang.String getTextResource(java.lang.String resourceLocation) throws java.io.IOException
resourceLocation - an URI of the resourcejava.io.IOException - if the JAR file or the resource cannot be readpublic int compareTo(WikiModuleInfo mod)
compareTo in interface java.lang.Comparable<WikiModuleInfo>Copyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.