public final class PluginMetadata
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALGORITHM_API_VERSION_KEY |
static java.lang.String |
AUTHOR_NAME_KEY |
static java.lang.String |
PLUGIN_NAME_KEY |
static java.lang.String |
PLUGIN_VERSION_KEY |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getApiVersion() |
java.lang.String |
getAuthorName() |
java.lang.String |
getPluginName() |
java.lang.String |
getPluginVersion() |
static java.lang.String |
jarPathToPluginName(java.nio.file.Path jarPath)
Convert a JAR path to the default plugin name for that JAR.
|
static PluginMetadata |
readManifest(java.nio.file.Path jarFile)
Read relevant attributes from the plugin JAR's manifest.
|
java.lang.String |
toString() |
public static final java.lang.String PLUGIN_NAME_KEY
public static final java.lang.String AUTHOR_NAME_KEY
public static final java.lang.String PLUGIN_VERSION_KEY
public static final java.lang.String ALGORITHM_API_VERSION_KEY
public static PluginMetadata readManifest(java.nio.file.Path jarFile)
jarFile
- The plugin JAR filepublic static java.lang.String jarPathToPluginName(java.nio.file.Path jarPath)
jarPath
- The JAR pathpublic java.lang.String getPluginName()
public java.lang.String getAuthorName()
public java.lang.String getPluginVersion()
public java.lang.String getApiVersion()
public java.lang.String toString()
toString
in class java.lang.Object