|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.managers.plugin.data.PluginInformation
public class PluginInformation
Plugin information data class. This data will be serialized into XML and placed within plugin as its descriptor. It will be read each time PluginManager attempt to load its plugins.
PluginManager
,
Serialized FormConstructor Summary | |
---|---|
PluginInformation()
Constructs new plugin information data object. |
|
PluginInformation(java.lang.String id,
boolean disableable,
java.lang.String mainClass,
java.lang.String title,
java.lang.String description)
Constructs new plugin information data object with the specified values. |
|
PluginInformation(java.lang.String id,
boolean disableable,
java.lang.String mainClass,
java.lang.String title,
java.lang.String description,
PluginVersion version)
Constructs new plugin information data object with the specified values. |
|
PluginInformation(java.lang.String id,
java.lang.String type,
java.lang.String types,
boolean disableable,
java.lang.String mainClass,
java.lang.String title,
java.lang.String description,
PluginVersion version,
java.util.List<PluginLibrary> libraries)
Constructs new plugin information data object with the specified values. |
Method Summary | |
---|---|
java.lang.String |
getDescription()
Returns plugin description. |
java.lang.String |
getId()
Returns plugin ID. |
java.util.List<PluginLibrary> |
getLibraries()
Returns plugin libraries list. |
int |
getLibrariesCount()
Returns plugin libraries count. |
java.lang.String |
getMainClass()
Returns plugin main class canonical name. |
java.lang.String |
getTitle()
Returns plugin title. |
java.lang.String |
getType()
Returns custom plugin type. |
java.lang.String |
getTypes()
Returns all custom plugin types. |
java.util.List<java.lang.String> |
getTypesList()
Returns all custom plugin types list. |
PluginVersion |
getVersion()
Returns plugin version. |
boolean |
hasLibraries()
Returns whether plugin uses any libraries or not. |
boolean |
isDisableable()
Returns whether this plugin is disableable or not. |
void |
setDescription(java.lang.String description)
Sets plugin description. |
void |
setDisableable(boolean disableable)
Sets whether this plugin is disableable or not. |
void |
setId(java.lang.String id)
Sets plugin ID. |
void |
setLibraries(java.util.List<PluginLibrary> libraries)
Sets plugin libraries list. |
void |
setMainClass(java.lang.String mainClass)
Sets plugin main class canonical name. |
void |
setTitle(java.lang.String title)
Sets plugin title. |
void |
setType(java.lang.String type)
Sets custom plugin type. |
void |
setTypes(java.util.List<java.lang.String> types)
Sets custom plugin types. |
void |
setTypes(java.lang.String types)
Sets custom plugin types. |
void |
setVersion(PluginVersion version)
Sets plugin version. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PluginInformation()
public PluginInformation(java.lang.String id, boolean disableable, java.lang.String mainClass, java.lang.String title, java.lang.String description)
id
- plugin IDdisableable
- whether plugin can be disabled or notmainClass
- plugin main classtitle
- plugin titledescription
- plugin short descriptionpublic PluginInformation(java.lang.String id, boolean disableable, java.lang.String mainClass, java.lang.String title, java.lang.String description, PluginVersion version)
id
- plugin IDdisableable
- whether plugin can be disabled or notmainClass
- plugin main classtitle
- plugin titledescription
- plugin short descriptionversion
- plugin version datapublic PluginInformation(java.lang.String id, java.lang.String type, java.lang.String types, boolean disableable, java.lang.String mainClass, java.lang.String title, java.lang.String description, PluginVersion version, java.util.List<PluginLibrary> libraries)
id
- plugin IDtype
- plugin typetypes
- available plugin typesdisableable
- whether plugin can be disabled or notmainClass
- plugin main classtitle
- plugin titledescription
- plugin short descriptionversion
- plugin version datalibraries
- plugin librariesMethod Detail |
---|
public java.lang.String getId()
public void setId(java.lang.String id)
id
- new plugin IDpublic java.lang.String getType()
public void setType(java.lang.String type)
type
- new custom plugin typepublic java.lang.String getTypes()
public java.util.List<java.lang.String> getTypesList()
public void setTypes(java.lang.String types)
types
- new custom plugin typespublic void setTypes(java.util.List<java.lang.String> types)
types
- new custom plugin typespublic boolean isDisableable()
public void setDisableable(boolean disableable)
disableable
- whether this plugin is disableable or notpublic java.lang.String getMainClass()
public void setMainClass(java.lang.String mainClass)
mainClass
- new plugin main class canonical namepublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- new plugin titlepublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- new plugin descriptionpublic PluginVersion getVersion()
public void setVersion(PluginVersion version)
version
- new plugin versionpublic java.util.List<PluginLibrary> getLibraries()
public void setLibraries(java.util.List<PluginLibrary> libraries)
libraries
- new plugin libraries listpublic boolean hasLibraries()
public int getLibrariesCount()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |