public class

MockVersion

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

Summary

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
String getDescription()
GenericValue getGenericValue()
Get the backing GenericValue object.
Long getId()
Long getLong(String name)
Retrieve a numeric field.
String getName()
GenericValue getProject()
Returns Project as a GenericValue.
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)
Retrieve a String field.
Timestamp getTimestamp(String name)
Retrieve a timestamp field.
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)
Sets the start date of the version
void store()
Persist this object's immediate fields.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.ofbiz.OfBizValueWrapper
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 String getDescription ()

public GenericValue getGenericValue ()

Get the backing GenericValue object.

Returns
  • the backing GenericValue object.

public Long getId ()

public Long getLong (String name)

Retrieve a numeric field.

Parameters
name the field name
Returns
  • the value for the given field.

public String getName ()

public GenericValue getProject ()

Returns Project as a GenericValue.

Returns
  • Project as a GenericValue.

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.

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)

Retrieve a String field.

Parameters
name the field name
Returns
  • the value for the given field.

public Timestamp getTimestamp (String name)

Retrieve a timestamp field.

Parameters
name the field name
Returns
  • the value for the given field.

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)

Sets the start date of the version

Parameters
startDate The start date of the version

public void store ()

Persist this object's immediate fields.

public String toString ()