Package org.apache.maven.model
Class Contributor
- java.lang.Object
-
- org.apache.maven.model.Contributor
-
- All Implemented Interfaces:
Serializable
,Cloneable
,InputLocationTracker
- Direct Known Subclasses:
Developer
public class Contributor extends Object implements Serializable, Cloneable, InputLocationTracker
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$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Contributor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProperty(String key, String value)
Method addProperty.void
addRole(String string)
Method addRole.Contributor
clone()
Method clone.String
getEmail()
Get the email address of the contributor.InputLocation
getLocation(Object key)
Gets the location of the specified field in the input source.String
getName()
Get the full name of the contributor.String
getOrganization()
Get the organization to which the contributor belongs.String
getOrganizationUrl()
Get the URL of the organization.Properties
getProperties()
Method getProperties.List<String>
getRoles()
Method getRoles.String
getTimezone()
Get the timezone the contributor is in.String
getUrl()
Get the URL for the homepage of the contributor.void
removeRole(String string)
Method removeRole.void
setEmail(String email)
Set the email address of the contributor.void
setLocation(Object key, InputLocation location)
Sets the location of the specified field.void
setName(String name)
Set the full name of the contributor.void
setOrganization(String organization)
Set the organization to which the contributor belongs.void
setOrganizationUrl(String organizationUrl)
Set the URL of the organization.void
setOtherLocation(Object key, InputLocation location)
void
setProperties(Properties properties)
Set properties about the contributor, such as an instant messenger handle.void
setRoles(List<String> roles)
Set the roles the contributor plays in the project.void
setTimezone(String timezone)
Set the timezone the contributor is in.void
setUrl(String url)
Set the URL for the homepage of the contributor.String
toString()
-
-
-
Method Detail
-
addProperty
public void addProperty(String key, String value)
Method addProperty.- Parameters:
key
- a key object.value
- a value object.
-
addRole
public void addRole(String string)
Method addRole.- Parameters:
string
- a string object.
-
clone
public Contributor clone()
Method clone.
-
getEmail
public String getEmail()
Get the email address of the contributor.- Returns:
- String
-
getLocation
public InputLocation getLocation(Object key)
Description copied from interface:InputLocationTracker
Gets the location of the specified field in the input source.- Specified by:
getLocation
in interfaceInputLocationTracker
- Parameters:
key
- a key object.- Returns:
- InputLocation
-
getName
public String getName()
Get the full name of the contributor.- Returns:
- String
-
getOrganization
public String getOrganization()
Get the organization to which the contributor belongs.- Returns:
- String
-
getOrganizationUrl
public String getOrganizationUrl()
Get the URL of the organization.- Returns:
- String
-
setLocation
public void setLocation(Object key, InputLocation location)
Description copied from interface:InputLocationTracker
Sets the location of the specified field.- Specified by:
setLocation
in interfaceInputLocationTracker
- Parameters:
key
- a key object.location
- a location object.
-
setOtherLocation
public void setOtherLocation(Object key, InputLocation location)
- Parameters:
key
- a key object.location
- a location object.
-
getProperties
public Properties getProperties()
Method getProperties.- Returns:
- Properties
-
getTimezone
public String getTimezone()
Get the timezone the contributor is in. Typically, this is a number in the range -12 to +14 or a valid time zone id like "America/Montreal" (UTC-05:00) or "Europe/Paris" (UTC+01:00).- Returns:
- String
-
getUrl
public String getUrl()
Get the URL for the homepage of the contributor.- Returns:
- String
-
removeRole
public void removeRole(String string)
Method removeRole.- Parameters:
string
- a string object.
-
setEmail
public void setEmail(String email)
Set the email address of the contributor.- Parameters:
email
- a email object.
-
setName
public void setName(String name)
Set the full name of the contributor.- Parameters:
name
- a name object.
-
setOrganization
public void setOrganization(String organization)
Set the organization to which the contributor belongs.- Parameters:
organization
- a organization object.
-
setOrganizationUrl
public void setOrganizationUrl(String organizationUrl)
Set the URL of the organization.- Parameters:
organizationUrl
- a organizationUrl object.
-
setProperties
public void setProperties(Properties properties)
Set properties about the contributor, such as an instant messenger handle.- Parameters:
properties
- a properties object.
-
setRoles
public void setRoles(List<String> roles)
Set the roles the contributor plays in the project. Each role is described by arole
element, the body of which is a role name. This can also be used to describe the contribution.- Parameters:
roles
- a roles object.
-
setTimezone
public void setTimezone(String timezone)
Set the timezone the contributor is in. Typically, this is a number in the range -12 to +14 or a valid time zone id like "America/Montreal" (UTC-05:00) or "Europe/Paris" (UTC+01:00).- Parameters:
timezone
- a timezone object.
-
setUrl
public void setUrl(String url)
Set the URL for the homepage of the contributor.- Parameters:
url
- a url object.
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
-