Package org.apache.maven.api.model
Class Developer
java.lang.Object
org.apache.maven.api.model.Contributor
org.apache.maven.api.model.Developer
- All Implemented Interfaces:
Serializable
,InputLocationTracker
@Experimental
@Generated
@ThreadSafe
@Immutable
public class Developer
extends Contributor
implements Serializable, InputLocationTracker
Information about one of the committers on this project.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class used to create Developer instances. -
Constructor Summary
ModifierConstructorDescriptionprotected
Developer
(Developer.Builder builder) Constructor for this class, to be called from its subclasses andDeveloper.Builder
. -
Method Summary
Modifier and TypeMethodDescriptiongetId()
The unique ID of the developer in the SCM.static Developer.Builder
Creates a newDeveloper
builder instance.static Developer.Builder
newBuilder
(boolean withDefaults) Creates a newDeveloper
builder instance using default values or not.static Developer.Builder
newBuilder
(Developer from) Creates a newDeveloper
builder instance using the specified object as a basis.static Developer.Builder
newBuilder
(Developer from, boolean forceCopy) Creates a newDeveloper
builder instance using the specified object as a basis.static Developer
Creates a newDeveloper
instance.static Developer
newInstance
(boolean withDefaults) Creates a newDeveloper
instance using default values or not.toString()
with()
Creates a new builder with this object as the basis.Creates a newDeveloper
instance using the specified email.Creates a newDeveloper
instance using the specified id.Creates a newDeveloper
instance using the specified name.withOrganization
(String organization) Creates a newDeveloper
instance using the specified organization.withOrganizationUrl
(String organizationUrl) Creates a newDeveloper
instance using the specified organizationUrl.withProperties
(Map<String, String> properties) Creates a newDeveloper
instance using the specified properties.withRoles
(Collection<String> roles) Creates a newDeveloper
instance using the specified roles.withTimezone
(String timezone) Creates a newDeveloper
instance using the specified timezone.Creates a newDeveloper
instance using the specified url.Methods inherited from class org.apache.maven.api.model.Contributor
getEmail, getImportedFrom, getLocation, getLocationKeys, getLocationKeyStream, getName, getOrganization, getOrganizationUrl, getProperties, getRoles, getTimezone, getUrl, newBuilder, newBuilder
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.maven.api.model.InputLocationTracker
getImportedFrom, getLocation
-
Constructor Details
-
Developer
Constructor for this class, to be called from its subclasses andDeveloper.Builder
.- See Also:
-
-
Method Details
-
getId
The unique ID of the developer in the SCM.- Returns:
- a
String
-
with
Creates a new builder with this object as the basis.- Overrides:
with
in classContributor
- Returns:
- a
Builder
-
withName
Creates a newDeveloper
instance using the specified name.- Overrides:
withName
in classContributor
- Parameters:
name
- the newString
to use- Returns:
- a
Developer
with the specified name
-
withEmail
Creates a newDeveloper
instance using the specified email.- Overrides:
withEmail
in classContributor
- Parameters:
email
- the newString
to use- Returns:
- a
Developer
with the specified email
-
withUrl
Creates a newDeveloper
instance using the specified url.- Overrides:
withUrl
in classContributor
- Parameters:
url
- the newString
to use- Returns:
- a
Developer
with the specified url
-
withOrganization
Creates a newDeveloper
instance using the specified organization.- Overrides:
withOrganization
in classContributor
- Parameters:
organization
- the newString
to use- Returns:
- a
Developer
with the specified organization
-
withOrganizationUrl
Creates a newDeveloper
instance using the specified organizationUrl.- Overrides:
withOrganizationUrl
in classContributor
- Parameters:
organizationUrl
- the newString
to use- Returns:
- a
Developer
with the specified organizationUrl
-
withRoles
Creates a newDeveloper
instance using the specified roles.- Overrides:
withRoles
in classContributor
- Parameters:
roles
- the newCollection<String>
to use- Returns:
- a
Developer
with the specified roles
-
withTimezone
Creates a newDeveloper
instance using the specified timezone.- Overrides:
withTimezone
in classContributor
- Parameters:
timezone
- the newString
to use- Returns:
- a
Developer
with the specified timezone
-
withProperties
Creates a newDeveloper
instance using the specified properties.- Overrides:
withProperties
in classContributor
- Parameters:
properties
- the newMap<String, String>
to use- Returns:
- a
Developer
with the specified properties
-
withId
Creates a newDeveloper
instance using the specified id.- Parameters:
id
- the newString
to use- Returns:
- a
Developer
with the specified id
-
newInstance
Creates a newDeveloper
instance. Equivalent tonewInstance(true)
.- Returns:
- a new
Developer
- See Also:
-
newInstance
Creates a newDeveloper
instance using default values or not. Equivalent tonewBuilder(withDefaults).build()
.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
Developer
-
newBuilder
Creates a newDeveloper
builder instance. Equivalent tonewBuilder(true)
.- Returns:
- a new
Builder
- See Also:
-
newBuilder
Creates a newDeveloper
builder instance using default values or not.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newDeveloper
builder instance using the specified object as a basis. Equivalent tonewBuilder(from, false)
.- Parameters:
from
- theDeveloper
instance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newDeveloper
builder instance using the specified object as a basis.- Parameters:
from
- theDeveloper
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-
toString
- Overrides:
toString
in classContributor
- See Also:
-