public class

MockVersion

extends Object
implements Version
java.lang.Object
   ↳ com.atlassian.jira.mock.project.MockVersion

Summary

[Expand]
Inherited Fields
From interface com.atlassian.jira.entity.WithId
From interface com.atlassian.jira.util.Named
Public Constructors
MockVersion()
MockVersion(GenericValue genericValue)
MockVersion(long id, String name)
MockVersion(long id, String name, Project project)
MockVersion(long id, String name, Project project, Long sequence)
Public Methods
Version clone()
String getDescription()
GenericValue getGenericValue()
Long getId()
Long getLong(String name)
String getName()
Project getProject()
Returns project this version relates to.
Long getProjectId()
Returns the ID of the project that this version belongs to.
Project getProjectObject()
Returns project this version relates to.
Date getReleaseDate()
Long getSequence()
Date getStartDate()
Returns the start date of the version
String getString(String name)
Timestamp getTimestamp(String name)
boolean isArchived()
boolean isReleased()
void setArchived(boolean archived)
void setDescription(String description)
void setId(Long id)
void setName(String name)
MockVersion setProjectObject(Project project)
void setReleaseDate(Date releasedate)
void setReleased(boolean released)
void setSequence(Long sequence)
void setStartDate(Date startDate)
void store()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.entity.WithId
From interface com.atlassian.jira.project.ProjectConstant
From interface com.atlassian.jira.project.version.Version
From interface com.atlassian.jira.util.Named
From interface com.atlassian.jira.util.NamedWithDescription

Public Constructors

public MockVersion ()

public MockVersion (GenericValue genericValue)

public MockVersion (long id, String name)

public MockVersion (long id, String name, Project project)

public MockVersion (long id, String name, Project project, Long sequence)

Public Methods

public Version clone ()

public String getDescription ()

public GenericValue getGenericValue ()

public Long getId ()

public Long getLong (String name)

public String getName ()

public Project getProject ()

Returns project this version relates to.

Returns
  • project this version relates to.

public Long getProjectId ()

Returns the ID of the project that this version belongs to.

Returns
  • the ID of the project that this version belongs to.

public Project getProjectObject ()

Returns project this version relates to.

Same as getProject() and exists for legacy reasons.

Returns
  • project domain object

public Date getReleaseDate ()

public Long getSequence ()

public Date getStartDate ()

Returns the start date of the version

Returns
  • The start date of the version

public String getString (String name)

public Timestamp getTimestamp (String name)

public boolean isArchived ()

public boolean isReleased ()

public void setArchived (boolean archived)

public void setDescription (String description)

public void setId (Long id)

public void setName (String name)

public MockVersion setProjectObject (Project project)

public void setReleaseDate (Date releasedate)

public void setReleased (boolean released)

public void setSequence (Long sequence)

public void setStartDate (Date startDate)

public void store ()

public String toString ()