hudson.ivy
Class ModuleDependency

java.lang.Object
  extended by hudson.ivy.ModuleDependency
All Implemented Interfaces:
Serializable

public final class ModuleDependency
extends Object
implements Serializable

organisation + name + revision + branch.

Author:
TimothyBingaman
See Also:
ModuleName, Serialized Form

Field Summary
 String branch
           
 String name
           
 String organisation
           
 String revision
           
static String UNKNOWN
          For compatibility reason, this value may be used in the revision and branch fields to indicate that they are unknown.
 
Constructor Summary
ModuleDependency(org.apache.ivy.core.module.descriptor.DependencyDescriptor dep)
           
ModuleDependency(org.apache.ivy.core.module.descriptor.ModuleDescriptor module)
           
ModuleDependency(ModuleName name, String revision, String branch)
           
ModuleDependency(String organisation, String name, String revision, String branch)
           
 
Method Summary
 boolean equals(Object o)
           
 ModuleName getName()
           
 int hashCode()
           
 ModuleDependency withUnknownRevision()
          Returns organisation+name+branch with unknown revision.
 ModuleDependency withUnknownRevisionAndBranch()
          Returns organisation+name with unknown revision and branch.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

organisation

public final String organisation

name

public final String name

revision

public final String revision

branch

public final String branch

UNKNOWN

public static final String UNKNOWN
For compatibility reason, this value may be used in the revision and branch fields to indicate that they are unknown.

See Also:
Constant Field Values
Constructor Detail

ModuleDependency

public ModuleDependency(String organisation,
                        String name,
                        String revision,
                        String branch)

ModuleDependency

public ModuleDependency(ModuleName name,
                        String revision,
                        String branch)

ModuleDependency

public ModuleDependency(org.apache.ivy.core.module.descriptor.DependencyDescriptor dep)

ModuleDependency

public ModuleDependency(org.apache.ivy.core.module.descriptor.ModuleDescriptor module)
Method Detail

getName

public ModuleName getName()

withUnknownRevision

public ModuleDependency withUnknownRevision()
Returns organisation+name+branch with unknown revision.


withUnknownRevisionAndBranch

public ModuleDependency withUnknownRevisionAndBranch()
Returns organisation+name with unknown revision and branch.


equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2004-2012 Hudson. All Rights Reserved.