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 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 in which the artifact is askedDependencyDescriptor
getDependencyDescriptor()
Returns the dependency descriptor in which this dependency artifact descriptor is declared.java.lang.String
getExt()
Returns the ext of the artifact askedjava.lang.String
getName()
Returns the name of the artifact askedjava.lang.String
getType()
Returns the type of the artifact askedjava.net.URL
getUrl()
Returns the url to look this artifact atint
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 extraAttributes)
- Parameters:
dd
-name
-type
-url
-
-
-
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
-
-
getDependencyDescriptor
public DependencyDescriptor getDependencyDescriptor()
Description copied from interface:DependencyArtifactDescriptor
Returns the dependency descriptor in which this dependency artifact descriptor is declared.- Specified by:
getDependencyDescriptor
in interfaceDependencyArtifactDescriptor
- Returns:
- the dependency descriptor in which this dependency artifact descriptor is declared.
-
getName
public java.lang.String getName()
Description copied from interface:DependencyArtifactDescriptor
Returns the name of the artifact asked- Specified by:
getName
in interfaceDependencyArtifactDescriptor
- Returns:
-
getType
public java.lang.String getType()
Description copied from interface:DependencyArtifactDescriptor
Returns the type of the artifact asked- Specified by:
getType
in interfaceDependencyArtifactDescriptor
- Returns:
-
getExt
public java.lang.String getExt()
Description copied from interface:DependencyArtifactDescriptor
Returns the ext of the artifact asked- Specified by:
getExt
in interfaceDependencyArtifactDescriptor
- 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 interfaceConfigurationAware
- Specified by:
getConfigurations
in interfaceDependencyArtifactDescriptor
- Returns:
- an array of configuration names in which the artifact is asked
-
getUrl
public java.net.URL getUrl()
Description copied from interface:DependencyArtifactDescriptor
Returns the url to look this artifact at- Specified by:
getUrl
in interfaceDependencyArtifactDescriptor
- Returns:
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-