fr.jayasoft.ivy
Class DefaultDependencyArtifactDescriptor

java.lang.Object
  extended by fr.jayasoft.ivy.DefaultDependencyArtifactDescriptor
All Implemented Interfaces:
DependencyArtifactDescriptor

public class DefaultDependencyArtifactDescriptor
extends java.lang.Object
implements DependencyArtifactDescriptor

TODO write javadoc


Constructor Summary
DefaultDependencyArtifactDescriptor(DefaultDependencyDescriptor dd, ArtifactId aid, boolean includes, fr.jayasoft.ivy.matcher.PatternMatcher matcher)
           
DefaultDependencyArtifactDescriptor(DefaultDependencyDescriptor dd, java.lang.String name, java.lang.String type, java.lang.String ext, boolean includes, fr.jayasoft.ivy.matcher.PatternMatcher matcher)
           
 
Method Summary
 void addConfiguration(java.lang.String conf)
          Add a configuration for this artifact (includes or excludes depending on this type dependency artifact descriptor).
 boolean equals(java.lang.Object obj)
           
 java.lang.String[] getConfigurations()
          Returns the configurations of the module in which the artifact is asked
 DependencyDescriptor getDependency()
          Returns the dependency descriptor in which this artifact is asked
 java.lang.String getExt()
          Returns the ext of the artifact asked
 ArtifactId getId()
          Returns the id of the described artifact, without revision information
 fr.jayasoft.ivy.matcher.PatternMatcher getMatcher()
          Returns the matcher to use to know if an artifact match the current descriptor
 java.lang.String getName()
          Returns the name of the artifact asked
 java.lang.String getType()
          Returns the type of the artifact asked
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDependencyArtifactDescriptor

public DefaultDependencyArtifactDescriptor(DefaultDependencyDescriptor dd,
                                           java.lang.String name,
                                           java.lang.String type,
                                           java.lang.String ext,
                                           boolean includes,
                                           fr.jayasoft.ivy.matcher.PatternMatcher matcher)
Parameters:
dd -
name -
type -

DefaultDependencyArtifactDescriptor

public DefaultDependencyArtifactDescriptor(DefaultDependencyDescriptor dd,
                                           ArtifactId aid,
                                           boolean includes,
                                           fr.jayasoft.ivy.matcher.PatternMatcher matcher)
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

addConfiguration

public void addConfiguration(java.lang.String conf)
Add a configuration for this artifact (includes or excludes depending on this type dependency artifact descriptor). This method also updates the corresponding dependency descriptor

Parameters:
conf -

getDependency

public DependencyDescriptor getDependency()
Description copied from interface: DependencyArtifactDescriptor
Returns the dependency descriptor in which this artifact is asked

Specified by:
getDependency in interface DependencyArtifactDescriptor
Returns:

getId

public ArtifactId getId()
Description copied from interface: DependencyArtifactDescriptor
Returns the id of the described artifact, without revision information

Specified by:
getId in interface DependencyArtifactDescriptor
Returns:

getName

public java.lang.String getName()
Description copied from interface: DependencyArtifactDescriptor
Returns the name of the artifact asked

Specified by:
getName in interface DependencyArtifactDescriptor
Returns:

getType

public java.lang.String getType()
Description copied from interface: DependencyArtifactDescriptor
Returns the type of the artifact asked

Specified by:
getType in interface DependencyArtifactDescriptor
Returns:

getExt

public java.lang.String getExt()
Description copied from interface: DependencyArtifactDescriptor
Returns the ext of the artifact asked

Specified by:
getExt in interface DependencyArtifactDescriptor
Returns:

getConfigurations

public java.lang.String[] getConfigurations()
Description copied from interface: DependencyArtifactDescriptor
Returns the configurations of the module in which the artifact is asked

Specified by:
getConfigurations in interface DependencyArtifactDescriptor
Returns:
an array of configuration names in which the artifact is asked

getMatcher

public fr.jayasoft.ivy.matcher.PatternMatcher getMatcher()
Description copied from interface: DependencyArtifactDescriptor
Returns the matcher to use to know if an artifact match the current descriptor

Specified by:
getMatcher in interface DependencyArtifactDescriptor
Returns: