Class ProjectModule

java.lang.Object
com.nomagic.magicdraw.magicreport.tools.ProjectModule

@OpenApiAll public class ProjectModule extends Object
Wrapper Class of IAttachedProject.
Since:
Feb 11, 2019
  • 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

      public String 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

      public AutoLoadKind 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

      public Collection<com.nomagic.ci.persistence.mounting.IMountPoint> 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 of mount points for specific project
    • getDescription

      public String 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

      public String getUsedVersion()
      Get used version of attached project.
      Returns:
      used version
    • getLatestVersion

      public String getLatestVersion()
      Get latest version of attached project.
      Returns:
      latest version
    • getVersion

      public long getVersion()
      Get project version number.
      Returns:
      version number as long
    • getRequiredVersion

      public String 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

      public boolean equalsIgnoreVersion(ProjectDescriptor module)
    • getTags

      public List<String> 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

      public Project getBelongsTo()
      Returns MagicDraw project for attached project.
      Returns:
      Project
    • getRemoteID

      public String getRemoteID()
      Return remote id for an attached project
      Returns:
      remote id
    • getURI

      public URI 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

      public StyleManager getStyleManager()
      Style manager of an attached project
      Returns:
      style manager in an attached project options
    • getOptions

      public ProjectOptions getOptions()
      Get attached project options.
      Returns:
      attached project options.
    • isDirty

      public boolean isDirty()
    • getRepresentationString

      public String getRepresentationString()
      Return user friendly representation string about attached project
      Returns:
      user friendly representation
    • getExporterDescription

      public XmiExporterDescription getExporterDescription()
      Provide information about project version and required resources/plugins for attached project.
      Returns:
      description of attached project
    • getProjectVersion

      public ProjectVersion getProjectVersion()
      Return project version of attached project.
      Returns:
      a ProjectVersion of attached project
    • getVersionList

      public List<ProjectVersion> getVersionList()
      Return list of project version of attached project.
      Returns:
      a list of ProjectVersion of attached project
    • getVersions

      public List<ProjectVersion> 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

      public List<ProjectVersion> getVersions(String sortType)
      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