public class PluginTypeData extends BasicData implements NameableData, RemovableData
PluginType
,
PluginsModifier and Type | Field and Description |
---|---|
static int |
MAX_INTERFACENAME_LENGTH
The maximum length of the interface name that can be stored in the
database.
|
static int |
MAX_JARPATH_LENGTH |
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
Constructor and Description |
---|
PluginTypeData() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Get the description for the item.
|
String |
getInterfaceName()
Get the interface name a plugin must implement to be of this type.
|
String |
getJarPath()
Get the path to the JAR file where the interface class is located.
|
String |
getName()
Get the name of the item.
|
boolean |
isRemoved()
Check if the removed flag is set for this item.
|
void |
setDescription(String description)
Set the description for the item.
|
void |
setInterfaceName(String interfaceName) |
void |
setJarPath(String jarPath) |
void |
setName(String name)
Set the name of the item.
|
void |
setRemoved(boolean removed)
Set the removed flag for this item.
|
equals, getId, getVersion, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getVersion
public static final int MAX_INTERFACENAME_LENGTH
public static final int MAX_JARPATH_LENGTH
public PluginTypeData()
public String getName()
NameableData
getName
in interface NameableData
String
with the name of the itempublic void setName(String name)
NameableData
MAX_NAME_LENGTH
constant.setName
in interface NameableData
name
- The new name for the itempublic String getDescription()
NameableData
getDescription
in interface NameableData
String
with a description of the itempublic void setDescription(String description)
NameableData
MAX_DESCRIPTION_LENGTH
constant.setDescription
in interface NameableData
description
- The new description for the itempublic boolean isRemoved()
RemovableData
isRemoved
in interface RemovableData
public void setRemoved(boolean removed)
RemovableData
setRemoved
in interface RemovableData
removed
- TRUE if the item should be flagged as removed,
FALSE otherwisepublic String getInterfaceName()
Plugin
interface.public void setInterfaceName(String interfaceName)
public String getJarPath()
public void setJarPath(String jarPath)