Package org.codelibs.fess.helper
Class PluginHelper.Artifact
java.lang.Object
org.codelibs.fess.helper.PluginHelper.Artifact
- Enclosing class:
PluginHelper
Represents a plugin artifact with name, version, and URL information.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the filename of the artifact JAR file.getName()Gets the name of the artifact.getType()Gets the type of the artifact based on its name.getUrl()Gets the URL where the artifact can be downloaded.Gets the version of the artifact.toString()Returns a string representation of the artifact.
-
Field Details
-
name
The name of the artifact -
version
The version of the artifact -
url
The URL where the artifact can be downloaded
-
-
Constructor Details
-
Artifact
Creates a new artifact with name, version, and URL.- Parameters:
name- the name of the artifactversion- the version of the artifacturl- the URL where the artifact can be downloaded
-
Artifact
Creates a new artifact with name and version, but no URL.- Parameters:
name- the name of the artifactversion- the version of the artifact
-
-
Method Details
-
getName
Gets the name of the artifact.- Returns:
- the artifact name
-
getVersion
Gets the version of the artifact.- Returns:
- the artifact version
-
getFileName
Gets the filename of the artifact JAR file.- Returns:
- the filename in the format "name-version.jar"
-
getUrl
Gets the URL where the artifact can be downloaded.- Returns:
- the artifact URL
-
getType
Gets the type of the artifact based on its name.- Returns:
- the artifact type
-
toString
Returns a string representation of the artifact.
-