public class ArtifactDescriptor extends java.lang.Object implements IArtifactDescriptor, IMemberProvider
| Modifier and Type | Field and Description |
|---|---|
protected IArtifactKey |
key |
static java.lang.String |
MEMBER_ARTIFACT_KEY |
static java.lang.String |
MEMBER_PROCESSING_STEPS |
static java.lang.String |
MEMBER_PROPERTIES |
static java.lang.String |
MEMBER_REPOSITORY |
protected IProcessingStepDescriptor[] |
processingSteps |
protected java.util.Map<java.lang.String,java.lang.String> |
properties |
ARTIFACT_CHECKSUM, ARTIFACT_MD5, ARTIFACT_SIZE, DOWNLOAD_CHECKSUM, DOWNLOAD_CONTENTTYPE, DOWNLOAD_MD5, DOWNLOAD_SIZE, FORMAT, FORMAT_PACKED, TYPE_ZIP| Constructor and Description |
|---|
ArtifactDescriptor(IArtifactDescriptor base)
Creates a new artifact descriptor with the same key, properties, repository,
and processing steps as the provided base descriptor.
|
ArtifactDescriptor(IArtifactKey key)
Returns a new artifact descriptor that uses the provided artifact key
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProperties(java.util.Map<java.lang.String,java.lang.String> additionalProperties) |
boolean |
equals(java.lang.Object obj) |
IArtifactKey |
getArtifactKey()
Return the key for the artifact described by this descriptor.
|
java.lang.Object |
getMember(java.lang.String memberName)
Returns the value for the specified member.
|
IProcessingStepDescriptor[] |
getProcessingSteps()
Return the list of processing steps associated with this descriptor.
|
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Returns a read-only collection of the properties of the artifact descriptor.
|
java.lang.String |
getProperty(java.lang.String propertyKey)
Return the value of the given property in this descriptor
null
is returned if no such property exists |
IArtifactRepository |
getRepository()
Return the artifact repository that holds the artifact described by this descriptor.
|
int |
hashCode() |
void |
setProcessingSteps(IProcessingStepDescriptor[] value) |
void |
setProperty(java.lang.String key,
java.lang.String value) |
void |
setRepository(IArtifactRepository value) |
java.lang.String |
toString() |
public static final java.lang.String MEMBER_ARTIFACT_KEY
public static final java.lang.String MEMBER_PROCESSING_STEPS
public static final java.lang.String MEMBER_PROPERTIES
public static final java.lang.String MEMBER_REPOSITORY
protected IArtifactKey key
protected IProcessingStepDescriptor[] processingSteps
protected java.util.Map<java.lang.String,java.lang.String> properties
public ArtifactDescriptor(IArtifactDescriptor base)
base - the descriptor to use as a template for this new descriptorpublic ArtifactDescriptor(IArtifactKey key)
key - The artifact key corresponding to this descriptorpublic IArtifactKey getArtifactKey()
IArtifactDescriptorgetArtifactKey in interface IArtifactDescriptorpublic java.lang.String getProperty(java.lang.String propertyKey)
IArtifactDescriptornull
is returned if no such property existsgetProperty in interface IArtifactDescriptorpropertyKey - the property key to look fornullpublic void setProperty(java.lang.String key,
java.lang.String value)
public void addProperties(java.util.Map<java.lang.String,java.lang.String> additionalProperties)
public java.util.Map<java.lang.String,java.lang.String> getProperties()
getProperties in interface IArtifactDescriptorpublic IProcessingStepDescriptor[] getProcessingSteps()
IArtifactDescriptorgetProcessingSteps in interface IArtifactDescriptorpublic void setProcessingSteps(IProcessingStepDescriptor[] value)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic IArtifactRepository getRepository()
IArtifactDescriptornull is returned if this descriptor is not held in a repository.getRepository in interface IArtifactDescriptornull if none.public void setRepository(IArtifactRepository value)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object getMember(java.lang.String memberName)
IMemberProvidermemberName is a string that has been
internalized using String.intern().getMember in interface IMemberProvidermemberName - The name of the member
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.