Interface PluginDescription
public interface PluginDescription
Represents metadata for a specific version of a plugin.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGets the authors of thePluginwithin this container.default Collection<PluginDependency> Gets aCollectionof all dependencies of thePluginwithin this container.default Optional<PluginDependency> getDependency(String id) Gets the description of thePluginwithin this container.getId()Gets the qualified ID of thePluginwithin this container.getName()Gets the name of thePluginwithin this container.default Collection<String> Gets aCollectionof the provided IDs of thePluginwithin this container.Returns the source the plugin was loaded from.getUrl()Gets the url or website of thePluginwithin this container.Gets the version of thePluginwithin this container.
-
Field Details
-
ID_PATTERN
The pattern plugin IDs must match. Plugin IDs may only contain alphanumeric characters, dashes or underscores, must start with an alphabetic character and cannot be longer than 64 characters.
-
-
Method Details
-
getId
-
getName
-
getVersion
-
getDescription
-
getUrl
-
getAuthors
-
getDependencies
Gets aCollectionof all dependencies of thePluginwithin this container.- Returns:
- the plugin dependencies, can be empty
- See Also:
-
getDependency
-
getProvidedIds
Gets aCollectionof the provided IDs of thePluginwithin this container.- Returns:
- the provided plugins IDs, can be empty
- See Also:
-
getSource
Returns the source the plugin was loaded from.- Returns:
- the source the plugin was loaded from or
Optional.empty()if unknown
-