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