Class PluginIdChecker


  • public final class PluginIdChecker
    extends Object
    This utility checks if the plug ID is acceptable or not.
    Author:
    Andrea "Stock" Stocchero
    • 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.
      • key

        public static Key key​(String id)
        Creates a key by the plugin id as string
        Parameters:
        id - the plugin id as string
        Returns:
        a key by the plugin id as string