Class ArtifactDescriptor
java.lang.Object
org.eclipse.equinox.p2.repository.artifact.spi.ArtifactDescriptor
- All Implemented Interfaces:
IMemberProvider,IArtifactDescriptor
This represents information about a given artifact stored on a particular byte server.
- Since:
- 2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IArtifactKeystatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected IProcessingStepDescriptor[]Fields inherited from interface org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor
ARTIFACT_CHECKSUM, ARTIFACT_MD5, ARTIFACT_SIZE, DOWNLOAD_CHECKSUM, DOWNLOAD_CONTENTTYPE, DOWNLOAD_MD5, DOWNLOAD_SIZE, FORMAT, FORMAT_PACKED, TYPE_ZIP -
Constructor Summary
ConstructorsConstructorDescriptionReturns a new artifact descriptor that uses the provided artifact keyCreates a new artifact descriptor with the same key, properties, repository, and processing steps as the provided base descriptor. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperties(Map<String, String> additionalProperties) booleanReturn the key for the artifact described by this descriptor.Returns the value for the specified member.Return the list of processing steps associated with this descriptor.Returns a read-only collection of the properties of the artifact descriptor.getProperty(String propertyKey) Return the value of the given property in this descriptornullis returned if no such property existsReturn the artifact repository that holds the artifact described by this descriptor.inthashCode()voidvoidsetProperty(String key, String value) voidsetRepository(IArtifactRepository value) toString()
-
Field Details
-
MEMBER_ARTIFACT_KEY
- See Also:
-
MEMBER_PROCESSING_STEPS
- See Also:
-
MEMBER_PROPERTIES
- See Also:
-
MEMBER_REPOSITORY
- See Also:
-
key
-
processingSteps
-
properties
-
-
Constructor Details
-
ArtifactDescriptor
Creates a new artifact descriptor with the same key, properties, repository, and processing steps as the provided base descriptor.- Parameters:
base- the descriptor to use as a template for this new descriptor
-
ArtifactDescriptor
Returns a new artifact descriptor that uses the provided artifact key- Parameters:
key- The artifact key corresponding to this descriptor
-
-
Method Details
-
getArtifactKey
Description copied from interface:IArtifactDescriptorReturn the key for the artifact described by this descriptor.- Specified by:
getArtifactKeyin interfaceIArtifactDescriptor- Returns:
- the key associated with this descriptor
-
getProperty
Description copied from interface:IArtifactDescriptorReturn the value of the given property in this descriptornullis returned if no such property exists- Specified by:
getPropertyin interfaceIArtifactDescriptor- Parameters:
propertyKey- the property key to look for- Returns:
- the value of the given property or
null
-
setProperty
-
addProperties
-
getProperties
Returns a read-only collection of the properties of the artifact descriptor.- Specified by:
getPropertiesin interfaceIArtifactDescriptor- Returns:
- the properties of this artifact descriptor.
-
getProcessingSteps
Description copied from interface:IArtifactDescriptorReturn the list of processing steps associated with this descriptor. An empty set of steps implies that this descriptor describes a complete copy of the artifact in its native form. If one or more steps are present, they may be performed when the artifact is transferred from the repository that contains it.- Specified by:
getProcessingStepsin interfaceIArtifactDescriptor- Returns:
- the list of processing steps for this descriptor
-
setProcessingSteps
-
equals
-
hashCode
public int hashCode() -
getRepository
Description copied from interface:IArtifactDescriptorReturn the artifact repository that holds the artifact described by this descriptor.nullis returned if this descriptor is not held in a repository.- Specified by:
getRepositoryin interfaceIArtifactDescriptor- Returns:
- the repository holding this artifact or
nullif none.
-
setRepository
-
toString
-
getMember
Description copied from interface:IMemberProviderReturns the value for the specified member. Implementers can rely on that thememberNameis a string that has been internalized usingString.intern().- Specified by:
getMemberin interfaceIMemberProvider- Parameters:
memberName- The name of the member- Returns:
- The member value.
-