Interface ArtifactManifest


  • public interface ArtifactManifest
    • Method Detail

      • getIdentifier

        ManifestIdentifier getIdentifier()
        Gets the manifest's qualifier.
        Returns:
        ArtifactQualifier instance.
      • getArtifactId

        default java.lang.String getArtifactId()
        Gets the artifact's ID.
        Returns:
        Artifact ID.
      • getPackageId

        default java.lang.String getPackageId()
        Gets the artifact's package ID.
        Returns:
        Artifact package ID.
      • getLatestVersion

        ArtifactIdentifier getLatestVersion()
        Gets the latest version of this plugin.
        Returns:
        Version instance representing the latest version of this plugin.
      • doesUpdateExist

        default boolean doesUpdateExist​(java.lang.String version)
        Finds if an update exists for a specific plugin's version.
        Parameters:
        version - Version to check for an update to.
        Returns:
        true if an update exists, false otherwise.
      • getArtifact

        Artifact getArtifact​(java.lang.String version)
                      throws ArtifactNotFoundException
        Gets a plugin for a specific version associated with this manifest.
        Parameters:
        version - version to get.
        Returns:
        Artifact instance corresponding to the version requested.
        Throws:
        ArtifactNotFoundException
      • getVersions

        java.util.Collection<java.lang.String> getVersions()
        Gets the versions this plugin has.
        Returns:
        Version collection representing the versions for this plugin.
      • getRepository

        ArtifactRepository getRepository()
        Gets the repository this plugin was obtained from.
        Returns:
        Artifact repository.
      • getUri

        java.net.URI getUri()
        Gets this plugin's base URI. This could be on the web as a GitHub repository, or on disk as a JARfile.
        Returns:
        plugin resource URI.