org.apache.maven.model.Contributor Maven / Gradle / Ivy
The newest version!
/*
=================== DO NOT EDIT THIS FILE ====================
Generated by Modello 1.0.1 on 2009-08-06 15:13:09,
any modifications will be overwritten.
==============================================================
*/
package org.apache.maven.model;
/**
* Description of a person who has contributed to the project, but
* who does not have
* commit privileges. Usually, these contributions come in
* the form of patches submitted.
*
* @version $Revision$ $Date$
*/
public class Contributor
implements java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* The full name of the contributor.
*/
private String name;
/**
* The email address of the contributor.
*/
private String email;
/**
* The URL for the homepage of the contributor.
*/
private String url;
/**
* The organization to which the contributor belongs.
*/
private String organization;
/**
* The URL of the organization.
*/
private String organizationUrl;
/**
* Field roles.
*/
private java.util.List roles;
/**
* The timezone the contributor is in. This is a number in the
* range -11 to 12.
*/
private String timezone;
/**
* Field properties.
*/
private java.util.Properties properties;
//-----------/
//- Methods -/
//-----------/
/**
* Method addProperty.
*
* @param key
* @param value
*/
public void addProperty( String key, String value )
{
getProperties().put( key, value );
} //-- void addProperty( String, String )
/**
* Method addRole.
*
* @param string
*/
public void addRole( String string )
{
if ( !(string instanceof String) )
{
throw new ClassCastException( "Contributor.addRoles(string) parameter must be instanceof " + String.class.getName() );
}
getRoles().add( string );
} //-- void addRole( String )
/**
* Get the email address of the contributor.
*
* @return String
*/
public String getEmail()
{
return this.email;
} //-- String getEmail()
/**
* Get the full name of the contributor.
*
* @return String
*/
public String getName()
{
return this.name;
} //-- String getName()
/**
* Get the organization to which the contributor belongs.
*
* @return String
*/
public String getOrganization()
{
return this.organization;
} //-- String getOrganization()
/**
* Get the URL of the organization.
*
* @return String
*/
public String getOrganizationUrl()
{
return this.organizationUrl;
} //-- String getOrganizationUrl()
/**
* Method getProperties.
*
* @return Properties
*/
public java.util.Properties getProperties()
{
if ( this.properties == null )
{
this.properties = new java.util.Properties();
}
return this.properties;
} //-- java.util.Properties getProperties()
/**
* Method getRoles.
*
* @return List
*/
public java.util.List getRoles()
{
if ( this.roles == null )
{
this.roles = new java.util.ArrayList();
}
return this.roles;
} //-- java.util.List getRoles()
/**
* Get the timezone the contributor is in. This is a number in
* the range -11 to 12.
*
* @return String
*/
public String getTimezone()
{
return this.timezone;
} //-- String getTimezone()
/**
* Get the URL for the homepage of the contributor.
*
* @return String
*/
public String getUrl()
{
return this.url;
} //-- String getUrl()
/**
* Method removeRole.
*
* @param string
*/
public void removeRole( String string )
{
if ( !(string instanceof String) )
{
throw new ClassCastException( "Contributor.removeRoles(string) parameter must be instanceof " + String.class.getName() );
}
getRoles().remove( string );
} //-- void removeRole( String )
/**
* Set the email address of the contributor.
*
* @param email
*/
public void setEmail( String email )
{
this.email = email;
} //-- void setEmail( String )
/**
* Set the full name of the contributor.
*
* @param name
*/
public void setName( String name )
{
this.name = name;
} //-- void setName( String )
/**
* Set the organization to which the contributor belongs.
*
* @param organization
*/
public void setOrganization( String organization )
{
this.organization = organization;
} //-- void setOrganization( String )
/**
* Set the URL of the organization.
*
* @param organizationUrl
*/
public void setOrganizationUrl( String organizationUrl )
{
this.organizationUrl = organizationUrl;
} //-- void setOrganizationUrl( String )
/**
* Set properties about the contributor, such as an instant
* messenger handle.
*
* @param properties
*/
public void setProperties( java.util.Properties properties )
{
this.properties = properties;
} //-- void setProperties( java.util.Properties )
/**
* Set the roles the contributor plays in the project. Each
* role is described by a
* role
element, the body of which is
* a role name. This can also be used to
* describe the contribution.
*
* @param roles
*/
public void setRoles( java.util.List roles )
{
this.roles = roles;
} //-- void setRoles( java.util.List )
/**
* Set the timezone the contributor is in. This is a number in
* the range -11 to 12.
*
* @param timezone
*/
public void setTimezone( String timezone )
{
this.timezone = timezone;
} //-- void setTimezone( String )
/**
* Set the URL for the homepage of the contributor.
*
* @param url
*/
public void setUrl( String url )
{
this.url = url;
} //-- void setUrl( String )
}