Sha256: cb539e874a1852f608bdbbc7c7bfb305beda9e3c415c90ac179ea0e2a061e217
Contents?: true
Size: 1.79 KB
Versions: 1
Compression:
Stored size: 1.79 KB
Contents
/* PureMVC - Copyright(c) 2006-08 Futurescale, Inc., Some rights reserved. Your reuse is governed by the Creative Commons Attribution 3.0 United States License */ package org.puremvc.as3.interfaces { /** * The interface definition for a PureMVC Model. * * <P> * In PureMVC, <code>IModel</code> implementors provide * access to <code>IProxy</code> objects by named lookup. </P> * * <P> * An <code>IModel</code> assumes these responsibilities:</P> * * <UL> * <LI>Maintain a cache of <code>IProxy</code> instances</LI> * <LI>Provide methods for registering, retrieving, and removing <code>IProxy</code> instances</LI> * </UL> */ public interface IModel { /** * Register an <code>IProxy</code> instance with the <code>Model</code>. * * @param proxyName the name to associate with this <code>IProxy</code> instance. * @param proxy an object reference to be held by the <code>Model</code>. */ function registerProxy( proxy:IProxy ) : void; /** * Retrieve an <code>IProxy</code> instance from the Model. * * @param proxyName * @return the <code>IProxy</code> instance previously registered with the given <code>proxyName</code>. */ function retrieveProxy( proxyName:String ) : IProxy; /** * Remove an <code>IProxy</code> instance from the Model. * * @param proxyName name of the <code>IProxy</code> instance to be removed. * @return the <code>IProxy</code> that was removed from the <code>Model</code> */ function removeProxy( proxyName:String ) : IProxy; /** * Check if a Proxy is registered * * @param proxyName * @return whether a Proxy is currently registered with the given <code>proxyName</code>. */ function hasProxy( proxyName:String ) : Boolean; } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puremvc-as3-2.0.4 | ./2.0.4/src/org/puremvc/as3/interfaces/IModel.as |