Class DefaultDependencyArtifactDescriptor
- java.lang.Object
-
- org.apache.ivy.util.extendable.UnmodifiableExtendableItem
-
- org.apache.ivy.core.module.descriptor.DefaultDependencyArtifactDescriptor
-
- All Implemented Interfaces:
ConfigurationAware,DependencyArtifactDescriptor,ExtendableItem
public class DefaultDependencyArtifactDescriptor extends UnmodifiableExtendableItem implements DependencyArtifactDescriptor, ConfigurationAware
-
-
Constructor Summary
Constructors Constructor Description DefaultDependencyArtifactDescriptor(DependencyDescriptor dd, java.lang.String name, java.lang.String type, java.lang.String ext, java.net.URL url, java.util.Map<java.lang.String,java.lang.String> extraAttributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConfiguration(java.lang.String conf)Add a configuration for this artifact.booleanequals(java.lang.Object obj)java.lang.String[]getConfigurations()Returns the configurations of the module to which the object is attachedDependencyDescriptorgetDependencyDescriptor()java.lang.StringgetExt()java.lang.StringgetName()java.lang.StringgetType()java.net.URLgetUrl()inthashCode()java.lang.StringtoString()-
Methods inherited from class org.apache.ivy.util.extendable.UnmodifiableExtendableItem
getAttribute, getAttributes, getExtraAttribute, getExtraAttributes, getQualifiedExtraAttributes, setExtraAttribute, setStandardAttribute
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.ivy.util.extendable.ExtendableItem
getAttribute, getAttributes, getExtraAttribute, getExtraAttributes, getQualifiedExtraAttributes
-
-
-
-
Constructor Detail
-
DefaultDependencyArtifactDescriptor
public DefaultDependencyArtifactDescriptor(DependencyDescriptor dd, java.lang.String name, java.lang.String type, java.lang.String ext, java.net.URL url, java.util.Map<java.lang.String,java.lang.String> extraAttributes)
- Parameters:
dd- DependencyDescriptorname- dittotype- dittoext- dittourl- dittoextraAttributes- ditto
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
addConfiguration
public void addConfiguration(java.lang.String conf)
Add a configuration for this artifact.- Specified by:
addConfigurationin interfaceConfigurationAware- Parameters:
conf- ditto
-
getDependencyDescriptor
public DependencyDescriptor getDependencyDescriptor()
- Specified by:
getDependencyDescriptorin interfaceDependencyArtifactDescriptor- Returns:
- the dependency descriptor in which this dependency artifact descriptor is declared.
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceDependencyArtifactDescriptor- Returns:
- the name of the artifact asked
-
getType
public java.lang.String getType()
- Specified by:
getTypein interfaceDependencyArtifactDescriptor- Returns:
- the type of the artifact asked
-
getExt
public java.lang.String getExt()
- Specified by:
getExtin interfaceDependencyArtifactDescriptor- Returns:
- the ext of the artifact asked
-
getConfigurations
public java.lang.String[] getConfigurations()
Description copied from interface:ConfigurationAwareReturns the configurations of the module to which the object is attached- Specified by:
getConfigurationsin interfaceConfigurationAware- Specified by:
getConfigurationsin interfaceDependencyArtifactDescriptor- Returns:
- an array of configuration names of the module in which the artifact is asked
-
getUrl
public java.net.URL getUrl()
- Specified by:
getUrlin interfaceDependencyArtifactDescriptor- Returns:
- the url to look this artifact up at
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-