Class ProjectVersion

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

@OpenApiAll public class ProjectVersion extends Object
Version represents some version of the project.It has date, user and number.
  • Field Details

  • Constructor Details

    • ProjectVersion

      public ProjectVersion(ProjectDescriptor projectDescriptor, Object version, String comment, Date date, long number, String user)
      Constructs new version with given projectDescriptor, version object, comment, user, number and date.
      Parameters:
      projectDescriptor - Project Descriptor
      version - version object
      comment - comment of version
      date - date of version
      number - number of version
      user - user of version
  • Method Details

    • getComment

      public String getComment()
      Returns:
      comment for this version.
    • setComment

      public void setComment(String comment)
      Sets comment text.
      Parameters:
      com - the comment text.
    • getDate

      public Date getDate()
      Returns the date of the version.
      Returns:
      the date.
    • setDate

      public void setDate(Date date)
      Sets version date.
      Parameters:
      date -
    • getNumber

      public long getNumber()
      Returns the number of the version.
      Returns:
      the number.
    • setNumber

      public void setNumber(long number)
      Sets version number
      Parameters:
      number -
    • getUser

      public String getUser()
      Returns the user who created the version.
      Returns:
      the user who created the version.
    • getAuthor

      public String getAuthor()
      Returns the user who created the version.
      Returns:
      the user who created the version.
    • setUser

      public void setUser(String user)
      Sets user for the version
      Parameters:
      user -
    • getDateAsString

      public String getDateAsString()
      Returns date represented by string.
    • getVersionAsString

      public String getVersionAsString()
      Returns string representation about version number.
      Returns:
      string which represents version number.
    • getNumberAsString

      @Deprecated public String getNumberAsString()
      Deprecated.
      Returns string representation about version number. Deprecated method, use getVersionAsString() instead.
      Returns:
      string which represents version number.
    • getVersion

      public Object getVersion()
      Returns version object of project
    • setVersion

      public void setVersion(Object version)
      Sets version object
      Parameters:
      user -
    • getTags

      public List<String> getTags()
      Returns all tags.
    • getProjectDescriptor

      public ProjectDescriptor getProjectDescriptor()
      Returns:
      projectDescriptor Project Descriptor
    • setProjectDescriptor

      public void setProjectDescriptor(ProjectDescriptor projectDescriptor)
      Set project descriptor.
      Parameters:
      projectDescriptor - project Descriptor