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 void
addConfiguration(java.lang.String conf)
Add a configuration for this artifact.boolean
equals(java.lang.Object obj)
java.lang.String[]
getConfigurations()
Returns the configurations of the module to which the object is attachedDependencyDescriptor
getDependencyDescriptor()
java.lang.String
getExt()
java.lang.String
getName()
java.lang.String
getType()
java.net.URL
getUrl()
int
hashCode()
java.lang.String
toString()
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
addConfiguration
public void addConfiguration(java.lang.String conf)
Add a configuration for this artifact.- Specified by:
addConfiguration
in interfaceConfigurationAware
- Parameters:
conf
- ditto
-
getDependencyDescriptor
public DependencyDescriptor getDependencyDescriptor()
- Specified by:
getDependencyDescriptor
in interfaceDependencyArtifactDescriptor
- Returns:
- the dependency descriptor in which this dependency artifact descriptor is declared.
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceDependencyArtifactDescriptor
- Returns:
- the name of the artifact asked
-
getType
public java.lang.String getType()
- Specified by:
getType
in interfaceDependencyArtifactDescriptor
- Returns:
- the type of the artifact asked
-
getExt
public java.lang.String getExt()
- Specified by:
getExt
in interfaceDependencyArtifactDescriptor
- Returns:
- the ext of the artifact asked
-
getConfigurations
public java.lang.String[] getConfigurations()
Description copied from interface:ConfigurationAware
Returns the configurations of the module to which the object is attached- Specified by:
getConfigurations
in interfaceConfigurationAware
- Specified by:
getConfigurations
in interfaceDependencyArtifactDescriptor
- Returns:
- an array of configuration names of the module in which the artifact is asked
-
getUrl
public java.net.URL getUrl()
- Specified by:
getUrl
in interfaceDependencyArtifactDescriptor
- Returns:
- the url to look this artifact up at
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-