Class PluginIdChecker
- java.lang.Object
-
- org.pepstock.charba.client.plugins.PluginIdChecker
-
public final class PluginIdChecker extends Object
This utility checks if the plug ID is acceptable or not.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
check(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 upper case letters should be something short, but also reasonably descriptivestatic Key
key(String id)
Creates a key by the plugin id as string
-
-
-
Method Detail
-
check
public static void check(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 upper case letters
- should be something short, but also reasonably descriptive
- Parameters:
id
- plugin id to be checked.
-
-