Package org.gedcomx.agent
Class Agent
java.lang.Object
org.gedcomx.common.ExtensibleData
org.gedcomx.links.HypermediaEnabledData
org.gedcomx.agent.Agent
- All Implemented Interfaces:
HasTransientProperties,SupportsLinks,SupportsExtensionElements
An agent, e.g. person, organization, or group. In genealogical research, an agent often
takes the role of a contributor.
- Author:
- Ryan Heaton
- See Also:
-
Field Summary
Fields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(GedcomxModelVisitor visitor) Accept a visitor.account(OnlineAccount account) Build up this agent with an online account.voidaddAccount(OnlineAccount account) Add an account.voidaddAddress(Address address) Add an address.voidaddEmail(ResourceReference email) Add an email.voidaddIdentifier(Identifier identifier) Add an identifier.voidAdd a name.voidaddPhone(ResourceReference phone) Add a phone.Build up this agent with an address.Build up this agent with an email address.email(ResourceReference email) Build up this agent with an email address.Build up this agent with an email address.voidEmbed another agent.extensionElement(Object element) The accounts that belong to this person or organization.The addresses that belong to this person or organization.The emails that belong to this person or organization.The homepage of the person or organization.The list of identifiers for the agent.getName()The preferred name for this agent.getNames()The list of names for the agent.The openid of the person or organization.The person that describes this agent.The phones that belong to this person or organization.homepage(ResourceReference homepage) Build up this agent with a home page.Build up this agent with a home page.Build up this object with an id.identifier(Identifier identifier) Build up this agent with an identifier.Build up this data with a link.Build up this data with a link.Build up this agent with a name.Build up this agent with a name.openid(ResourceReference openid) Build up this agent with a open id.Build up this agent with a open id.person(ResourceReference person) Build up this agent with a person.Build up this agent with a person.Build up this agent with a phone number.phone(ResourceReference phone) Build up this agent with a phone number.Build up this agent with a phone number.voidsetAccounts(List<OnlineAccount> accounts) The accounts that belong to this person or organization.voidsetAddresses(List<Address> addresses) The addresses that belong to this person or organization.voidsetEmails(List<ResourceReference> emails) The emails that belong to this person or organization.voidsetHomepage(ResourceReference homepage) The homepage of the person or organization.voidsetIdentifiers(List<Identifier> identifiers) The list of identifiers of the agent.voidThe list of names for the agent.voidsetOpenid(ResourceReference openid) The openid of the person or organization.voidsetPerson(ResourceReference person) The person that describes this agent.voidsetPhones(List<ResourceReference> phones) The phones that belong to this person or organization.Methods inherited from class org.gedcomx.links.HypermediaEnabledData
addLink, addLink, addTemplatedLink, embed, getLink, getLinks, getLinks, setLinksMethods inherited from class org.gedcomx.common.ExtensibleData
addExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientProperty, toString
-
Constructor Details
-
Agent
public Agent() -
Agent
-
-
Method Details
-
id
Description copied from class:ExtensibleDataBuild up this object with an id.- Overrides:
idin classExtensibleData- Parameters:
id- The id.- Returns:
- this.
-
extensionElement
- Overrides:
extensionElementin classExtensibleData
-
link
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classHypermediaEnabledData- Parameters:
rel- The rel.href- The href.- Returns:
- this.
-
link
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classHypermediaEnabledData- Parameters:
link- The link.- Returns:
- this.
-
getName
The preferred name for this agent.- Returns:
- The preferred name for this agent.
-
getNames
The list of names for the agent.- Returns:
- The list of names for the agent.
-
setNames
The list of names for the agent.- Parameters:
names- The list of names for the agent.
-
name
Build up this agent with a name.- Parameters:
name- The name.- Returns:
- this.
-
name
Build up this agent with a name.- Parameters:
name- The name.- Returns:
- this.
-
addName
Add a name.- Parameters:
name- The name.
-
getIdentifiers
The list of identifiers for the agent.- Returns:
- The list of identifiers for the agent.
-
setIdentifiers
The list of identifiers of the agent.- Parameters:
identifiers- The list of identifiers of the agent.
-
identifier
Build up this agent with an identifier.- Parameters:
identifier- The identifier.- Returns:
- this.
-
addIdentifier
Add an identifier.- Parameters:
identifier- The identifier to add.
-
getHomepage
The homepage of the person or organization. Note this is different from the homepage of the service where the person or organization has an account.- Returns:
- The homepage.
-
setHomepage
The homepage of the person or organization. Note this is different from the homepage of the service where the person or organization has an account.- Parameters:
homepage- The homepage.
-
homepage
Build up this agent with a home page.- Parameters:
homepage- The home page of the agent.- Returns:
- this.
-
homepage
Build up this agent with a home page.- Parameters:
homepage- The home page of the agent.- Returns:
- this.
-
getOpenid
The openid of the person or organization.- Returns:
- The openid of the person or organization.
-
setOpenid
The openid of the person or organization.- Parameters:
openid- The openid of the person or organization.
-
openid
Build up this agent with a open id.- Parameters:
openid- The open id of the agent.- Returns:
- this.
-
openid
Build up this agent with a open id.- Parameters:
openid- The open id of the agent.- Returns:
- this.
-
getAccounts
The accounts that belong to this person or organization.- Returns:
- The accounts that belong to this person or organization.
-
setAccounts
The accounts that belong to this person or organization.- Parameters:
accounts- The accounts that belong to this person or organization.
-
account
Build up this agent with an online account.- Parameters:
account- The account.- Returns:
- this.
-
addAccount
Add an account.- Parameters:
account- The account to add.
-
getEmails
The emails that belong to this person or organization.- Returns:
- The emails that belong to this person or organization.
-
setEmails
The emails that belong to this person or organization.- Parameters:
emails- The emails that belong to this person or organization.
-
email
Build up this agent with an email address.- Parameters:
email- The email address.- Returns:
- this.
-
email
Build up this agent with an email address.- Parameters:
email- The email address.- Returns:
- this.
-
email
Build up this agent with an email address.- Parameters:
email- The email address.- Returns:
- this.
-
addEmail
Add an email.- Parameters:
email- The email.
-
getPhones
The phones that belong to this person or organization.- Returns:
- The phones that belong to this person or organization.
-
setPhones
The phones that belong to this person or organization.- Parameters:
phones- The phones that belong to this person or organization.
-
phone
Build up this agent with a phone number.- Parameters:
phone- The phone number.- Returns:
- this.
-
phone
Build up this agent with a phone number.- Parameters:
phone- The phone number.- Returns:
- this.
-
phone
Build up this agent with a phone number.- Parameters:
phone- The phone number.- Returns:
- this.
-
addPhone
Add a phone.- Parameters:
phone- The phone to add.
-
getAddresses
The addresses that belong to this person or organization.- Returns:
- The addresses that belong to this person or organization.
-
setAddresses
The addresses that belong to this person or organization.- Parameters:
addresses- The addresses that belong to this person or organization.
-
address
Build up this agent with an address.- Parameters:
address- The address.- Returns:
- this.
-
addAddress
Add an address.- Parameters:
address- The address to add.
-
getPerson
The person that describes this agent.- Returns:
- The person.
-
setPerson
The person that describes this agent.- Parameters:
person- The person.
-
person
Build up this agent with a person.- Parameters:
person- The person of the agent.- Returns:
- this.
-
person
Build up this agent with a person.- Parameters:
person- The person of the agent.- Returns:
- this.
-
accept
Accept a visitor.- Parameters:
visitor- The visitor.
-
embed
Embed another agent.- Parameters:
agent- The agent to embed.
-