Class ProjectVersion
java.lang.Object
com.nomagic.magicdraw.magicreport.tools.ProjectVersion
Version represents some version of the project.It has date, user and number.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Sort Collection of ProjectVersion in ascendingstatic class
Sort Collection of ProjectVersion in descending -
Field Summary
-
Constructor Summary
ConstructorDescriptionProjectVersion
(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. -
Method Summary
Modifier and TypeMethodDescriptionReturns the user who created the version.getDate()
Returns the date of the version.Returns date represented by string.long
Returns the number of the version.Deprecated.getTags()
Returns all tags.getUser()
Returns the user who created the version.Returns version object of projectReturns string representation about version number.void
setComment
(String comment) Sets comment text.void
Sets version date.void
setNumber
(long number) Sets version numbervoid
setProjectDescriptor
(ProjectDescriptor projectDescriptor) Set project descriptor.void
Sets user for the versionvoid
setVersion
(Object version) Sets version object
-
Field Details
-
DESCENDING
- See Also:
-
ASCENDING
- See Also:
-
-
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 Descriptorversion
- version objectcomment
- comment of versiondate
- date of versionnumber
- number of versionuser
- user of version
-
-
Method Details
-
getComment
- Returns:
- comment for this version.
-
setComment
Sets comment text.- Parameters:
com
- the comment text.
-
getDate
Returns the date of the version.- Returns:
- the date.
-
setDate
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
Returns the user who created the version.- Returns:
- the user who created the version.
-
getAuthor
Returns the user who created the version.- Returns:
- the user who created the version.
-
setUser
Sets user for the version- Parameters:
user
-
-
getDateAsString
Returns date represented by string. -
getVersionAsString
Returns string representation about version number.- Returns:
- string which represents version number.
-
getNumberAsString
Deprecated.Returns string representation about version number. Deprecated method, use getVersionAsString() instead.- Returns:
- string which represents version number.
-
getVersion
Returns version object of project -
setVersion
Sets version object- Parameters:
user
-
-
getTags
Returns all tags. -
getProjectDescriptor
- Returns:
- projectDescriptor Project Descriptor
-
setProjectDescriptor
Set project descriptor.- Parameters:
projectDescriptor
- project Descriptor
-