public class Contributor extends AbstractPerson
| Constructor and Description |
|---|
Contributor(PersonName nameObject,
ContributorType type)
Simple constructor that requires all mandatory fields.
|
Contributor(String name,
ContributorType type)
Constructor that creates a PersonName out of a String.
|
| Modifier and Type | Method and Description |
|---|---|
PersonName |
getName()
Returns the name of the person.
|
ContributorType |
getType()
Returns the type of contributor of the resource.
|
void |
setName(PersonName name)
Changes the name of the person.
|
void |
setType(ContributorType type)
Changes the type of contributor of the resource.
|
getAffiliations, getFamilyName, getGivenName, getNameIdentifiers, setAffiliations, setFamilyName, setGivenName, setNameIdentifierspublic Contributor(String name, ContributorType type)
name - the name of the contributortype - the role of the contributorpublic Contributor(PersonName nameObject, ContributorType type)
nameObject - the name and name type of the persontype - the role of the contributorpublic ContributorType getType()
public void setType(ContributorType type)
type - the type of contributorpublic PersonName getName()
AbstractPersongetName in class AbstractPersonpublic void setName(PersonName name)
AbstractPersonsetName in class AbstractPersonname - the name of the personCopyright © 2017–2018. All rights reserved.