Class ProjectModule
java.lang.Object
com.nomagic.magicdraw.magicreport.tools.ProjectModule
Wrapper Class of
IAttachedProject
.- Since:
- Feb 11, 2019
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
equalsIgnoreVersion
(ProjectDescriptor module) com.nomagic.ci.persistence.IAttachedProject
Get real attached project.com.nomagic.ci.persistence.spi.decomposition.AbstractProjectAttachmentConfiguration
Get attachmentConfiguration of attached projectReturn load kind of attached projectReturns MagicDraw project for attached project.Get attached project description.Provide information about project version and required resources/plugins for attached project.Get latest version of attached project.Collection<com.nomagic.ci.persistence.mounting.IMountPoint>
Gets mount points for attached project, i.e.getName()
Get attached project nameGet attached project options.Return project version of attached project.Return remote id for an attached projectReturn user friendly representation string about attached projectGet required version of attached project.Style manager of an attached projectgetTags()
Return a list of version tags.getURI()
Convert EMF uri to java.net.URIGet used version of attached project.long
Get project version number.Return list of project version of attached project.Return list of project version of attached project.getVersions
(String sortType) Return list of project version of attached project.
The result will be sorted by specified sortType.boolean
isDirty()
boolean
Gets attachment modeboolean
isLatest()
Return true if the attached project is latest version.boolean
isLoaded()
Check if attached project is loaded.boolean
Check if to load index.boolean
isLocked()
Check if attached project is loaded from old format file and can not be edited in current project.boolean
Load mode of the attached project, loaded manually if true.boolean
isRemote()
Check if an attached project is remote - from teamwork server or TW Cloud.
-
Constructor Details
-
ProjectModule
public ProjectModule(com.nomagic.ci.persistence.IAttachedProject attachedProject)
-
-
Method Details
-
getAttachedProject
public com.nomagic.ci.persistence.IAttachedProject getAttachedProject()Get real attached project.- Returns:
- an
IAttachedProject
.
-
getAttachmentConfiguration
public com.nomagic.ci.persistence.spi.decomposition.AbstractProjectAttachmentConfiguration getAttachmentConfiguration()Get attachmentConfiguration of attached project- Returns:
- an
AbstractProjectAttachmentConfiguration
-
getName
Get attached project name- Returns:
- attached project name
-
isLoaded
public boolean isLoaded()Check if attached project is loaded.- Returns:
- true if attached project is loaded.
-
getAutoLoadType
Return load kind of attached project- Returns:
- load kind
-
isLoadIndex
public boolean isLoadIndex()Check if to load index.- Returns:
- true if option is set to load index.
-
isManualUnloaded
public boolean isManualUnloaded()Load mode of the attached project, loaded manually if true.- Returns:
- true if load manually
-
getMounts
Gets mount points for attached project, i.e. returns all mount points that are mounted share points of attached project. Returns empty set if there are no mount points to return.- Returns:
- non-
null
set ofmount points
for specific project
-
getDescription
Get attached project description.- Returns:
- attached project description
-
isLocked
public boolean isLocked()Check if attached project is loaded from old format file and can not be edited in current project.- Returns:
- true if attached project is loaded from old format file and can not be edited in current project
-
getUsedVersion
Get used version of attached project.- Returns:
- used version
-
getLatestVersion
Get latest version of attached project.- Returns:
- latest version
-
getVersion
public long getVersion()Get project version number.- Returns:
- version number as long
-
getRequiredVersion
Get required version of attached project.- Returns:
- required version
-
isLatest
public boolean isLatest()Return true if the attached project is latest version.- Returns:
- true if the attached project is latest version
-
equalsIgnoreVersion
-
getTags
Return a list of version tags.- Returns:
- tags of the version if any
-
isEditable
public boolean isEditable()Gets attachment mode- Returns:
- attachment mode
-
getBelongsTo
Returns MagicDraw project for attached project.- Returns:
Project
-
getRemoteID
Return remote id for an attached project- Returns:
- remote id
-
getURI
Convert EMF uri to java.net.URI- Returns:
- java net uri
-
isRemote
public boolean isRemote()Check if an attached project is remote - from teamwork server or TW Cloud.- Returns:
- true if an attached project is from server
-
getStyleManager
Style manager of an attached project- Returns:
- style manager in an attached project options
-
getOptions
Get attached project options.- Returns:
- attached project options.
-
isDirty
public boolean isDirty() -
getRepresentationString
Return user friendly representation string about attached project- Returns:
- user friendly representation
-
getExporterDescription
Provide information about project version and required resources/plugins for attached project.- Returns:
- description of attached project
-
getProjectVersion
Return project version of attached project.- Returns:
- a
ProjectVersion
of attached project
-
getVersionList
Return list of project version of attached project.- Returns:
- a list of
ProjectVersion
of attached project
-
getVersions
Return list of project version of attached project.
The result will be sorted in descending order.- Returns:
- a list of
ProjectVersion
of attached project
-
getVersions
Return list of project version of attached project.
The result will be sorted by specified sortType.- Parameters:
sortType
- type of sorting. Specify "desc" sort in descending order. Default is ascending sort.- Returns:
- a list of
ProjectVersion
of attached project
-