org.codehaus.mojo.scmchangelog.tags
Class Tag

java.lang.Object
  extended by org.codehaus.mojo.scmchangelog.tags.Tag
All Implemented Interfaces:
Comparable

public class Tag
extends Object
implements Comparable

Represents a tag in the subversion repository.

Version:
$Id: Tag.java 10686 2009-09-12 20:42:13Z ehsavoie $
Author:
ehsavoie

Constructor Summary
Tag(String title)
          Creates a new instance of Tag.
 
Method Summary
 int compareTo(Object object)
          Compare method, to order tags.
 String getAuthor()
          Return the author of this tag.
 Date getDate()
          Return the date of the creation of this tag.
 String getEndRevision()
          Return the end revision for this tag.
 String getStartRevision()
          Return the starting revision for this tag.
 String getTitle()
          Return the name of the tag.
 void setAuthor(String author)
          Set the author of this tag.
 void setDate(Date date)
          Set the date of the creation of this tag.
 void setEndRevision(String endRevision)
          Set the end revision for this tag.
 void setStartRevision(String startRevision)
          Set the starting revision for this tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tag

public Tag(String title)
Creates a new instance of Tag.

Parameters:
title - the name of the tag.
Method Detail

getTitle

public String getTitle()
Return the name of the tag.

Returns:
the name of the tag.

getStartRevision

public String getStartRevision()
Return the starting revision for this tag.

Returns:
the starting revision for this tag.

setStartRevision

public void setStartRevision(String startRevision)
Set the starting revision for this tag.

Parameters:
startRevision - the starting revision for this tag.

getEndRevision

public String getEndRevision()
Return the end revision for this tag.

Returns:
the end revision for this tag.

setEndRevision

public void setEndRevision(String endRevision)
Set the end revision for this tag.

Parameters:
endRevision - the end revision for this tag.

getDate

public Date getDate()
Return the date of the creation of this tag.

Returns:
the date of the creation of this tag.

setDate

public void setDate(Date date)
Set the date of the creation of this tag.

Parameters:
date - the date of the creation of this tag.

getAuthor

public String getAuthor()
Return the author of this tag.

Returns:
the author of this tag.

setAuthor

public void setAuthor(String author)
Set the author of this tag.

Parameters:
author - the author of this tag.

compareTo

public int compareTo(Object object)
Compare method, to order tags.

Specified by:
compareTo in interface Comparable
Parameters:
object - the object to be compred with this.
Returns:
a positive integer if this is after object - a negative integer if this is before object and 0 if they are equal.


Copyright © 2008-2009 Codehaus. All Rights Reserved.