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 IProjectattachedProjectReference to the directly attached project if attachment configuration was created usingprotected org.eclipse.emf.common.util.URIattachedProjectURIprotected com.nomagic.ci.persistence.spi.decomposition.AttachmentTypeattachmentTypeprotected java.util.Map<java.lang.String,java.lang.String>customOptionsprotected booleanreadOnlyprotected IVersionDescriptorstickyVersion 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractProjectAttachmentConfiguration(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 IProjectgetAttachedProject()org.eclipse.emf.common.util.URIgetAttachedProjectURI()Gets attachment projectURITODO rename to abstract or relativecom.nomagic.ci.persistence.spi.decomposition.AttachmentTypegetAttachmentType()Gets attachment type.java.util.Set<java.lang.String>getCustomOptionNames()Gets the set of custom option namesjava.lang.StringgetCustomOptionValue(java.lang.String name)Gets value of the option designated by the provided nameIVersionDescriptorgetStickyVersion()Gets the sticky version of the attachment projectbooleanisReadOnly()Gets attachment modevoidsetAttachmentType(com.nomagic.ci.persistence.spi.decomposition.AttachmentType attachmentType)Sets new value forattachmentTypeattribute,nullis not permittedvoidsetCustomOptionValue(java.lang.String name, java.lang.String value)Sets a custom option with provided name and valuevoidsetReadOnly(boolean readOnly)Sets the readOnly for the ProjectAttachmentConfiguration.voidsetStickyVersion(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 projectURITODO 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 forattachmentTypeattribute,nullis not permitted- Parameters:
 attachmentType- attachment type
 
 - 
 
 -