Package hudson.ivy
Class ModuleName
java.lang.Object
hudson.ivy.ModuleName
- All Implemented Interfaces:
Serializable,Comparable<ModuleName>
Version independent name of an Ivy module.
- Author:
- Timothy Bingaman
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionModuleName(String organisation, String name) ModuleName(org.apache.ivy.core.module.descriptor.DependencyDescriptor dep) ModuleName(org.apache.ivy.core.module.descriptor.ModuleDescriptor module) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ModuleName that) booleanstatic ModuleNamestatic ModuleNamefromString(String n) inthashCode()static booleanChecks if the given name is valid module name string format created bytoString().Returns the "organisation$name" form, which is safe for the use as a file name, unliketoString().toString()Returns the "organization:name" form.
-
Field Details
-
organisation
-
name
-
-
Constructor Details
-
ModuleName
-
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
Returns the "organization:name" form. -
toFileSystemName
Returns the "organisation$name" 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:
compareToin interfaceComparable<ModuleName>
-