Package org.apache.maven.model
Class Contributor
java.lang.Object
org.apache.maven.model.BaseObject
org.apache.maven.model.Contributor
- All Implemented Interfaces:
Serializable
,Cloneable
,InputLocationTracker
- Direct Known Subclasses:
Developer
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.maven.model.BaseObject
BaseObject.ChildrenTracking
-
Field Summary
Fields inherited from class org.apache.maven.model.BaseObject
childrenTracking, delegate
-
Constructor Summary
ConstructorDescriptionContributor
(Contributor delegate) Contributor
(Contributor delegate, BaseObject parent) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addProperty
(String key, String value) void
clone()
static List
<Contributor> contributorToApiV3
(List<Contributor> list) static List
<Contributor> contributorToApiV4
(List<Contributor> list) boolean
getEmail()
getLocation
(Object key) Gets the location of the specified field in the input source.getName()
getRoles()
getUrl()
int
hashCode()
void
removeRole
(String role) protected boolean
void
void
setImportedFrom
(InputLocation location) void
setLocation
(Object key, InputLocation location) Sets the location of the specified field.void
void
setOrganization
(String organization) void
setOrganizationUrl
(String organizationUrl) void
setProperties
(Properties properties) void
void
setTimezone
(String timezone) void
toString()
Methods inherited from class org.apache.maven.model.BaseObject
update
-
Constructor Details
-
Contributor
public Contributor() -
Contributor
-
Contributor
-
-
Method Details
-
clone
-
getDelegate
- Overrides:
getDelegate
in classBaseObject
-
equals
-
hashCode
public int hashCode() -
getName
-
setName
-
getEmail
-
setEmail
-
getUrl
-
setUrl
-
getOrganization
-
setOrganization
-
getOrganizationUrl
-
setOrganizationUrl
-
getRoles
-
setRoles
-
addRole
-
removeRole
-
getTimezone
-
setTimezone
-
getProperties
-
setProperties
-
addProperty
-
getLocation
Description copied from interface:InputLocationTracker
Gets the location of the specified field in the input source.- Parameters:
key
- The key of the field, must not benull
.- Returns:
- The location of the field in the input source or
null
if unknown.
-
setLocation
Description copied from interface:InputLocationTracker
Sets the location of the specified field.- Parameters:
key
- The key of the field, must not benull
.location
- The location of the field, may benull
.
-
getImportedFrom
-
setImportedFrom
-
getLocationKeys
-
replace
- Overrides:
replace
in classBaseObject
-
contributorToApiV4
-
contributorToApiV3
-
toString
-