Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.puremvc.java.interfaces
Interface IModel

All Known Implementing Classes:
  Model

    public interface IModel

The interface definition for a PureMVC Model.

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

An `IModel` assumes these responsibilities:

- Maintain a cache of `IProxy` instances
- Provide methods for registering, retrieving, and removing `IProxy` instances

Method Summary
`boolean` | `hasProxy(java.lang.String proxyName)` Check if a Proxy is registered
`void` | `registerProxy(IProxy proxy)` Register an `IProxy` instance with the `Model`.
`IProxy` | `removeProxy(java.lang.String proxy)` Remove an `IProxy` instance from the Model.
`IProxy` | `retrieveProxy(java.lang.String proxy)` Retrieve an `IProxy` instance from the Model.

Method Detail

### registerProxy

    void registerProxy(IProxy proxy)

  Register an `IProxy` instance with the `Model`.

  Parameters:
    `proxy` - an object reference to be held by the `Model`.

### retrieveProxy

    IProxy retrieveProxy(java.lang.String proxy)

  Retrieve an `IProxy` instance from the Model.

  Parameters:
    `proxy` -
  Returns:
    the `IProxy` instance previously registered with the given `proxyName`.

### removeProxy

    IProxy removeProxy(java.lang.String proxy)

  Remove an `IProxy` instance from the Model.

  Parameters:
    `proxy` - name of the `IProxy` instance to be removed.

### hasProxy

    boolean hasProxy(java.lang.String proxyName)

  Check if a Proxy is registered

  Parameters:
    `proxyName` -
  Returns:
    whether a Proxy is currently registered with the given `proxyName`.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD