Eclipse Platform v3.1

org.eclipse.team.internal.ccvs.core
Class CVSTag

java.lang.Object
  extended by org.eclipse.team.internal.ccvs.core.CVSTag
Direct Known Subclasses:
CVSEntryLineTag

public class CVSTag
extends Object

A tag in CVS gives a label to a collection of revisions. The labels can represent a version, a branch, or a date.


Field Summary
static CVSTag BASE
           
static int BRANCH
           
static int DATE
           
static CVSTag DEFAULT
           
static int HEAD
           
protected  String name
           
protected  int type
           
static int VERSION
           
 
Constructor Summary
CVSTag()
           
CVSTag(Date date)
           
CVSTag(String name, int type)
           
 
Method Summary
 Date asDate()
          Return the date this tag represents or null if the tag is not of type DATE.
 int compareTo(CVSTag other)
           
protected static String dateToTagName(Date date)
           
 boolean equals(Object other)
           
static boolean equalTags(CVSTag tag1, CVSTag tag2)
           
 String getName()
           
 int getType()
           
 int hashCode()
           
protected static Date tagNameToDate(String name)
           
static IStatus validateTagName(String tagName)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEAD

public static final int HEAD
See Also:
Constant Field Values

BRANCH

public static final int BRANCH
See Also:
Constant Field Values

VERSION

public static final int VERSION
See Also:
Constant Field Values

DATE

public static final int DATE
See Also:
Constant Field Values

DEFAULT

public static final CVSTag DEFAULT

BASE

public static final CVSTag BASE

name

protected String name

type

protected int type
Constructor Detail

CVSTag

public CVSTag()

CVSTag

public CVSTag(String name,
              int type)

CVSTag

public CVSTag(Date date)
Method Detail

dateToTagName

protected static String dateToTagName(Date date)

tagNameToDate

protected static Date tagNameToDate(String name)

equals

public boolean equals(Object other)
Overrides:
equals in class Object

getName

public String getName()

getType

public int getType()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(CVSTag other)

equalTags

public static boolean equalTags(CVSTag tag1,
                                CVSTag tag2)

validateTagName

public static IStatus validateTagName(String tagName)

asDate

public Date asDate()
Return the date this tag represents or null if the tag is not of type DATE.

Returns:
the date of the tag or null

Eclipse Platform v3.1