public class Contributor extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, InputLocationTracker
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
email
The email address of the contributor.
|
private InputLocation |
emailLocation
Field emailLocation.
|
private InputLocation |
location
Field location.
|
private java.util.Map<java.lang.Object,InputLocation> |
locations
Field locations.
|
private java.lang.String |
name
The full name of the contributor.
|
private InputLocation |
nameLocation
Field nameLocation.
|
private java.lang.String |
organization
The organization to which the contributor belongs.
|
private InputLocation |
organizationLocation
Field organizationLocation.
|
private java.lang.String |
organizationUrl
The URL of the organization.
|
private InputLocation |
organizationUrlLocation
Field organizationUrlLocation.
|
private java.util.Properties |
properties
Field properties.
|
private InputLocation |
propertiesLocation
Field propertiesLocation.
|
private java.util.List<java.lang.String> |
roles
Field roles.
|
private InputLocation |
rolesLocation
Field rolesLocation.
|
private java.lang.String |
timezone
The timezone the contributor is in.
|
private InputLocation |
timezoneLocation
Field timezoneLocation.
|
private java.lang.String |
url
The URL for the homepage of the contributor.
|
private InputLocation |
urlLocation
Field urlLocation.
|
Constructor and Description |
---|
Contributor() |
Modifier and Type | Method and Description |
---|---|
void |
addProperty(java.lang.String key,
java.lang.String value)
Method addProperty.
|
void |
addRole(java.lang.String string)
Method addRole.
|
Contributor |
clone()
Method clone.
|
java.lang.String |
getEmail()
Get the email address of the contributor.
|
InputLocation |
getLocation(java.lang.Object key)
Gets the location of the specified field in the input
source.
|
java.lang.String |
getName()
Get the full name of the contributor.
|
java.lang.String |
getOrganization()
Get the organization to which the contributor belongs.
|
java.lang.String |
getOrganizationUrl()
Get the URL of the organization.
|
private InputLocation |
getOtherLocation(java.lang.Object key) |
java.util.Properties |
getProperties()
Method getProperties.
|
java.util.List<java.lang.String> |
getRoles()
Method getRoles.
|
java.lang.String |
getTimezone()
Get the timezone the contributor is in.
|
java.lang.String |
getUrl()
Get the URL for the homepage of the contributor.
|
void |
removeRole(java.lang.String string)
Method removeRole.
|
void |
setEmail(java.lang.String email)
Set the email address of the contributor.
|
void |
setLocation(java.lang.Object key,
InputLocation location)
Sets the location of the specified field.
|
void |
setName(java.lang.String name)
Set the full name of the contributor.
|
void |
setOrganization(java.lang.String organization)
Set the organization to which the contributor belongs.
|
void |
setOrganizationUrl(java.lang.String organizationUrl)
Set the URL of the organization.
|
void |
setOtherLocation(java.lang.Object key,
InputLocation location) |
void |
setProperties(java.util.Properties properties)
Set properties about the contributor, such as an instant
messenger handle.
|
void |
setRoles(java.util.List<java.lang.String> roles)
Set the roles the contributor plays in the project.
|
void |
setTimezone(java.lang.String timezone)
Set the timezone the contributor is in.
|
void |
setUrl(java.lang.String url)
Set the URL for the homepage of the contributor.
|
private java.lang.String name
private java.lang.String email
private java.lang.String url
private java.lang.String organization
private java.lang.String organizationUrl
private java.util.List<java.lang.String> roles
private java.lang.String timezone
private java.util.Properties properties
private java.util.Map<java.lang.Object,InputLocation> locations
private InputLocation location
private InputLocation nameLocation
private InputLocation emailLocation
private InputLocation urlLocation
private InputLocation organizationLocation
private InputLocation organizationUrlLocation
private InputLocation rolesLocation
private InputLocation timezoneLocation
private InputLocation propertiesLocation
public void addProperty(java.lang.String key, java.lang.String value)
key
- a key object.value
- a value object.public void addRole(java.lang.String string)
string
- a string object.public Contributor clone()
clone
in class java.lang.Object
public java.lang.String getEmail()
public InputLocation getLocation(java.lang.Object key)
InputLocationTracker
getLocation
in interface InputLocationTracker
key
- a key object.public java.lang.String getName()
public java.lang.String getOrganization()
public java.lang.String getOrganizationUrl()
public void setLocation(java.lang.Object key, InputLocation location)
InputLocationTracker
setLocation
in interface InputLocationTracker
key
- a key object.location
- a location object.public void setOtherLocation(java.lang.Object key, InputLocation location)
key
- a key object.location
- a location object.private InputLocation getOtherLocation(java.lang.Object key)
key
- a key object.public java.util.Properties getProperties()
public java.util.List<java.lang.String> getRoles()
public java.lang.String getTimezone()
public java.lang.String getUrl()
public void removeRole(java.lang.String string)
string
- a string object.public void setEmail(java.lang.String email)
email
- a email object.public void setName(java.lang.String name)
name
- a name object.public void setOrganization(java.lang.String organization)
organization
- a organization object.public void setOrganizationUrl(java.lang.String organizationUrl)
organizationUrl
- a organizationUrl object.public void setProperties(java.util.Properties properties)
properties
- a properties object.public void setRoles(java.util.List<java.lang.String> roles)
role
element, the body of which is
a role name. This can also be used to
describe the contribution.roles
- a roles object.public void setTimezone(java.lang.String timezone)
timezone
- a timezone object.public void setUrl(java.lang.String url)
url
- a url object.