public class ModuleName extends Object implements Comparable<ModuleName>, Serializable
ModuleDependency,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
String |
artifactId |
String |
groupId |
| Constructor and Description |
|---|
ModuleName(org.apache.maven.model.Dependency dep) |
ModuleName(org.apache.maven.execution.ExecutionEvent event) |
ModuleName(org.apache.maven.model.Extension ext) |
ModuleName(org.apache.maven.project.MavenProject project) |
ModuleName(org.apache.maven.model.Plugin plugin) |
ModuleName(org.apache.maven.model.ReportPlugin plugin) |
ModuleName(String groupId,
String artifactId) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ModuleName that) |
boolean |
equals(Object o) |
static ModuleName |
fromFileSystemName(String n) |
static ModuleName |
fromString(String n) |
int |
hashCode() |
static boolean |
isValid(String n)
Checks if the given name is valid module name string format
created by
toString(). |
String |
toFileSystemName()
Returns the "groupId$artifactId" form,
which is safe for the use as a file name, unlike
toString(). |
String |
toString()
Returns the "groupId:artifactId" form.
|
public ModuleName(org.apache.maven.execution.ExecutionEvent event)
public ModuleName(org.apache.maven.project.MavenProject project)
public ModuleName(org.apache.maven.model.Plugin plugin)
public ModuleName(org.apache.maven.model.ReportPlugin plugin)
public ModuleName(org.apache.maven.model.Extension ext)
public ModuleName(org.apache.maven.model.Dependency dep)
public String toString()
public String toFileSystemName()
toString().public static ModuleName fromFileSystemName(String n)
public static ModuleName fromString(String n)
public static boolean isValid(String n)
toString().public int compareTo(ModuleName that)
compareTo in interface Comparable<ModuleName>Copyright © 2016–2017. All rights reserved.