Package org.tentackle.maven.plugin.jlink
Class ModularArtifact
- java.lang.Object
-
- org.tentackle.maven.plugin.jlink.ModularArtifact
-
- All Implemented Interfaces:
java.lang.Comparable<ModularArtifact>
public class ModularArtifact extends java.lang.Object implements java.lang.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(java.lang.Object o)org.apache.maven.artifact.ArtifactgetArtifact()Gets the maven artifact.java.io.FilegetFile()Gets the artifact's file.java.lang.StringgetFileName()Gets the filename of the artifact.org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptorgetModuleDescriptor()Gets the JPMS module descriptor.java.lang.StringgetModuleName()Gets the module name.java.lang.StringgetPath()Gets the path to the artifact's jar file.inthashCode()java.lang.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 java.lang.String getModuleName()
Gets the module name.- Returns:
- the module name, never null
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getFile
public java.io.File getFile()
Gets the artifact's file.- Returns:
- the file
-
getFileName
public java.lang.String getFileName()
Gets the filename of the artifact.- Returns:
- the name of the jar file
-
getPath
public java.lang.String getPath()
Gets the path to the artifact's jar file.- Returns:
- the path
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(ModularArtifact o)
- Specified by:
compareToin interfacejava.lang.Comparable<ModularArtifact>
-
-