ConfigurationAware
, DependencyArtifactDescriptor
, ExtendableItem
public class DefaultDependencyArtifactDescriptor extends UnmodifiableExtendableItem implements DependencyArtifactDescriptor, ConfigurationAware
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) |
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 asked
|
DependencyDescriptor |
getDependencyDescriptor() |
Returns the dependency descriptor in which this dependency artifact descriptor is declared.
|
java.lang.String |
getExt() |
Returns the ext of the artifact asked
|
java.lang.String |
getName() |
Returns the name of the artifact asked
|
java.lang.String |
getType() |
Returns the type of the artifact asked
|
java.net.URL |
getUrl() |
Returns the url to look this artifact at
|
int |
hashCode() |
|
java.lang.String |
toString() |
getAttribute, getAttributes, getExtraAttribute, getExtraAttributes, getQualifiedExtraAttributes
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAttribute, getAttributes, getExtraAttribute, getExtraAttributes, getQualifiedExtraAttributes, setExtraAttribute, setStandardAttribute
public DefaultDependencyArtifactDescriptor(DependencyDescriptor dd, java.lang.String name, java.lang.String type, java.lang.String ext, java.net.URL url, java.util.Map extraAttributes)
dd
- name
- type
- url
- public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void addConfiguration(java.lang.String conf)
addConfiguration
in interface ConfigurationAware
conf
- public DependencyDescriptor getDependencyDescriptor()
DependencyArtifactDescriptor
getDependencyDescriptor
in interface DependencyArtifactDescriptor
public java.lang.String getName()
DependencyArtifactDescriptor
getName
in interface DependencyArtifactDescriptor
public java.lang.String getType()
DependencyArtifactDescriptor
getType
in interface DependencyArtifactDescriptor
public java.lang.String getExt()
DependencyArtifactDescriptor
getExt
in interface DependencyArtifactDescriptor
public java.lang.String[] getConfigurations()
DependencyArtifactDescriptor
getConfigurations
in interface ConfigurationAware
getConfigurations
in interface DependencyArtifactDescriptor
public java.net.URL getUrl()
DependencyArtifactDescriptor
getUrl
in interface DependencyArtifactDescriptor
public java.lang.String toString()
toString
in class java.lang.Object