FileDocCategorySizeDatePackage
CvsUser.javaAPI DocApache Ant 1.702405Wed Dec 13 06:16:22 GMT 2006org.apache.tools.ant.taskdefs.cvslib

CvsUser

public class CvsUser extends Object
Represents a CVS user with a userID and a full name.

Fields Summary
private String
userID
The user's Id
private String
displayName
The user's full name
Constructors Summary
Methods Summary
public java.lang.StringgetDisplayname()
Get the user's full name

return
the user's full name

        return displayName;
    
public java.lang.StringgetUserID()
Get the user's id.

return
The userID value

        return userID;
    
public voidsetDisplayname(java.lang.String displayName)
Set the user's fullname

param
displayName the user's full name

        this.displayName = displayName;
    
public voidsetUserid(java.lang.String userID)
Set the user's id

param
userID the user's new id value.

        this.userID = userID;
    
public voidvalidate()
Validate that this object is configured.

exception
BuildException if the instance has not be correctly configured.

        if (null == userID) {
            final String message = "Username attribute must be set.";

            throw new BuildException(message);
        }
        if (null == displayName) {
            final String message =
                "Displayname attribute must be set for userID " + userID;

            throw new BuildException(message);
        }