Package hudson.ivy

Class ModuleName

java.lang.Object
hudson.ivy.ModuleName
All Implemented Interfaces:
Serializable, Comparable<ModuleName>

public class ModuleName extends Object implements Comparable<ModuleName>, Serializable
Version independent name of an Ivy module.
Author:
Timothy Bingaman
See Also:
  • Field Details

    • organisation

      public final String organisation
    • name

      public final String name
  • Constructor Details

    • ModuleName

      public ModuleName(String organisation, String name)
    • ModuleName

      public ModuleName(org.apache.ivy.core.module.descriptor.ModuleDescriptor module)
    • ModuleName

      public ModuleName(org.apache.ivy.core.module.descriptor.DependencyDescriptor dep)
  • Method Details

    • toString

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

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

      public static ModuleName fromFileSystemName(String n)
    • fromString

      public static ModuleName fromString(String n)
    • isValid

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(ModuleName that)
      Specified by:
      compareTo in interface Comparable<ModuleName>