Package io.manebot.artifact
Interface ArtifactManifest
-
public interface ArtifactManifest
-
-
Method Summary
Modifier and Type Method Description default booleandoesUpdateExist(java.lang.String version)Finds if an update exists for a specific plugin's version.ArtifactgetArtifact(java.lang.String version)Gets a plugin for a specific version associated with this manifest.default java.lang.StringgetArtifactId()Gets the artifact's ID.ManifestIdentifiergetIdentifier()Gets the manifest's qualifier.ArtifactIdentifiergetLatestVersion()Gets the latest version of this plugin.default java.lang.StringgetPackageId()Gets the artifact's package ID.ArtifactRepositorygetRepository()Gets the repository this plugin was obtained from.java.net.URIgetUri()Gets this plugin's base URI.java.util.Collection<java.lang.String>getVersions()Gets the versions this plugin has.
-
-
-
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.
-
-