Class AbstractProjectAttachmentConfiguration

  • All Implemented Interfaces:
    java.lang.Cloneable
    Direct Known Subclasses:
    ProjectAttachmentConfiguration

    @OpenApi
    public class AbstractProjectAttachmentConfiguration
    extends java.lang.Object
    implements java.lang.Cloneable
    • Field Detail

      • readOnly

        protected boolean readOnly
      • attachedProjectURI

        protected org.eclipse.emf.common.util.URI attachedProjectURI
      • customOptions

        protected java.util.Map<java.lang.String,​java.lang.String> customOptions
      • attachedProject

        protected IProject attachedProject
        Reference to the directly attached project if attachment configuration was created using
      • attachmentType

        protected com.nomagic.ci.persistence.spi.decomposition.AttachmentType attachmentType
    • Constructor Detail

      • AbstractProjectAttachmentConfiguration

        protected AbstractProjectAttachmentConfiguration​(org.eclipse.emf.common.util.URI attachedProjectURI,
                                                         boolean readOnly,
                                                         @CheckForNull
                                                         IVersionDescriptor stickyVersion,
                                                         com.nomagic.ci.persistence.spi.decomposition.AttachmentType attachmentType)
    • Method Detail

      • getAttachedProjectURI

        public org.eclipse.emf.common.util.URI getAttachedProjectURI()
        Gets attachment project URI TODO rename to abstract or relative
        Returns:
        URI
      • isReadOnly

        public boolean isReadOnly()
        Gets attachment mode
      • setReadOnly

        public void setReadOnly​(boolean readOnly)
        Sets the readOnly for the ProjectAttachmentConfiguration.
        Parameters:
        readOnly - the new readOnly value
      • setStickyVersion

        public void setStickyVersion​(IVersionDescriptor stickyVersion)
        Sets the sticky version of the attachment project
        Parameters:
        stickyVersion - the version of the attached project that the primary project is attached to
      • getCustomOptionNames

        public java.util.Set<java.lang.String> getCustomOptionNames()
        Gets the set of custom option names
      • getCustomOptionValue

        public java.lang.String getCustomOptionValue​(java.lang.String name)
        Gets value of the option designated by the provided name
        Parameters:
        name - the key to get value for
      • setCustomOptionValue

        public void setCustomOptionValue​(java.lang.String name,
                                         java.lang.String value)
        Sets a custom option with provided name and value
        Parameters:
        name - option name
        value - option value
      • getAttachedProject

        @CheckForNull
        public IProject getAttachedProject()
      • getAttachmentType

        public com.nomagic.ci.persistence.spi.decomposition.AttachmentType getAttachmentType()
        Gets attachment type. Default is AttachmentType.MANUAL
        Returns:
        the attachment type
      • setAttachmentType

        public void setAttachmentType​(com.nomagic.ci.persistence.spi.decomposition.AttachmentType attachmentType)
        Sets new value for attachmentType attribute, null is not permitted
        Parameters:
        attachmentType - attachment type