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 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 in which the artifact is askedDependencyDescriptorgetDependencyDescriptor()Returns the dependency descriptor in which this dependency artifact descriptor is declared.java.lang.StringgetExt()Returns the ext of the artifact askedjava.lang.StringgetName()Returns the name of the artifact askedjava.lang.StringgetType()Returns the type of the artifact askedjava.net.URLgetUrl()Returns the url to look this artifact atinthashCode()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 extraAttributes)
- Parameters:
dd-name-type-url-
-
-
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-
-
getDependencyDescriptor
public DependencyDescriptor getDependencyDescriptor()
Description copied from interface:DependencyArtifactDescriptorReturns the dependency descriptor in which this dependency artifact descriptor is declared.- Specified by:
getDependencyDescriptorin interfaceDependencyArtifactDescriptor- Returns:
- the dependency descriptor in which this dependency artifact descriptor is declared.
-
getName
public java.lang.String getName()
Description copied from interface:DependencyArtifactDescriptorReturns the name of the artifact asked- Specified by:
getNamein interfaceDependencyArtifactDescriptor- Returns:
-
getType
public java.lang.String getType()
Description copied from interface:DependencyArtifactDescriptorReturns the type of the artifact asked- Specified by:
getTypein interfaceDependencyArtifactDescriptor- Returns:
-
getExt
public java.lang.String getExt()
Description copied from interface:DependencyArtifactDescriptorReturns the ext of the artifact asked- Specified by:
getExtin interfaceDependencyArtifactDescriptor- Returns:
-
getConfigurations
public java.lang.String[] getConfigurations()
Description copied from interface:DependencyArtifactDescriptorReturns the configurations of the module in which the artifact is asked- Specified by:
getConfigurationsin interfaceConfigurationAware- Specified by:
getConfigurationsin interfaceDependencyArtifactDescriptor- Returns:
- an array of configuration names in which the artifact is asked
-
getUrl
public java.net.URL getUrl()
Description copied from interface:DependencyArtifactDescriptorReturns the url to look this artifact at- Specified by:
getUrlin interfaceDependencyArtifactDescriptor- Returns:
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-