Class PluginHelper.Artifact

java.lang.Object
org.codelibs.fess.helper.PluginHelper.Artifact
Enclosing class:
PluginHelper

public static class PluginHelper.Artifact extends Object
Represents a plugin artifact with name, version, and URL information.
  • Field Details

    • name

      protected final String name
      The name of the artifact
    • version

      protected final String version
      The version of the artifact
    • url

      protected final String url
      The URL where the artifact can be downloaded
  • Constructor Details

    • Artifact

      public Artifact(String name, String version, String url)
      Creates a new artifact with name, version, and URL.
      Parameters:
      name - the name of the artifact
      version - the version of the artifact
      url - the URL where the artifact can be downloaded
    • Artifact

      public Artifact(String name, String version)
      Creates a new artifact with name and version, but no URL.
      Parameters:
      name - the name of the artifact
      version - the version of the artifact
  • Method Details

    • getName

      public String getName()
      Gets the name of the artifact.
      Returns:
      the artifact name
    • getVersion

      public String getVersion()
      Gets the version of the artifact.
      Returns:
      the artifact version
    • getFileName

      public String getFileName()
      Gets the filename of the artifact JAR file.
      Returns:
      the filename in the format "name-version.jar"
    • getUrl

      public String getUrl()
      Gets the URL where the artifact can be downloaded.
      Returns:
      the artifact URL
    • getType

      public PluginHelper.ArtifactType getType()
      Gets the type of the artifact based on its name.
      Returns:
      the artifact type
    • toString

      public String toString()
      Returns a string representation of the artifact.
      Overrides:
      toString in class Object
      Returns:
      a string in the format "name:version"