Class ProjectModule


  • @OpenApiAll
    public class ProjectModule
    extends java.lang.Object
    Wrapper Class of IAttachedProject.
    Since:
    Feb 11, 2019
    • Constructor Detail

    • Method Detail

      • getName

        public java.lang.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 java.util.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 java.lang.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 java.lang.String getUsedVersion()
        Get used version of attached project.
        Returns:
        used version
      • getLatestVersion

        public java.lang.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 java.lang.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 java.util.List<java.lang.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 java.lang.String getRemoteID()
        Return remote id for an attached project
        Returns:
        remote id
      • getURI

        public java.net.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 java.lang.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 java.util.List<ProjectVersion> getVersionList()
        Return list of project version of attached project.
        Returns:
        a list of ProjectVersion of attached project
      • getVersions

        public java.util.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 java.util.List<ProjectVersion> getVersions​(java.lang.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