|
Eclipse Platform Kepler (4.3) |
|||||||||
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 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
|
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(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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
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 descriptorMethod Detail |
---|
public IArtifactKey getArtifactKey()
IArtifactDescriptor
getArtifactKey
in interface IArtifactDescriptor
public java.lang.String getProperty(java.lang.String propertyKey)
IArtifactDescriptor
null
is returned if no such property exists
getProperty
in interface IArtifactDescriptor
propertyKey
- the property key to look for
null
public 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 IArtifactDescriptor
public IProcessingStepDescriptor[] getProcessingSteps()
IArtifactDescriptor
getProcessingSteps
in interface IArtifactDescriptor
public void setProcessingSteps(IProcessingStepDescriptor[] value)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
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 java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object getMember(java.lang.String memberName)
IMemberProvider
memberName
is a string that has been
internalized using String.intern()
.
getMember
in interface IMemberProvider
memberName
- The name of the member
|
Eclipse Platform Kepler (4.3) |
|||||||||
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, 2012. All rights reserved.