Package org.apache.maven.model
Class Contributor
- java.lang.Object
-
- org.apache.maven.model.Contributor
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,InputLocationTracker
- Direct Known Subclasses:
Developer
public class Contributor extends java.lang.Object implements java.io.Serializable, java.lang.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
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringemailThe email address of the contributor.private InputLocationemailLocationField emailLocation.private InputLocationlocationField location.private java.util.Map<java.lang.Object,InputLocation>locationsField locations.private java.lang.StringnameThe full name of the contributor.private InputLocationnameLocationField nameLocation.private java.lang.StringorganizationThe organization to which the contributor belongs.private InputLocationorganizationLocationField organizationLocation.private java.lang.StringorganizationUrlThe URL of the organization.private InputLocationorganizationUrlLocationField organizationUrlLocation.private java.util.PropertiespropertiesField properties.private InputLocationpropertiesLocationField propertiesLocation.private java.util.List<java.lang.String>rolesField roles.private InputLocationrolesLocationField rolesLocation.private java.lang.StringtimezoneThe timezone the contributor is in.private InputLocationtimezoneLocationField timezoneLocation.private java.lang.StringurlThe URL for the homepage of the contributor.private InputLocationurlLocationField urlLocation.
-
Constructor Summary
Constructors Constructor Description Contributor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProperty(java.lang.String key, java.lang.String value)Method addProperty.voidaddRole(java.lang.String string)Method addRole.Contributorclone()Method clone.java.lang.StringgetEmail()Get the email address of the contributor.InputLocationgetLocation(java.lang.Object key)Gets the location of the specified field in the input source.java.lang.StringgetName()Get the full name of the contributor.java.lang.StringgetOrganization()Get the organization to which the contributor belongs.java.lang.StringgetOrganizationUrl()Get the URL of the organization.private InputLocationgetOtherLocation(java.lang.Object key)java.util.PropertiesgetProperties()Method getProperties.java.util.List<java.lang.String>getRoles()Method getRoles.java.lang.StringgetTimezone()Get the timezone the contributor is in.java.lang.StringgetUrl()Get the URL for the homepage of the contributor.voidremoveRole(java.lang.String string)Method removeRole.voidsetEmail(java.lang.String email)Set the email address of the contributor.voidsetLocation(java.lang.Object key, InputLocation location)Sets the location of the specified field.voidsetName(java.lang.String name)Set the full name of the contributor.voidsetOrganization(java.lang.String organization)Set the organization to which the contributor belongs.voidsetOrganizationUrl(java.lang.String organizationUrl)Set the URL of the organization.voidsetOtherLocation(java.lang.Object key, InputLocation location)voidsetProperties(java.util.Properties properties)Set properties about the contributor, such as an instant messenger handle.voidsetRoles(java.util.List<java.lang.String> roles)Set the roles the contributor plays in the project.voidsetTimezone(java.lang.String timezone)Set the timezone the contributor is in.voidsetUrl(java.lang.String url)Set the URL for the homepage of the contributor.
-
-
-
Field Detail
-
name
private java.lang.String name
The full name of the contributor.
-
email
private java.lang.String email
The email address of the contributor.
-
url
private java.lang.String url
The URL for the homepage of the contributor.
-
organization
private java.lang.String organization
The organization to which the contributor belongs.
-
organizationUrl
private java.lang.String organizationUrl
The URL of the organization.
-
roles
private java.util.List<java.lang.String> roles
Field roles.
-
timezone
private java.lang.String timezone
-
properties
private java.util.Properties properties
Field properties.
-
locations
private java.util.Map<java.lang.Object,InputLocation> locations
Field locations.
-
location
private InputLocation location
Field location.
-
nameLocation
private InputLocation nameLocation
Field nameLocation.
-
emailLocation
private InputLocation emailLocation
Field emailLocation.
-
urlLocation
private InputLocation urlLocation
Field urlLocation.
-
organizationLocation
private InputLocation organizationLocation
Field organizationLocation.
-
organizationUrlLocation
private InputLocation organizationUrlLocation
Field organizationUrlLocation.
-
rolesLocation
private InputLocation rolesLocation
Field rolesLocation.
-
timezoneLocation
private InputLocation timezoneLocation
Field timezoneLocation.
-
propertiesLocation
private InputLocation propertiesLocation
Field propertiesLocation.
-
-
Method Detail
-
addProperty
public void addProperty(java.lang.String key, java.lang.String value)Method addProperty.- Parameters:
key-value-
-
addRole
public void addRole(java.lang.String string)
Method addRole.- Parameters:
string-
-
clone
public Contributor clone()
Method clone.- Overrides:
clonein classjava.lang.Object- Returns:
- Contributor
-
getEmail
public java.lang.String getEmail()
Get the email address of the contributor.- Returns:
- String
-
getLocation
public InputLocation getLocation(java.lang.Object key)
Description copied from interface:InputLocationTrackerGets the location of the specified field in the input source.- Specified by:
getLocationin interfaceInputLocationTracker- Parameters:
key-- Returns:
- InputLocation
-
getName
public java.lang.String getName()
Get the full name of the contributor.- Returns:
- String
-
getOrganization
public java.lang.String getOrganization()
Get the organization to which the contributor belongs.- Returns:
- String
-
getOrganizationUrl
public java.lang.String getOrganizationUrl()
Get the URL of the organization.- Returns:
- String
-
setLocation
public void setLocation(java.lang.Object key, InputLocation location)Description copied from interface:InputLocationTrackerSets the location of the specified field.- Specified by:
setLocationin interfaceInputLocationTracker- Parameters:
key-location-
-
setOtherLocation
public void setOtherLocation(java.lang.Object key, InputLocation location)- Parameters:
key-location-
-
getOtherLocation
private InputLocation getOtherLocation(java.lang.Object key)
- Parameters:
key-- Returns:
- InputLocation
-
getProperties
public java.util.Properties getProperties()
Method getProperties.- Returns:
- Properties
-
getRoles
public java.util.List<java.lang.String> getRoles()
Method getRoles.- Returns:
- List
-
getTimezone
public java.lang.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 java.lang.String getUrl()
Get the URL for the homepage of the contributor.- Returns:
- String
-
removeRole
public void removeRole(java.lang.String string)
Method removeRole.- Parameters:
string-
-
setEmail
public void setEmail(java.lang.String email)
Set the email address of the contributor.- Parameters:
email-
-
setName
public void setName(java.lang.String name)
Set the full name of the contributor.- Parameters:
name-
-
setOrganization
public void setOrganization(java.lang.String organization)
Set the organization to which the contributor belongs.- Parameters:
organization-
-
setOrganizationUrl
public void setOrganizationUrl(java.lang.String organizationUrl)
Set the URL of the organization.- Parameters:
organizationUrl-
-
setProperties
public void setProperties(java.util.Properties properties)
Set properties about the contributor, such as an instant messenger handle.- Parameters:
properties-
-
setRoles
public void setRoles(java.util.List<java.lang.String> roles)
Set the roles the contributor plays in the project. Each role is described by aroleelement, the body of which is a role name. This can also be used to describe the contribution.- Parameters:
roles-
-
setTimezone
public void setTimezone(java.lang.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-
-
setUrl
public void setUrl(java.lang.String url)
Set the URL for the homepage of the contributor.- Parameters:
url-
-
-