|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.equinox.p2.repository.artifact.spi.ArtifactDescriptor
public class ArtifactDescriptor
This represents information about a given artifact stored on a particular byte server.
| Field Summary | |
|---|---|
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
|
| Fields inherited from interface org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor |
|---|
ARTIFACT_MD5, ARTIFACT_SIZE, DOWNLOAD_CONTENTTYPE, DOWNLOAD_MD5, DOWNLOAD_SIZE, FORMAT, FORMAT_PACKED, TYPE_ZIP |
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
protected Map<String,String> properties
| Constructor Detail |
|---|
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 descriptor| Method Detail |
|---|
public IArtifactKey getArtifactKey()
IArtifactDescriptor
getArtifactKey in interface IArtifactDescriptorpublic String getProperty(String propertyKey)
IArtifactDescriptornull
is returned if no such property exists
getProperty in interface IArtifactDescriptorpropertyKey - the property key to look for
null
public void setProperty(String key,
String value)
public void addProperties(Map<String,String> additionalProperties)
public Map<String,String> getProperties()
getProperties in interface IArtifactDescriptorpublic IProcessingStepDescriptor[] getProcessingSteps()
IArtifactDescriptor
getProcessingSteps in interface IArtifactDescriptorpublic void setProcessingSteps(IProcessingStepDescriptor[] value)
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class 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 String toString()
toString in class Objectpublic Object getMember(String memberName)
IMemberProvidermemberName is a string that has been
internalized using String.intern().
getMember in interface IMemberProvidermemberName - The name of the member
|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.