com.moneydance.apps.md.model
Class OnlineInfo

java.lang.Object
  extended by com.moneydance.apps.md.model.OnlineInfo

public class OnlineInfo
extends java.lang.Object

This class maintains information about the online connections, logins, and financial institutions that we can connect to. This information is very fluid and the structure will probably change, so all of the information is represented a StreamTable/Vector structure that can easily be serialized and deserialized from the data file.


Method Summary
 void addListener(OnlineInfoListener listener)
           
 void addService(OnlineService newService)
          Add a new service.
 boolean containsService(OnlineService service)
          returns true if the service information for this service is already in the service list.
 StreamTable getInfo()
          Should only be called from the io.*Writer classes for saving info in a file.
 OnlineService getService(int i)
          Get a service object for the service at the specified index.
 OnlineService getServiceById(java.lang.String serviceId)
           
 int getServiceCount()
          Get the number of online services that the user has access to.
 void removeListener(OnlineInfoListener listener)
           
 void removeService(int i)
          Remove the service object at the specified index.
 void setInfo(StreamTable newInfo)
          Should only be called from the io.*Reader classes for reading info from a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInfo

public StreamTable getInfo()
Should only be called from the io.*Writer classes for saving info in a file.


setInfo

public void setInfo(StreamTable newInfo)
Should only be called from the io.*Reader classes for reading info from a file.


getServiceCount

public int getServiceCount()
Get the number of online services that the user has access to.


getService

public OnlineService getService(int i)
Get a service object for the service at the specified index. Returns null if the index is out of bounds.


containsService

public boolean containsService(OnlineService service)
returns true if the service information for this service is already in the service list.


getServiceById

public OnlineService getServiceById(java.lang.String serviceId)

removeService

public void removeService(int i)
Remove the service object at the specified index.


addService

public void addService(OnlineService newService)
Add a new service. The specified table describes the service service.


addListener

public void addListener(OnlineInfoListener listener)

removeListener

public void removeListener(OnlineInfoListener listener)