com.jamasoftware.contour.ws.v3.domain
Class WsVersion

java.lang.Object
  extended by com.jamasoftware.contour.ws.v3.domain.WsVersion

public class WsVersion
extends java.lang.Object

This object represents a version of an item. A new item version is created each time you commit an update. It contains it's ID, the item it is associated with (which may or may not be the current version of that item), the version number and any comments made when the version was created.

Author:
Dylan

Constructor Summary
WsVersion()
           
 
Method Summary
 java.lang.String getComments()
          Gets the comments for this version.
 java.lang.Long getId()
          Gets the id of the version.
 WsItem getVersionItem()
          Gets the WsItem associated with this version.
 java.lang.String getVersionNumber()
          Gets the Version Number of this version.
 void setComments(java.lang.String comments)
           
 void setId(java.lang.Long id)
           
 void setVersionItem(WsItem versionItem)
           
 void setVersionNumber(java.lang.String versionNumber)
           
 java.lang.String toString()
          Gets a string representation of this version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WsVersion

public WsVersion()
Method Detail

getId

public java.lang.Long getId()
Gets the id of the version.

Returns:
the id

setId

public void setId(java.lang.Long id)

getVersionItem

public WsItem getVersionItem()
Gets the WsItem associated with this version.

Returns:
the versionItem

setVersionItem

public void setVersionItem(WsItem versionItem)

getVersionNumber

public java.lang.String getVersionNumber()
Gets the Version Number of this version. i.e. 1, 2, 3, etc...

Returns:
the versionNumber

setVersionNumber

public void setVersionNumber(java.lang.String versionNumber)

getComments

public java.lang.String getComments()
Gets the comments for this version. These often include details on the changes made.

Returns:
the comments

setComments

public void setComments(java.lang.String comments)

toString

public java.lang.String toString()
Gets a string representation of this version.

Overrides:
toString in class java.lang.Object
Returns:
String


Copyright (c) 2010 Jama Software, Inc. All Rights Reserved.