Package org.apache.maven.api.model
Class Contributor
java.lang.Object
org.apache.maven.api.model.Contributor
- All Implemented Interfaces:
- Serializable,- InputLocationTracker
- Direct Known Subclasses:
- Developer
@Experimental
@Generated
@ThreadSafe
@Immutable
public class Contributor
extends Object
implements Serializable, 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.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create Contributor instances.
- 
Method SummaryModifier and TypeMethodDescriptiongetEmail()The email address of the contributor.getLocation(Object key) Gets the location of the specified field in the input source.getName()The full name of the contributor.The organization to which the contributor belongs.The URL of the organization.Properties about the contributor, such as an instant messenger handle.getRoles()The roles the contributor plays in the project.The timezone the contributor is in.getUrl()The URL for the homepage of the contributor.static Contributor.BuilderCreates a newContributorbuilder instance.static Contributor.BuildernewBuilder(boolean withDefaults) Creates a newContributorbuilder instance using default values or not.static Contributor.BuildernewBuilder(Contributor from) Creates a newContributorbuilder instance using the specified object as a basis.static Contributor.BuildernewBuilder(Contributor from, boolean forceCopy) Creates a newContributorbuilder instance using the specified object as a basis.static ContributorCreates a newContributorinstance.static ContributornewInstance(boolean withDefaults) Creates a newContributorinstance using default values or not.with()Creates a new builder with this object as the basis.Creates a newContributorinstance using the specified email.Creates a newContributorinstance using the specified name.withOrganization(String organization) Creates a newContributorinstance using the specified organization.withOrganizationUrl(String organizationUrl) Creates a newContributorinstance using the specified organizationUrl.withProperties(Map<String, String> properties) Creates a newContributorinstance using the specified properties.withRoles(Collection<String> roles) Creates a newContributorinstance using the specified roles.withTimezone(String timezone) Creates a newContributorinstance using the specified timezone.Creates a newContributorinstance using the specified url.
- 
Method Details- 
getNameThe full name of the contributor.- Returns:
- a String
 
- 
getEmailThe email address of the contributor.- Returns:
- a String
 
- 
getUrlThe URL for the homepage of the contributor.- Returns:
- a String
 
- 
getOrganizationThe organization to which the contributor belongs.- Returns:
- a String
 
- 
getOrganizationUrlThe URL of the organization.- Returns:
- a String
 
- 
getRolesThe 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.- Returns:
- a List<String>
 
- 
getTimezoneThe 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:
- a String
 
- 
getPropertiesProperties about the contributor, such as an instant messenger handle.- Returns:
- a Map<String, String>
 
- 
getLocationGets the location of the specified field in the input source.- Specified by:
- getLocationin interface- InputLocationTracker
 
- 
withCreates a new builder with this object as the basis.- Returns:
- a Builder
 
- 
withNameCreates a newContributorinstance using the specified name.- Parameters:
- name- the new- Stringto use
- Returns:
- a Contributorwith the specified name
 
- 
withEmailCreates a newContributorinstance using the specified email.- Parameters:
- email- the new- Stringto use
- Returns:
- a Contributorwith the specified email
 
- 
withUrlCreates a newContributorinstance using the specified url.- Parameters:
- url- the new- Stringto use
- Returns:
- a Contributorwith the specified url
 
- 
withOrganizationCreates a newContributorinstance using the specified organization.- Parameters:
- organization- the new- Stringto use
- Returns:
- a Contributorwith the specified organization
 
- 
withOrganizationUrlCreates a newContributorinstance using the specified organizationUrl.- Parameters:
- organizationUrl- the new- Stringto use
- Returns:
- a Contributorwith the specified organizationUrl
 
- 
withRolesCreates a newContributorinstance using the specified roles.- Parameters:
- roles- the new- Collection<String>to use
- Returns:
- a Contributorwith the specified roles
 
- 
withTimezoneCreates a newContributorinstance using the specified timezone.- Parameters:
- timezone- the new- Stringto use
- Returns:
- a Contributorwith the specified timezone
 
- 
withPropertiesCreates a newContributorinstance using the specified properties.- Parameters:
- properties- the new- Map<String, String>to use
- Returns:
- a Contributorwith the specified properties
 
- 
newInstanceCreates a newContributorinstance. Equivalent tonewInstance( true ).- Returns:
- a new Contributor
- See Also:
 
- 
newInstanceCreates a newContributorinstance using default values or not. Equivalent tonewBuilder( withDefaults ).build().- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Contributor
 
- 
newBuilderCreates a newContributorbuilder instance. Equivalent tonewBuilder( true ).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newContributorbuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newContributorbuilder instance using the specified object as a basis. Equivalent tonewBuilder( from, false ).- Parameters:
- from- the- Contributorinstance to use as a basis
- Returns:
- a new Builder
 
- 
newBuilderCreates a newContributorbuilder instance using the specified object as a basis.- Parameters:
- from- the- Contributorinstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
 
-