Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
org.bukkit.plugin.PluginDescriptionFile Class Reference

Provides access to a Plugins description file, plugin.yaml. More...

Public Member Functions

 PluginDescriptionFile (final InputStream stream) throws InvalidDescriptionException
 
 PluginDescriptionFile (final Reader reader) throws InvalidDescriptionException
 Loads a PluginDescriptionFile from the specified reader.
 
 PluginDescriptionFile (final String pluginName, final String pluginVersion, final String mainClass)
 Creates a new PluginDescriptionFile with the given detailed.
 
void save (Writer writer)
 Saves this PluginDescriptionFile to the given writer.
 
String getName ()
 Returns the name of a plugin.
 
String getVersion ()
 Returns the version of a plugin.
 
String getFullName ()
 Returns the name of a plugin including the version.
 
String getMain ()
 Returns the main class for a plugin.
 
Map< String, Map< String,
Object > > 
getCommands ()
 
List< String > getDepend ()
 
List< String > getSoftDepend ()
 
List< String > getLoadBefore ()
 Gets the list of plugins that should consider this plugin a soft-dependency.
 
PluginLoadOrder getLoad ()
 
String getDescription ()
 Gets the description of this plugin.
 
List< String > getAuthors ()
 
String getWebsite ()
 
boolean isDatabaseEnabled ()
 
void setDatabaseEnabled (boolean database)
 
List< PermissiongetPermissions ()
 
PermissionDefault getPermissionDefault ()
 
String getClassLoaderOf ()
 
String getPrefix ()
 

Detailed Description

Provides access to a Plugins description file, plugin.yaml.

Definition at line 21 of file PluginDescriptionFile.java.

Constructor & Destructor Documentation

org.bukkit.plugin.PluginDescriptionFile.PluginDescriptionFile ( final InputStream  stream) throws InvalidDescriptionException

Definition at line 41 of file PluginDescriptionFile.java.

org.bukkit.plugin.PluginDescriptionFile.PluginDescriptionFile ( final Reader  reader) throws InvalidDescriptionException

Loads a PluginDescriptionFile from the specified reader.

Parameters
readerThe reader
Exceptions
InvalidDescriptionExceptionIf the PluginDescriptionFile is invalid

Definition at line 51 of file PluginDescriptionFile.java.

org.bukkit.plugin.PluginDescriptionFile.PluginDescriptionFile ( final String  pluginName,
final String  pluginVersion,
final String  mainClass 
)

Creates a new PluginDescriptionFile with the given detailed.

Parameters
pluginNameName of this plugin
pluginVersionVersion of this plugin
mainClassFull location of the main class of this plugin

Definition at line 62 of file PluginDescriptionFile.java.

Member Function Documentation

List<String> org.bukkit.plugin.PluginDescriptionFile.getAuthors ( )
String org.bukkit.plugin.PluginDescriptionFile.getClassLoaderOf ( )
Map<String, Map<String, Object> > org.bukkit.plugin.PluginDescriptionFile.getCommands ( )
List<String> org.bukkit.plugin.PluginDescriptionFile.getDepend ( )
String org.bukkit.plugin.PluginDescriptionFile.getDescription ( )

Gets the description of this plugin.

Returns
Description of this plugin

Definition at line 142 of file PluginDescriptionFile.java.

PluginLoadOrder org.bukkit.plugin.PluginDescriptionFile.getLoad ( )

Definition at line 133 of file PluginDescriptionFile.java.

List<String> org.bukkit.plugin.PluginDescriptionFile.getLoadBefore ( )

Gets the list of plugins that should consider this plugin a soft-dependency.

Returns
immutable list of plugins that should consider this plugin a soft-dependency

Definition at line 129 of file PluginDescriptionFile.java.

Referenced by org.bukkit.plugin.SimplePluginManager.loadPlugins().

String org.bukkit.plugin.PluginDescriptionFile.getMain ( )

Returns the main class for a plugin.

Returns
Java classpath

Definition at line 109 of file PluginDescriptionFile.java.

Referenced by org.bukkit.plugin.java.JavaPluginLoader.loadPlugin().

PermissionDefault org.bukkit.plugin.PluginDescriptionFile.getPermissionDefault ( )

Definition at line 174 of file PluginDescriptionFile.java.

List<Permission> org.bukkit.plugin.PluginDescriptionFile.getPermissions ( )
String org.bukkit.plugin.PluginDescriptionFile.getPrefix ( )
List<String> org.bukkit.plugin.PluginDescriptionFile.getSoftDepend ( )
String org.bukkit.plugin.PluginDescriptionFile.getVersion ( )

Returns the version of a plugin.

Returns
String name

Definition at line 91 of file PluginDescriptionFile.java.

String org.bukkit.plugin.PluginDescriptionFile.getWebsite ( )

Definition at line 150 of file PluginDescriptionFile.java.

boolean org.bukkit.plugin.PluginDescriptionFile.isDatabaseEnabled ( )
void org.bukkit.plugin.PluginDescriptionFile.save ( Writer  writer)

Saves this PluginDescriptionFile to the given writer.

Parameters
writerWriter to output this file to

Definition at line 73 of file PluginDescriptionFile.java.

void org.bukkit.plugin.PluginDescriptionFile.setDatabaseEnabled ( boolean  database)

Definition at line 158 of file PluginDescriptionFile.java.


The documentation for this class was generated from the following file: