net.sf.statcvs.model
Class SymbolicName
- Comparable
public class SymbolicName
implements Comparable
Represents a symbolic name (tags).
It is a container for
Revision
s.
$Id: SymbolicName.java,v 1.5 2008/04/02 11:52:02 benoitx Exp $
SymbolicName
public SymbolicName(String name)
Creates a new symbolic name. With this constructor,
its creation date will be assumed to be the date
of its latest revision.
name
- the symbolic name's name
SymbolicName
public SymbolicName(String name,
Date date)
Creates a new symbolic name.
name
- the symbolic name's namedate
- of the symbolic name creation
addRevision
protected void addRevision(Revision rev)
Adds a revision to this symbolic name.
compareTo
public int compareTo(Object o)
equals
public boolean equals(Object obj)
getDate
public Date getDate()
Returns the 'date' of this symbolic name.
getName
public String getName()
Returns the symbolic name's name.
- the symbolic name's name.
getRevisions
public SortedSet getRevisions()
Returns a set of
Revision
s contained in this symbolic name.
hashCode
public int hashCode()
toString
public String toString()