public class AboutBean extends Object implements About, ExtendedAbout
About
interface, which
complements all getter methods with setter methods.Modifier and Type | Field and Description |
---|---|
private Map<String,String> |
attributes |
private String |
contact |
private String |
copyright |
private String |
description |
private String |
email |
private String |
maxBaseVersion |
private String |
minBaseVersion |
private String |
name |
private String |
url |
private String |
version |
MAX_INFORMATION_LENGTH
Constructor and Description |
---|
AboutBean()
Create a new empty about instance.
|
Modifier and Type | Method and Description |
---|---|
void |
copy(About from,
boolean overwrite)
Copy information from antoher
About object
to this one. |
String |
getAttribute(String name)
Get extra information
|
Collection<String> |
getAttributeNames()
Get all extra attribute names.
|
String |
getContact()
Contact information to get more information about the plugin.
|
String |
getCopyright()
A copyright notice.
|
String |
getDescription()
A description of the plugin and what it does.
|
String |
getEmail()
An email adress to get more information about the plugin.
|
String |
getMaxBaseVersion()
Get the maximum BASE version were to plug-in no longer is
expected to work.
|
String |
getMinBaseVersion()
Get the minimum BASE version that the plug-in requires.
|
String |
getName()
The name of the plugin.
|
String |
getUrl()
An URL to get more information about the plugin.
|
String |
getVersion()
The version of the plugin software.
|
void |
setAttribute(String name,
String value)
Set an attribute for the given name.
|
void |
setContact(String contact) |
void |
setCopyright(String copyright) |
void |
setDescription(String description) |
void |
setEmail(String email) |
void |
setMaxBaseVersion(String version) |
void |
setMinBaseVersion(String version) |
void |
setName(String name) |
void |
setUrl(String url) |
void |
setVersion(String version) |
private String name
private String description
private String version
private String minBaseVersion
private String maxBaseVersion
private String copyright
private String contact
private String email
private String url
public String getContact()
About
getContact
in interface About
public void setContact(String contact)
public String getCopyright()
About
getCopyright
in interface About
public void setCopyright(String copyright)
public String getDescription()
About
getDescription
in interface About
public void setDescription(String description)
public String getEmail()
About
public void setEmail(String email)
public String getName()
About
public void setName(String name)
public String getUrl()
About
public void setUrl(String url)
public String getVersion()
About
getVersion
in interface About
public void setVersion(String version)
public String getMinBaseVersion()
About
getMinBaseVersion
in interface About
public void setMinBaseVersion(String version)
public String getMaxBaseVersion()
About
getMaxBaseVersion
in interface About
public void setMaxBaseVersion(String version)
public String getAttribute(String name)
ExtendedAbout
getAttribute
in interface ExtendedAbout
name
- The name of the extra informationpublic Collection<String> getAttributeNames()
ExtendedAbout
getAttributeNames
in interface ExtendedAbout
public void setAttribute(String name, String value)
public void copy(About from, boolean overwrite)
About
object
to this one.from
- The object to copy fromoverwrite
- TRUE copy all values, FALSE
to only copy if the existing value is null