Class PluginDescriptor

    • Constructor Detail

      • PluginDescriptor

        public PluginDescriptor()
        Creates an empty PluginDescriptor.
      • PluginDescriptor

        public PluginDescriptor​(String type,
                                ConfigurablePlugin plugin,
                                GuiConfigDescriptor guiConfigDesc)
        Creates a PluginDescriptor based on the specified type, plugin and a GUI configuration descriptor. The version of this PluginDescriptor will be undefined.
        Parameters:
        type - A name to represent the type of this plugin.
        plugin - The configurable plugin that this descriptor is meant to represent.
        guiConfigDesc - The GUI configuration descriptor associated with this PluginDescriptor.
      • PluginDescriptor

        public PluginDescriptor​(String type,
                                ConfigurablePlugin plugin,
                                GuiConfigDescriptor guiConfigDesc,
                                String version)
        Creates a PluginDescriptor based on the specified type, plugin and a GUI configuration descriptor.
        Parameters:
        type - A name to represent the type of this plugin.
        plugin - The configurable plugin that this descriptor is meant to represent.
        guiConfigDesc - The GUI configuration descriptor associated with this PluginDescriptor.
        version - The version of this PluginDescriptor.
      • PluginDescriptor

        public PluginDescriptor​(String type,
                                ConfigurablePlugin plugin,
                                GuiConfigDescriptorBuilder guiConfigDescBuilder)
        Creates a PluginDescriptor based on the specified type, plugin and a GUI configuration descriptor builder. The version of this PluginDescriptor will be undefined.
        Parameters:
        type - A name to represent the type of this plugin.
        plugin - The configurable plugin that this descriptor is meant to represent.
        guiConfigDescBuilder - The GUI configuration descriptor builder associated with this PluginDescriptor.
        Since:
        6.11
      • PluginDescriptor

        public PluginDescriptor​(String type,
                                ConfigurablePlugin plugin,
                                GuiConfigDescriptorBuilder guiConfigDescBuilder,
                                String version)
        Creates a PluginDescriptor based on the specified type, plugin and a GUI configuration descriptor builder.
        Parameters:
        type - A name to represent the type of this plugin.
        plugin - The configurable plugin that this descriptor is meant to represent.
        guiConfigDescBuilder - The GUI configuration descriptor builder associated with this PluginDescriptor.
        version - The version of this PluginDescriptor.
        Since:
        6.11
    • Method Detail

      • setAttributeContactSet

        @Deprecated
        public void setAttributeContactSet​(Set<String> attributeContactSet)
        Deprecated.
        Use the correctly spelled method setAttributeContractSet(Set).
        Sets the attribute contract that this plugin describes.
        Parameters:
        attributeContactSet - A set of strings defining the names of the attributes.
      • setAttributeContractSet

        public void setAttributeContractSet​(Set<String> attributeContractSet)
        Sets the attribute contract that this plugin describes.
        Parameters:
        attributeContractSet - A set of strings defining the names of the attributes.
      • getType

        public String getType()
        Gets the the type (or name) of the plugin that this object describes.
        Returns:
        The type as a String.
      • getAttributeContractSet

        public Set<String> getAttributeContractSet()
        Gets the attribute contract of the plugin that this object describes.
        Returns:
        The plugin attribute contract as a Set of Strings.
      • getPluginClassName

        public String getPluginClassName()
        Gets the class name of the implementing plugin that this PluginDescriptor describes.
        Returns:
        The class name of the implementing plugin this PluginDescriptor describes.
      • getGuiConfigDescriptorBuilder

        public GuiConfigDescriptorBuilder getGuiConfigDescriptorBuilder()
        The GUI descriptor builder this PluginDescriptor represents.
        Returns:
        The GUI descriptor builder this PluginDescriptor represents.
        Since:
        6.11
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • isSupportsExtendedContract

        public boolean isSupportsExtendedContract()
        Returns whether or not the implementing plugin allows for attributes in addition to those in its contract.
        Returns:
        Returns true if the implementing plugin allows for attributes in addition to those in its contract, false otherwise.
      • setSupportsExtendedContract

        public void setSupportsExtendedContract​(boolean supportsExtendedContract)
        Sets whether or not the implementing plugin allows for attributes in addition to those in its contract.
        Parameters:
        supportsExtendedContract - Whether or not the implementing plugin allows for attributes in addition to those in its contract.
      • getVersion

        public String getVersion()
        Gets the version of this PluginDescriptor.
        Returns:
        The version of this PluginDescriptor.
      • getMetadata

        public Map<String,​Object> getMetadata()
        Get additional metadata about the plugin. Allowed keys are defined in PluginMetadataKeys.
        Returns:
        Additional metadata about the plugin. The returned map is not modifiable.
        Since:
        10.2
      • setMetadata

        public void setMetadata​(Map<String,​Object> metadata)
        Set additional metadata about the plugin. Allowed keys are defined in PluginMetadataKeys.
        Parameters:
        metadata - Plugin metadata.
        Since:
        10.2