Package org.tentackle.maven.plugin.jlink
Class ModularArtifact
- java.lang.Object
-
- org.tentackle.maven.plugin.jlink.ModularArtifact
-
- All Implemented Interfaces:
Comparable<ModularArtifact>
public class ModularArtifact extends Object implements Comparable<ModularArtifact>
Artifact with module information.
-
-
Constructor Summary
Constructors Constructor Description ModularArtifact(org.apache.maven.artifact.Artifact artifact, org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptor moduleDescriptor)Creates a modular artifact.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ModularArtifact o)booleanequals(Object o)org.apache.maven.artifact.ArtifactgetArtifact()Gets the maven artifact.FilegetFile()Gets the artifact's file.StringgetFileName()Gets the filename of the artifact.org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptorgetModuleDescriptor()Gets the JPMS module descriptor.StringgetModuleName()Gets the module name.StringgetPath()Gets the path to the artifact's jar file.inthashCode()StringtoString()
-
-
-
Method Detail
-
getArtifact
public org.apache.maven.artifact.Artifact getArtifact()
Gets the maven artifact.- Returns:
- the artifact
-
getModuleDescriptor
public org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptor getModuleDescriptor()
Gets the JPMS module descriptor.- Returns:
- the module descriptor
-
getModuleName
public String getModuleName()
Gets the module name.- Returns:
- the module name, never null
-
getFile
public File getFile()
Gets the artifact's file.- Returns:
- the file
-
getFileName
public String getFileName()
Gets the filename of the artifact.- Returns:
- the name of the jar file
-
getPath
public String getPath()
Gets the path to the artifact's jar file.- Returns:
- the path
-
compareTo
public int compareTo(ModularArtifact o)
- Specified by:
compareToin interfaceComparable<ModularArtifact>
-
-