net.sf.ant4eclipse.model.project.cvsproject
Class CvsProjectRole

java.lang.Object
  extended by net.sf.ant4eclipse.model.project.AbstractProjectRole
      extended by net.sf.ant4eclipse.model.project.cvsproject.CvsProjectRole

public final class CvsProjectRole
extends AbstractProjectRole

Implements the cvs role of a project.


Field Summary
static java.lang.String NAME
          the name for this role
 
Constructor Summary
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.
 
Method Summary
 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()
          
 
Methods inherited from class net.sf.ant4eclipse.model.project.AbstractProjectRole
getName, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
the name for this role

See Also:
Constant Field Values
Constructor Detail

CvsProjectRole

public CvsProjectRole(java.lang.String projectNameInRepository,
                      java.lang.String cvsRoot,
                      java.lang.String branchOrVersionTag)
Creates a new instance of type CvsProjectRole.

Parameters:
projectNameInRepository - the name of the project in the repository
cvsRoot - the cvsRoot for the project
branchOrVersionTag - the name of the branch or version

CvsProjectRole

public CvsProjectRole(java.lang.String projectNameInRepository,
                      CvsRoot cvsRoot,
                      java.lang.String branchOrVersionTag)
Creates a new instance of type CvsProjectRole.

Parameters:
projectNameInRepository - the name of the project in the repository
cvsRoot - the cvsRoot for the project
branchOrVersionTag - the name of the branch or version
Method Detail

isHead

public boolean isHead()
Returns whether the project is head.

Returns:
true <=> The project is currently tagged with HEAD

hasBranchOrVersionTag

public boolean hasBranchOrVersionTag()
Returns whether the project has a branch or version tag.

Returns:
Returns whether the project has a branch or version tag.

getBranchOrVersionTag

public java.lang.String getBranchOrVersionTag()
Returns the branch or version tag, or null if no tag exists.

Returns:
Returns the branch or version tag, or null if no tag exists.

getProjectNameInRepository

public java.lang.String getProjectNameInRepository()
Returns the name of the project in the repository.

Returns:
Returns the name of the project in the repository.

getCvsRoot

public CvsRoot getCvsRoot()
Returns the cvs root.

Returns:
Returns the cvs root.

equals

public boolean equals(java.lang.Object o)

Overrides:
equals in class AbstractProjectRole

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object