public final class CvsProjectRole extends AbstractProjectRole
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME
the name for this role
|
Constructor and Description |
---|
CvsProjectRole(java.lang.String projectNameInRepository,
CvsRoot cvsRoot,
java.lang.String branchOrVersionTag)
Creates a new instance of type CvsProjectRole.
|
CvsProjectRole(java.lang.String projectNameInRepository,
java.lang.String cvsRoot,
java.lang.String branchOrVersionTag)
Creates a new instance of type CvsProjectRole.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getBranchOrVersionTag()
Returns the branch or version tag, or null if no tag exists.
|
CvsRoot |
getCvsRoot()
Returns the cvs root.
|
java.lang.String |
getProjectNameInRepository()
Returns the name of the project in the repository.
|
boolean |
hasBranchOrVersionTag()
Returns whether the project has a branch or version tag.
|
boolean |
isHead()
Returns whether the project is head.
|
java.lang.String |
toString() |
getName, hashCode
public static final java.lang.String NAME
public CvsProjectRole(java.lang.String projectNameInRepository, java.lang.String cvsRoot, java.lang.String branchOrVersionTag)
projectNameInRepository
- the name of the project in the repositorycvsRoot
- the cvsRoot for the projectbranchOrVersionTag
- the name of the branch or versionpublic CvsProjectRole(java.lang.String projectNameInRepository, CvsRoot cvsRoot, java.lang.String branchOrVersionTag)
projectNameInRepository
- the name of the project in the repositorycvsRoot
- the cvsRoot for the projectbranchOrVersionTag
- the name of the branch or versionpublic boolean isHead()
public boolean hasBranchOrVersionTag()
public java.lang.String getBranchOrVersionTag()
public java.lang.String getProjectNameInRepository()
public CvsRoot getCvsRoot()
public boolean equals(java.lang.Object o)
equals
in class AbstractProjectRole
public java.lang.String toString()
toString
in class java.lang.Object