Class ArtifactDescriptor

    • Constructor Detail

      • ArtifactDescriptor

        public ArtifactDescriptor​(IArtifactDescriptor base)
        Creates a new artifact descriptor with the same key, properties, repository, and processing steps as the provided base descriptor.
        base - the descriptor to use as a template for this new descriptor
      • ArtifactDescriptor

        public ArtifactDescriptor​(IArtifactKey key)
        Returns a new artifact descriptor that uses the provided artifact key
        key - The artifact key corresponding to this descriptor
    • Method Detail

      • getProperty

        public String getProperty​(String propertyKey)
        Description copied from interface: IArtifactDescriptor
        Return the value of the given property in this descriptor null is returned if no such property exists
        Specified by:
        getProperty in interface IArtifactDescriptor
        propertyKey - the property key to look for
        the value of the given property or null
      • setProperty

        public void setProperty​(String key,
                                String value)
      • addProperties

        public void addProperties​(Map<String,​String> additionalProperties)
      • getProperties

        public Map<String,​String> getProperties()
        Returns a read-only collection of the properties of the artifact descriptor.
        Specified by:
        getProperties in interface IArtifactDescriptor
        the properties of this artifact descriptor.
      • getProcessingSteps

        public IProcessingStepDescriptor[] getProcessingSteps()
        Description copied from interface: IArtifactDescriptor
        Return 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:
        getProcessingSteps in interface IArtifactDescriptor
        the list of processing steps for this descriptor
      • hashCode

        public int hashCode()
        hashCode in class Object
      • getRepository

        public IArtifactRepository getRepository()
        Description copied from interface: IArtifactDescriptor
        Return the artifact repository that holds the artifact described by this descriptor. null is returned if this descriptor is not held in a repository.
        Specified by:
        getRepository in interface IArtifactDescriptor
        the repository holding this artifact or null if none.
      • getMember

        public Object getMember​(String memberName)
        Description copied from interface: IMemberProvider
        Returns the value for the specified member. Implementers can rely on that the memberName is a string that has been internalized using String.intern().
        Specified by:
        getMember in interface IMemberProvider
        memberName - The name of the member
        The member value.