Class AbstractProjectAttachmentConfiguration
- java.lang.Object
-
- com.nomagic.ci.persistence.spi.decomposition.AbstractProjectAttachmentConfiguration
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
ProjectAttachmentConfiguration
@OpenApi public class AbstractProjectAttachmentConfiguration extends java.lang.Object implements java.lang.Cloneable
-
-
Field Summary
Fields Modifier and Type Field Description protected IProject
attachedProject
Reference to the directly attached project if attachment configuration was created usingprotected org.eclipse.emf.common.util.URI
attachedProjectURI
protected com.nomagic.ci.persistence.spi.decomposition.AttachmentType
attachmentType
protected java.util.Map<java.lang.String,java.lang.String>
customOptions
protected boolean
readOnly
protected IVersionDescriptor
stickyVersion
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractProjectAttachmentConfiguration(org.eclipse.emf.common.util.URI attachedProjectURI, boolean readOnly, IVersionDescriptor stickyVersion, com.nomagic.ci.persistence.spi.decomposition.AttachmentType attachmentType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IProject
getAttachedProject()
org.eclipse.emf.common.util.URI
getAttachedProjectURI()
Gets attachment projectURI
TODO rename to abstract or relativecom.nomagic.ci.persistence.spi.decomposition.AttachmentType
getAttachmentType()
Gets attachment type.java.util.Set<java.lang.String>
getCustomOptionNames()
Gets the set of custom option namesjava.lang.String
getCustomOptionValue(java.lang.String name)
Gets value of the option designated by the provided nameIVersionDescriptor
getStickyVersion()
Gets the sticky version of the attachment projectboolean
isReadOnly()
Gets attachment modevoid
setAttachmentType(com.nomagic.ci.persistence.spi.decomposition.AttachmentType attachmentType)
Sets new value forattachmentType
attribute,null
is not permittedvoid
setCustomOptionValue(java.lang.String name, java.lang.String value)
Sets a custom option with provided name and valuevoid
setReadOnly(boolean readOnly)
Sets the readOnly for the ProjectAttachmentConfiguration.void
setStickyVersion(IVersionDescriptor stickyVersion)
Sets the sticky version of the attachment project
-
-
-
Field Detail
-
readOnly
protected boolean readOnly
-
attachedProjectURI
protected org.eclipse.emf.common.util.URI attachedProjectURI
-
stickyVersion
protected IVersionDescriptor stickyVersion
-
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 projectURI
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
-
getStickyVersion
public IVersionDescriptor getStickyVersion()
Gets the sticky version of the attachment project- Returns:
IVersionDescriptor
-
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 namevalue
- option value
-
getAttachedProject
@CheckForNull public IProject getAttachedProject()
-
getAttachmentType
public com.nomagic.ci.persistence.spi.decomposition.AttachmentType getAttachmentType()
Gets attachment type. Default isAttachmentType.MANUAL
- Returns:
- the attachment type
-
setAttachmentType
public void setAttachmentType(com.nomagic.ci.persistence.spi.decomposition.AttachmentType attachmentType)
Sets new value forattachmentType
attribute,null
is not permitted- Parameters:
attachmentType
- attachment type
-
-