org.apache.maven.scm
Class ChangeSet

java.lang.Object
  extended byorg.apache.maven.scm.ChangeSet

public class ChangeSet
extends java.lang.Object

Version:
$Id: ChangeSet.java 209900 2005-07-08 21:53:05Z evenisse $
Author:
Emmanuel Venisse

Field Summary
private  java.lang.String author
          User who made changes
private  java.lang.String comment
          comment provided at commit time
private  java.util.Date date
          Date the changes were committed
private static java.text.SimpleDateFormat DATE_FORMAT
          Formatter used by the getDateFormatted method.
private  ChangeFile file
           
private static java.text.SimpleDateFormat TIME_FORMAT
          Formatter used by the getTimeFormatted method.
private static java.text.SimpleDateFormat TIMESTAMP_FORMAT_1
          Formatter used to parse date/timestamp.
private static java.text.SimpleDateFormat TIMESTAMP_FORMAT_2
           
 
Constructor Summary
ChangeSet()
          Constructor used when attributes aren't available until later
ChangeSet(java.lang.String date, java.lang.String comment, java.lang.String author, ChangeFile file)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAuthor()
          Getter for property author.
 java.lang.String getComment()
          Getter for property comment.
 java.util.Date getDate()
          Getter for property date.
 java.lang.String getDateFormatted()
           
 ChangeFile getFile()
          Getter for property file.
 java.lang.String getTimeFormatted()
           
 void setAuthor(java.lang.String author)
          Setter for property author.
 void setComment(java.lang.String comment)
          Setter for property comment.
 void setDate(java.util.Date date)
          Setter for property date.
 void setDate(java.lang.String date)
          Setter for property date that takes a string and parses it
 void setFile(ChangeFile file)
          Setter for property file.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DATE_FORMAT

private static final java.text.SimpleDateFormat DATE_FORMAT
Formatter used by the getDateFormatted method.


TIME_FORMAT

private static final java.text.SimpleDateFormat TIME_FORMAT
Formatter used by the getTimeFormatted method.


TIMESTAMP_FORMAT_1

private static final java.text.SimpleDateFormat TIMESTAMP_FORMAT_1
Formatter used to parse date/timestamp.


TIMESTAMP_FORMAT_2

private static final java.text.SimpleDateFormat TIMESTAMP_FORMAT_2

date

private java.util.Date date
Date the changes were committed


author

private java.lang.String author
User who made changes


comment

private java.lang.String comment
comment provided at commit time


file

private ChangeFile file
Constructor Detail

ChangeSet

public ChangeSet(java.lang.String date,
                 java.lang.String comment,
                 java.lang.String author,
                 ChangeFile file)

ChangeSet

public ChangeSet()
Constructor used when attributes aren't available until later

Method Detail

getFile

public ChangeFile getFile()
Getter for property file.

Returns:
Value of property file.

setFile

public void setFile(ChangeFile file)
Setter for property file.


getAuthor

public java.lang.String getAuthor()
Getter for property author.

Returns:
Value of property author.

setAuthor

public void setAuthor(java.lang.String author)
Setter for property author.

Parameters:
author - New value of property author.

getComment

public java.lang.String getComment()
Getter for property comment.

Returns:
Value of property comment.

setComment

public void setComment(java.lang.String comment)
Setter for property comment.

Parameters:
comment - New value of property comment.

getDate

public java.util.Date getDate()
Getter for property date.

Returns:
Value of property date.

setDate

public void setDate(java.util.Date date)
Setter for property date.

Parameters:
date - New value of property date.

setDate

public void setDate(java.lang.String date)
Setter for property date that takes a string and parses it

Parameters:
date - - a string in yyyy/MM/dd HH:mm:ss format

getDateFormatted

public java.lang.String getDateFormatted()
Returns:
date in yyyy-mm-dd format

getTimeFormatted

public java.lang.String getTimeFormatted()
Returns:
time in HH:mm:ss format

toString

public java.lang.String toString()
Returns:
Returns string representation of the changeset

equals

public boolean equals(java.lang.Object obj)
See Also:
Object.equals(java.lang.Object)