public class ArtifactDescriptor extends Object implements IArtifactDescriptor, IMemberProvider
Modifier and Type | Field and Description |
---|---|
protected IArtifactKey |
key |
static String |
MEMBER_ARTIFACT_KEY |
static String |
MEMBER_PROCESSING_STEPS |
static String |
MEMBER_PROPERTIES |
static String |
MEMBER_REPOSITORY |
protected IProcessingStepDescriptor[] |
processingSteps |
protected Map<String,String> |
properties |
ARTIFACT_MD5, ARTIFACT_SIZE, 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(Map<String,String> additionalProperties) |
boolean |
equals(Object obj) |
IArtifactKey |
getArtifactKey()
Return the key for the artifact described by this descriptor.
|
Object |
getMember(String memberName)
Returns the value for the specified member.
|
IProcessingStepDescriptor[] |
getProcessingSteps()
Return the list of processing steps associated with this descriptor.
|
Map<String,String> |
getProperties()
Returns a read-only collection of the properties of the artifact descriptor.
|
String |
getProperty(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(String key,
String value) |
void |
setRepository(IArtifactRepository value) |
String |
toString() |
public static final String MEMBER_ARTIFACT_KEY
public static final String MEMBER_PROCESSING_STEPS
public static final String MEMBER_PROPERTIES
public static final String MEMBER_REPOSITORY
protected IArtifactKey key
protected IProcessingStepDescriptor[] processingSteps
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()
IArtifactDescriptor
getArtifactKey
in interface IArtifactDescriptor
public String getProperty(String propertyKey)
IArtifactDescriptor
null
is returned if no such property existsgetProperty
in interface IArtifactDescriptor
propertyKey
- the property key to look fornull
public Map<String,String> getProperties()
getProperties
in interface IArtifactDescriptor
public IProcessingStepDescriptor[] getProcessingSteps()
IArtifactDescriptor
getProcessingSteps
in interface IArtifactDescriptor
public void setProcessingSteps(IProcessingStepDescriptor[] value)
public IArtifactRepository getRepository()
IArtifactDescriptor
null
is returned if this descriptor is not held in a repository.getRepository
in interface IArtifactDescriptor
null
if none.public void setRepository(IArtifactRepository value)
public Object getMember(String memberName)
IMemberProvider
memberName
is a string that has been
internalized using String.intern()
.getMember
in interface IMemberProvider
memberName
- The name of the member
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.