com.atlassian.greenhopper.model.issue
Class VersionWrapper

java.lang.Object
  extended by com.atlassian.greenhopper.model.issue.VersionWrapper
All Implemented Interfaces:
GHVersion

public class VersionWrapper
extends java.lang.Object
implements GHVersion

VersionWrapper represents the GreenHopper extension for a JIRA version, enriching it with additional information. It is implemented as a wrapper so certain methods (like GenericValue stuff) can be hidden and datatypes can be shielded (like DateMidnight).

Author:
ahennecke

Constructor Summary
VersionWrapper(com.atlassian.jira.project.version.Version version)
           
 
Method Summary
 java.lang.String getDescription()
           
 org.joda.time.DateMidnight getEndDate()
           
 java.lang.Long getId()
           
 java.lang.String getName()
           
 org.joda.time.DateMidnight getReleaseDate()
           
 org.joda.time.DateMidnight getStartDate()
           
 com.atlassian.jira.project.version.Version getVersion()
          Deprecated. 
 boolean isArchived()
           
 boolean isReleased()
           
 void setDescription(java.lang.String description)
           
 void setEndDate(org.joda.time.DateMidnight endDate)
           
 void setName(java.lang.String name)
           
 void setReleaseDate(org.joda.time.DateMidnight releaseDate)
           
 void setStartDate(org.joda.time.DateMidnight startDate)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VersionWrapper

public VersionWrapper(com.atlassian.jira.project.version.Version version)
Method Detail

getVersion

@Deprecated
public com.atlassian.jira.project.version.Version getVersion()
Deprecated. 

Specified by:
getVersion in interface GHVersion

getId

public java.lang.Long getId()
Specified by:
getId in interface GHVersion

getReleaseDate

public org.joda.time.DateMidnight getReleaseDate()
Specified by:
getReleaseDate in interface GHVersion

getName

public java.lang.String getName()
Specified by:
getName in interface GHVersion

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface GHVersion

getStartDate

public org.joda.time.DateMidnight getStartDate()
Specified by:
getStartDate in interface GHVersion

setStartDate

public void setStartDate(org.joda.time.DateMidnight startDate)
Specified by:
setStartDate in interface GHVersion

getEndDate

public org.joda.time.DateMidnight getEndDate()
Specified by:
getEndDate in interface GHVersion

setEndDate

public void setEndDate(org.joda.time.DateMidnight endDate)
Specified by:
setEndDate in interface GHVersion

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isArchived

public boolean isArchived()
Specified by:
isArchived in interface GHVersion

isReleased

public boolean isReleased()
Specified by:
isReleased in interface GHVersion

setDescription

public void setDescription(java.lang.String description)
Specified by:
setDescription in interface GHVersion

setName

public void setName(java.lang.String name)
Specified by:
setName in interface GHVersion

setReleaseDate

public void setReleaseDate(org.joda.time.DateMidnight releaseDate)
Specified by:
setReleaseDate in interface GHVersion


Copyright © 2007-2012 Atlassian. All Rights Reserved.