Package hudson.maven
Class ModuleName
java.lang.Object
hudson.maven.ModuleName
- All Implemented Interfaces:
Serializable
,Comparable<ModuleName>
Version independent name of a Maven project. GroupID+artifactId.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionModuleName
(String groupId, String artifactId) ModuleName
(org.apache.maven.execution.ExecutionEvent event) ModuleName
(org.apache.maven.model.Dependency dep) ModuleName
(org.apache.maven.model.Extension ext) ModuleName
(org.apache.maven.model.Plugin plugin) ModuleName
(org.apache.maven.model.ReportPlugin plugin) ModuleName
(org.apache.maven.project.MavenProject project) -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(ModuleName that) boolean
static ModuleName
static ModuleName
fromString
(String n) int
hashCode()
static boolean
Checks if the given name is valid module name string format created bytoString()
.Returns the "groupId$artifactId" form, which is safe for the use as a file name, unliketoString()
.toString()
Returns the "groupId:artifactId" form.
-
Field Details
-
groupId
-
artifactId
-
-
Constructor Details
-
ModuleName
-
ModuleName
public ModuleName(org.apache.maven.execution.ExecutionEvent event) -
ModuleName
public ModuleName(org.apache.maven.project.MavenProject project) -
ModuleName
public ModuleName(org.apache.maven.model.Plugin plugin) -
ModuleName
public ModuleName(org.apache.maven.model.ReportPlugin plugin) -
ModuleName
public ModuleName(org.apache.maven.model.Extension ext) -
ModuleName
public ModuleName(org.apache.maven.model.Dependency dep)
-
-
Method Details
-
toString
Returns the "groupId:artifactId" form. -
toFileSystemName
Returns the "groupId$artifactId" form, which is safe for the use as a file name, unliketoString()
. -
fromFileSystemName
-
fromString
-
isValid
Checks if the given name is valid module name string format created bytoString()
. -
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<ModuleName>
-