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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create Contributor instances. -
Method Summary
Modifier 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.toString()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
-
getName
The full name of the contributor.- Returns:
- a
String
-
getEmail
The email address of the contributor.- Returns:
- a
String
-
getUrl
The URL for the homepage of the contributor.- Returns:
- a
String
-
getOrganization
The organization to which the contributor belongs.- Returns:
- a
String
-
getOrganizationUrl
The URL of the organization.- Returns:
- a
String
-
getRoles
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.- Returns:
- a
List<String>
-
getTimezone
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:
- a
String
-
getProperties
Properties about the contributor, such as an instant messenger handle.- Returns:
- a
Map<String, String>
-
getLocation
Gets the location of the specified field in the input source.- Specified by:
getLocationin interfaceInputLocationTracker
-
with
Creates a new builder with this object as the basis.- Returns:
- a
Builder
-
withName
Creates a newContributorinstance using the specified name.- Parameters:
name- the newStringto use- Returns:
- a
Contributorwith the specified name
-
withEmail
Creates a newContributorinstance using the specified email.- Parameters:
email- the newStringto use- Returns:
- a
Contributorwith the specified email
-
withUrl
Creates a newContributorinstance using the specified url.- Parameters:
url- the newStringto use- Returns:
- a
Contributorwith the specified url
-
withOrganization
Creates a newContributorinstance using the specified organization.- Parameters:
organization- the newStringto use- Returns:
- a
Contributorwith the specified organization
-
withOrganizationUrl
Creates a newContributorinstance using the specified organizationUrl.- Parameters:
organizationUrl- the newStringto use- Returns:
- a
Contributorwith the specified organizationUrl
-
withRoles
Creates a newContributorinstance using the specified roles.- Parameters:
roles- the newCollection<String>to use- Returns:
- a
Contributorwith the specified roles
-
withTimezone
Creates a newContributorinstance using the specified timezone.- Parameters:
timezone- the newStringto use- Returns:
- a
Contributorwith the specified timezone
-
withProperties
Creates a newContributorinstance using the specified properties.- Parameters:
properties- the newMap<String, String>to use- Returns:
- a
Contributorwith the specified properties
-
newInstance
Creates a newContributorinstance. Equivalent tonewInstance(true).- Returns:
- a new
Contributor - See Also:
-
newInstance
Creates 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
-
newBuilder
Creates a newContributorbuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new
Builder - See Also:
-
newBuilder
Creates a newContributorbuilder instance using default values or not.- Parameters:
withDefaults- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newContributorbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
from- theContributorinstance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newContributorbuilder instance using the specified object as a basis.- Parameters:
from- theContributorinstance to use as a basisforceCopy- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-
toString
-