Package hudson.maven

Class ModuleName

    • Field Detail

      • groupId

        @Nonnull
        public final String groupId
      • artifactId

        @Nonnull
        public final String artifactId
    • Constructor Detail

      • ModuleName

        public ModuleName​(String groupId,
                          String artifactId)
      • 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 Detail

      • toString

        public String toString()
        Returns the "groupId:artifactId" form.
        Overrides:
        toString in class Object
      • toFileSystemName

        public String toFileSystemName()
        Returns the "groupId$artifactId" form, which is safe for the use as a file name, unlike toString().
      • fromFileSystemName

        public static ModuleName fromFileSystemName​(String n)
      • isValid

        public static boolean isValid​(String n)
        Checks if the given name is valid module name string format created by toString().
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object