net.sf.ant4eclipse.model
Class CvsRoot

java.lang.Object
  extended by net.sf.ant4eclipse.model.CvsRoot
All Implemented Interfaces:
java.lang.Cloneable

public final class CvsRoot
extends java.lang.Object
implements java.lang.Cloneable

Encapsulates a cvsroot.


Constructor Summary
CvsRoot(java.lang.String root)
          Creates a new instance of type CvsRoot.
 
Method Summary
 java.lang.Object clone()
          
 boolean equals(java.lang.Object o)
          
 java.lang.String getConnectionType()
          Returns the connection type.
 java.lang.String getEncodedPassword()
          Returns the encoded password.
 java.lang.String getHost()
          Returns the host.
 java.lang.String getRepository()
          Returns the repository.
 CvsRoot getResolvedRoot(java.lang.String username, java.lang.String password)
          Returns the resolved cvsroot.
 java.lang.String getUser()
          Returns the user.
 boolean hasEncodedPassword()
          Returns whether an encoded password is set or not.
 int hashCode()
          
 boolean hasUser()
          Returns whether an user is set or not.
 void setEncodedPassword(java.lang.String encodedPassword)
          Sets an encoded password.
 void setUser(java.lang.String user)
          Sets a cvs user.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CvsRoot

public CvsRoot(java.lang.String root)
        throws java.lang.IllegalArgumentException
Creates a new instance of type CvsRoot.

Parameters:
root - the cvsroot as a string.
Throws:
java.lang.IllegalArgumentException
Method Detail

setEncodedPassword

public void setEncodedPassword(java.lang.String encodedPassword)
Sets an encoded password.

Parameters:
encodedPassword - The encodedPassword to set.

setUser

public void setUser(java.lang.String user)
Sets a cvs user.

Parameters:
user - Sets a cvs user.

getConnectionType

public java.lang.String getConnectionType()
Returns the connection type.

Returns:
Returns the connection type.

getHost

public java.lang.String getHost()
Returns the host.

Returns:
Returns the host.

getRepository

public java.lang.String getRepository()
Returns the repository.

Returns:
Returns the repository.

getUser

public java.lang.String getUser()
Returns the user.

Returns:
Returns the user.

hasUser

public boolean hasUser()
Returns whether an user is set or not.

Returns:
whether an user is set or not.

getEncodedPassword

public java.lang.String getEncodedPassword()
Returns the encoded password.

Returns:
Returns the encoded password.

hasEncodedPassword

public boolean hasEncodedPassword()
Returns whether an encoded password is set or not.

Returns:
whether an encoded password is set or not.

clone

public java.lang.Object clone()

Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

getResolvedRoot

public CvsRoot getResolvedRoot(java.lang.String username,
                               java.lang.String password)
Returns the resolved cvsroot.

Parameters:
username - the username to use in the cvsroot.
password - the password to use in the cvsroot. Might be null
Returns:
the resolved root.

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)

Overrides:
equals in class java.lang.Object