Interface MutableExtension

    • Method Detail

      • set

        void set​(Extension extension)
        Update optional informations based on the provided extension.
        Parameters:
        extension - the extension from which to get informations
      • addExtensionFeature

        void addExtensionFeature​(ExtensionId feature)
        Add a new feature to the extension.
        Parameters:
        feature - a feature name
      • setName

        void setName​(String name)
        Parameters:
        name - the display name of the extension
      • addLicense

        void addLicense​(ExtensionLicense license)
        Add a new license to the extension.
        Parameters:
        license - a license
      • setSummary

        void setSummary​(String summary)
        Parameters:
        summary - a short description of the extension
      • setDescription

        void setDescription​(String description)
        Parameters:
        description - a description of the extension
      • setAuthors

        void setAuthors​(Collection<? extends ExtensionAuthor> authors)
        Parameters:
        authors - the authors of the extension
      • addAuthor

        void addAuthor​(ExtensionAuthor author)
        Add a new author to the extension.
        Parameters:
        author - an author
      • setComponents

        default void setComponents​(Collection<? extends ExtensionComponent> component)
        Parameters:
        component - the components provided by the extension
        Since:
        13.3RC1
      • addComponent

        default void addComponent​(ExtensionComponent component)
        Add a new component to the extension.
        Parameters:
        component - a component provided by the extension
        Since:
        13.3RC1
      • setWebsite

        void setWebsite​(String website)
        Parameters:
        website - an URL for the extension website
      • addAllowedNamespace

        void addAllowedNamespace​(String namespace)
        Add a new allowed namespace to the extension.
        Parameters:
        namespace - a namespace
      • setAllowedNamespaces

        void setAllowedNamespaces​(Collection<String> namespaces)
        Parameters:
        namespaces - the namespaces where it's allowed to install this extension
      • addDependency

        void addDependency​(ExtensionDependency dependency)
        Add a new dependency to the extension.
        Parameters:
        dependency - a dependency
      • addManagedDependency

        void addManagedDependency​(ExtensionDependency managedDependency)
        Add a new managed dependency to the extension.
        Parameters:
        managedDependency - a managed dependency;
      • setScm

        void setScm​(ExtensionScm scm)
        Parameters:
        scm - informations related to extensions's Source Control Management;
      • setIssueManagement

        void setIssueManagement​(ExtensionIssueManagement issueManagement)
        Parameters:
        issueManagement - informations related to extension's issues management
      • setCategory

        void setCategory​(String categrory)
        Parameters:
        categrory - the category of the extension;
      • setRepositories

        void setRepositories​(Collection<? extends ExtensionRepositoryDescriptor> repositories)
        Parameters:
        repositories - the custom repositories provided by the extension (usually to resolve dependencies)
      • addRepository

        void addRepository​(ExtensionRepositoryDescriptor repository)
        Add a new repository to the extension.
        Parameters:
        repository - a repository descriptor;
      • setProperties

        void setProperties​(Map<String,​Object> properties)
        Replace existing properties with provided properties.
        Parameters:
        properties - the properties
      • removeProperty

        <T> T removeProperty​(String key)
        Remove the property associated to the passed key and return its value.
        Type Parameters:
        T - type of the property value
        Parameters:
        key - the property key
        Returns:
        the previous value associated with key, or null if there was no mapping for key