org.eclipse.team.internal.ccvs.core
Class CVSTag
java.lang.Object
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.
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
CVSTag
public CVSTag()
CVSTag
public CVSTag(String name,
int type)
CVSTag
public CVSTag(Date date)
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