org.gedcomx.agent
Class OnlineAccount

java.lang.Object
  extended by org.gedcomx.common.ExtensibleData
      extended by 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
OnlineAccount()
           
 
Method Summary
 OnlineAccount accountName(String accountName)
          Build up this online account with an account name.
 String getAccountName()
          The name associated the holder of this account with the account.
 ResourceReference getServiceHomepage()
          The homepage of the service that provides this account.
 OnlineAccount id(String id)
          Build up this object with an id.
 OnlineAccount serviceHomepage(ResourceReference serviceHomepage)
          Build up this online account with a service homepage.
 void setAccountName(String accountName)
          The name associated the holder of this account with the account.
 void setServiceHomepage(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OnlineAccount

public OnlineAccount()
Method Detail

id

public OnlineAccount id(String id)
Description copied from class: ExtensibleData
Build up this object with an id.

Overrides:
id in class ExtensibleData
Parameters:
id - The id.

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.


Copyright © 2015. All rights reserved.