public final class PluginIdChecker
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
check(java.lang.String id)
Checks if the plugin is compliant with the constraints of plugin id.
A plugin id can not start with a dot or an underscore can not contain any non-URL-safe characters cannot contain uppercase letters should be something short, but also reasonably descriptive |
static Key |
key(java.lang.String id)
Checks if the plugin is compliant with the constraints of plugin id.
A plugin id can not start with a dot or an underscore can not contain any non-URL-safe characters cannot contain uppercase letters should be something short, but also reasonably descriptive |
public static void check(java.lang.String id) throws InvalidPluginIdException
id
- plugin id to be checked.InvalidPluginIdException
- if the plugin is not compliantpublic static Key key(java.lang.String id) throws InvalidPluginIdException
id
- plugin id to be checked.InvalidPluginIdException
- if the plugin is not compliant