com.danube.scrumworks.api2
Class RevisionInfo

java.lang.Object
  extended by com.danube.scrumworks.api2.RevisionInfo
All Implemented Interfaces:
java.io.Serializable

public final class RevisionInfo
extends java.lang.Object
implements java.io.Serializable

Holds revision information for changes made to data in ScrumWorks.

See Also:
Serialized Form

Constructor Summary
RevisionInfo()
          Constructs a new RevisionInfo.
RevisionInfo(int revisionNumber, java.util.Date timeStamp, java.lang.String userName)
          Constructs a new RevisionInfo.
 
Method Summary
 int getRevisionNumber()
          Gets the revision number.
 java.util.Date getTimeStamp()
          Gets the time the change was made.
 java.lang.String getUserName()
          Gets the name of the user who made the change.
 void setRevisionNumber(int revisionNumber)
          Sets the revision number.
 void setTimeStamp(java.util.Date timeStamp)
          Sets the time the change was made.
 void setUserName(java.lang.String userName)
          Sets the name of the user who made the change.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RevisionInfo

public RevisionInfo()
Constructs a new RevisionInfo.


RevisionInfo

public RevisionInfo(int revisionNumber,
                    java.util.Date timeStamp,
                    java.lang.String userName)
Constructs a new RevisionInfo.

Parameters:
revisionNumber - the revision number
timeStamp - the time the change was made
userName - the name of the user who made the change
Throws:
java.lang.IllegalArgumentException - if the revision argument is negative or any argument is null
Method Detail

getRevisionNumber

public int getRevisionNumber()
Gets the revision number.

Returns:
the revision number

setRevisionNumber

public void setRevisionNumber(int revisionNumber)
Sets the revision number.

Parameters:
revisionNumber - the new revision number
Throws:
java.lang.IllegalArgumentException - if the argument is negative

getTimeStamp

public java.util.Date getTimeStamp()
Gets the time the change was made.

Returns:
the time the change was made

setTimeStamp

public void setTimeStamp(java.util.Date timeStamp)
Sets the time the change was made.

Parameters:
timeStamp - the new time stamp
Throws:
java.lang.IllegalArgumentException - if the argument is null

getUserName

public java.lang.String getUserName()
Gets the name of the user who made the change.

Returns:
the user name

setUserName

public void setUserName(java.lang.String userName)
Sets the name of the user who made the change.

Parameters:
userName - the new user name
Throws:
java.lang.IllegalArgumentException - if the argument is null