public class Agent extends HypermediaEnabledData
extensionElements, transientProperties| Constructor and Description |
|---|
Agent() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(GedcomxModelVisitor visitor)
Accept a visitor.
|
Agent |
account(OnlineAccount account)
Build up this agent with an online account.
|
void |
addAccount(OnlineAccount account)
Add an account.
|
void |
addAddress(Address address)
Add an address.
|
void |
addEmail(ResourceReference email)
Add an email.
|
void |
addIdentifier(Identifier identifier)
Add an identifier.
|
void |
addName(TextValue name)
Add a name.
|
void |
addPhone(ResourceReference phone)
Add a phone.
|
Agent |
address(Address address)
Build up this agent with an address.
|
Agent |
email(ResourceReference email)
Build up this agent with an email address.
|
Agent |
email(String email)
Build up this agent with an email address.
|
Agent |
email(URI email)
Build up this agent with an email address.
|
void |
embed(Agent agent)
Embed another agent.
|
Agent |
extensionElement(Object element) |
List<OnlineAccount> |
getAccounts()
The accounts that belong to this person or organization.
|
List<Address> |
getAddresses()
The addresses that belong to this person or organization.
|
List<ResourceReference> |
getEmails()
The emails that belong to this person or organization.
|
ResourceReference |
getHomepage()
The homepage of the person or organization.
|
List<Identifier> |
getIdentifiers()
The list of identifiers for the agent.
|
TextValue |
getName()
The preferred name for this agent.
|
List<TextValue> |
getNames()
The list of names for the agent.
|
ResourceReference |
getOpenid()
The openid of the person or organization.
|
List<ResourceReference> |
getPhones()
The phones that belong to this person or organization.
|
Agent |
homepage(ResourceReference homepage)
Build up this agent with a home page.
|
Agent |
homepage(URI homepage)
Build up this agent with a home page.
|
Agent |
id(String id)
Build up this object with an id.
|
Agent |
identifier(Identifier identifier)
Build up this agent with an identifier.
|
Agent |
link(Link link)
Build up this data with a link.
|
Agent |
link(String rel,
URI href)
Build up this data with a link.
|
Agent |
name(String name)
Build up this agent with a name.
|
Agent |
name(TextValue name)
Build up this agent with a name.
|
Agent |
openid(ResourceReference openid)
Build up this agent with a open id.
|
Agent |
openid(URI openid)
Build up this agent with a open id.
|
Agent |
phone(ResourceReference phone)
Build up this agent with a phone number.
|
Agent |
phone(String phone)
Build up this agent with a phone number.
|
Agent |
phone(URI phone)
Build up this agent with a phone number.
|
void |
setAccounts(List<OnlineAccount> accounts)
The accounts that belong to this person or organization.
|
void |
setAddresses(List<Address> addresses)
The addresses that belong to this person or organization.
|
void |
setEmails(List<ResourceReference> emails)
The emails that belong to this person or organization.
|
void |
setHomepage(ResourceReference homepage)
The homepage of the person or organization.
|
void |
setIdentifiers(List<Identifier> identifiers)
The list of identifiers of the agent.
|
void |
setNames(List<TextValue> names)
The list of names for the agent.
|
void |
setOpenid(ResourceReference openid)
The openid of the person or organization.
|
void |
setPhones(List<ResourceReference> phones)
The phones that belong to this person or organization.
|
addLink, addLink, addTemplatedLink, embed, getLink, getLinks, getLinks, setLinksaddExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientProperty, toStringpublic Agent id(String id)
ExtensibleDataid in class ExtensibleDataid - The id.public Agent extensionElement(Object element)
extensionElement in class ExtensibleDatapublic Agent link(String rel, URI href)
HypermediaEnabledDatalink in class HypermediaEnabledDatarel - The rel.href - The href.public Agent link(Link link)
HypermediaEnabledDatalink in class HypermediaEnabledDatalink - The link.public TextValue getName()
public List<TextValue> getNames()
public void setNames(List<TextValue> names)
names - The list of names for the agent.public Agent name(TextValue name)
name - The name.public Agent name(String name)
name - The name.public void addName(TextValue name)
name - The name.public List<Identifier> getIdentifiers()
public void setIdentifiers(List<Identifier> identifiers)
identifiers - The list of identifiers of the agent.public Agent identifier(Identifier identifier)
identifier - The identifier.public void addIdentifier(Identifier identifier)
identifier - The identifier to add.public ResourceReference getHomepage()
public void setHomepage(ResourceReference homepage)
homepage - The homepage.public Agent homepage(ResourceReference homepage)
homepage - The home page of the agent.public Agent homepage(URI homepage)
homepage - The home page of the agent.public ResourceReference getOpenid()
public void setOpenid(ResourceReference openid)
openid - The openid of the person or organization.public Agent openid(ResourceReference openid)
openid - The open id of the agent.public Agent openid(URI openid)
openid - The open id of the agent.public List<OnlineAccount> getAccounts()
public void setAccounts(List<OnlineAccount> accounts)
accounts - The accounts that belong to this person or organization.public Agent account(OnlineAccount account)
account - The account.public void addAccount(OnlineAccount account)
account - The account to add.public List<ResourceReference> getEmails()
public void setEmails(List<ResourceReference> emails)
emails - The emails that belong to this person or organization.public Agent email(ResourceReference email)
email - The email address.public Agent email(URI email)
email - The email address.public Agent email(String email)
email - The email address.public void addEmail(ResourceReference email)
email - The email.public List<ResourceReference> getPhones()
public void setPhones(List<ResourceReference> phones)
phones - The phones that belong to this person or organization.public Agent phone(ResourceReference phone)
phone - The phone number.public Agent phone(URI phone)
phone - The phone number.public Agent phone(String phone)
phone - The phone number.public void addPhone(ResourceReference phone)
phone - The phone to add.public List<Address> getAddresses()
public void setAddresses(List<Address> addresses)
addresses - The addresses that belong to this person or organization.public Agent address(Address address)
address - The address.public void addAddress(Address address)
address - The address to add.public void accept(GedcomxModelVisitor visitor)
visitor - The visitor.public void embed(Agent agent)
agent - The agent to embed.Copyright © 2016. All rights reserved.