PureMVC.Interfaces.IModel Interface Reference

The interface definition for a PureMVC Model. More...

Inheritance diagram for PureMVC.Interfaces.IModel:

PureMVC.Core.Model

List of all members.

Public Member Functions

void RegisterProxy (IProxy proxy)
 Register an IProxy instance with the Model.
IProxy RetrieveProxy (string proxyName)
 Retrieve an IProxy instance from the Model.
IProxy RemoveProxy (string proxyName)
 Remove an IProxy instance from the Model.
bool HasProxy (string proxyName)
 Check if a Proxy is registered.


Detailed Description

The interface definition for a PureMVC Model.

In PureMVC, IModel implementors provide access to IProxy objects by named lookup

An IModel assumes these responsibilities:


Member Function Documentation

bool PureMVC.Interfaces.IModel.HasProxy ( string  proxyName  ) 

Check if a Proxy is registered.

Parameters:
proxyName The name of the proxy to check for
Returns:
whether a Proxy is currently registered with the given proxyName.

Implemented in PureMVC.Core.Model.

void PureMVC.Interfaces.IModel.RegisterProxy ( IProxy  proxy  ) 

Register an IProxy instance with the Model.

Parameters:
proxy A reference to the proxy object to be held by the Model

Implemented in PureMVC.Core.Model.

IProxy PureMVC.Interfaces.IModel.RemoveProxy ( string  proxyName  ) 

Remove an IProxy instance from the Model.

Parameters:
proxyName The name of the IProxy instance to be removed

Implemented in PureMVC.Core.Model.

IProxy PureMVC.Interfaces.IModel.RetrieveProxy ( string  proxyName  ) 

Retrieve an IProxy instance from the Model.

Parameters:
proxyName The name of the proxy to retrieve
Returns:
The IProxy instance previously registered with the given proxyName

Implemented in PureMVC.Core.Model.


The documentation for this interface was generated from the following file:

Generated on Thu Jan 1 16:26:46 2009 for PureMVC by  doxygen 1.5.8