Package org.gedcomx.agent
Class OnlineAccount
- java.lang.Object
-
- org.gedcomx.common.ExtensibleData
-
- org.gedcomx.agent.OnlineAccount
-
- All Implemented Interfaces:
HasTransientProperties,SupportsExtensionElements
public class OnlineAccount extends ExtensibleData
An online account for a web application.- Author:
- Ryan Heaton
-
-
Field Summary
-
Fields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties
-
-
Constructor Summary
Constructors Constructor Description OnlineAccount()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OnlineAccountaccountName(String accountName)Build up this online account with an account name.OnlineAccountextensionElement(Object element)StringgetAccountName()The name associated the holder of this account with the account.ResourceReferencegetServiceHomepage()The homepage of the service that provides this account.OnlineAccountid(String id)Build up this object with an id.OnlineAccountserviceHomepage(ResourceReference serviceHomepage)Build up this online account with a service homepage.voidsetAccountName(String accountName)The name associated the holder of this account with the account.voidsetServiceHomepage(ResourceReference serviceHomepage)The homepage of the service that provides this account.-
Methods inherited from class org.gedcomx.common.ExtensibleData
addExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientProperty, toString
-
-
-
-
Method Detail
-
id
public OnlineAccount id(String id)
Description copied from class:ExtensibleDataBuild up this object with an id.- Overrides:
idin classExtensibleData- Parameters:
id- The id.- Returns:
- this.
-
extensionElement
public OnlineAccount extensionElement(Object element)
- Overrides:
extensionElementin classExtensibleData
-
getServiceHomepage
public ResourceReference getServiceHomepage()
The homepage of the service that provides this account.- Returns:
- The homepage of the service that provides this account.
-
setServiceHomepage
public void setServiceHomepage(ResourceReference serviceHomepage)
The homepage of the service that provides this account.- Parameters:
serviceHomepage- The homepage of the service that provides this account.
-
serviceHomepage
public OnlineAccount serviceHomepage(ResourceReference serviceHomepage)
Build up this online account with a service homepage.- Parameters:
serviceHomepage- The service homepage.- Returns:
- this.
-
getAccountName
public String getAccountName()
The name associated the holder of this account with the account.- Returns:
- The name associated the holder of this account with the account.
-
setAccountName
public void setAccountName(String accountName)
The name associated the holder of this account with the account.- Parameters:
accountName- The name associated the holder of this account with the account.
-
accountName
public OnlineAccount accountName(String accountName)
Build up this online account with an account name.- Parameters:
accountName- The account name.- Returns:
- this.
-
-