com.moneydance.apps.md.model
Class OnlinePayeeList

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

public class OnlinePayeeList
extends java.lang.Object

This class contains a set of payees that are used for online bill-payment. 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(OnlinePayeeListener listener)
           
 void addNewPayee(OnlinePayee payee)
          Adds the specified payee to the payee list.
 void clearAllPayees()
          Remove all payees from the list (so that they can be resynchronized from the server.
 StreamTable getInfo()
          Should only be called from the io.*Writer classes for saving info in a file.
 OnlinePayee getPayee(int i)
          Get a payee object for the payee at the specified index.
 OnlinePayee getPayeeByListID(java.lang.String listID)
           
 int getPayeeCount()
          Get the number of online services that the user has access to.
 java.lang.String getPayeeListSyncToken()
           
 int indexOf(OnlinePayee payee)
          returns true if the service information for this service is already in the service list.
 OnlinePayee newPayee()
          This creates a new payee that is associated with this list.
 void removeListener(OnlinePayeeListener listener)
           
 void removePayee(int i)
          Remove the payee object at the specified index.
 boolean removePayee(OnlinePayee payee)
          Remove the given payee object from the list.
 void setPayeeListSyncToken(java.lang.String syncToken)
           
 
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.


getPayeeListSyncToken

public java.lang.String getPayeeListSyncToken()

setPayeeListSyncToken

public void setPayeeListSyncToken(java.lang.String syncToken)

getPayeeCount

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


getPayeeByListID

public OnlinePayee getPayeeByListID(java.lang.String listID)

getPayee

public OnlinePayee getPayee(int i)
Get a payee object for the payee at the specified index. Returns null if the index is out of bounds.


indexOf

public int indexOf(OnlinePayee payee)
returns true if the service information for this service is already in the service list.


removePayee

public void removePayee(int i)
Remove the payee object at the specified index.


removePayee

public boolean removePayee(OnlinePayee payee)
Remove the given payee object from the list. Returns true if the value was found in the list.


clearAllPayees

public void clearAllPayees()
Remove all payees from the list (so that they can be resynchronized from the server.


newPayee

public OnlinePayee newPayee()
This creates a new payee that is associated with this list. Note: This payee is NOT added to the list. That should only be done by the OFXConnection.


addNewPayee

public void addNewPayee(OnlinePayee payee)
Adds the specified payee to the payee list. This should only be called from the OFXConnection during payee list synchronization.


addListener

public void addListener(OnlinePayeeListener listener)

removeListener

public void removeListener(OnlinePayeeListener listener)