包 | com.adobe.solutions.exm.mock |
类 | public class MockServiceProvider |
继承 | MockServiceProvider EventDispatcher Object |
实现 | IServiceProvider |
语言版本: | ActionScript 3.0 |
产品版本: | Expression Manager Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
公共属性
属性 | 由以下参数定义 | ||
---|---|---|---|
constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | ||
expressionService : IExpressionService [只读]
If mock data has been loaded, returns a mock IExpressionService instance which operates against
the mock data, else returns null. | MockServiceProvider | ||
functionService : IFunctionService [只读]
If mock data has been loaded, returns a mock IFunctionService instance which operates against
the mock data, else returns null. | MockServiceProvider | ||
variableService : IVariableService [只读]
If mock data has been loaded, returns a mock IVariableService instance which operates against
the mock data, else returns null. | MockServiceProvider |
公共方法
方法 | 由以下参数定义 | ||
---|---|---|---|
MockServiceProvider(target:IEventDispatcher = null)
Creates a new MockServiceProvider instance. | MockServiceProvider | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。 | EventDispatcher | ||
将事件调度到事件流中。 | EventDispatcher | ||
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 | EventDispatcher | ||
表示对象是否已经定义了指定的属性。 | Object | ||
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | ||
Loads the given mock data into this provider. | MockServiceProvider | ||
表示指定的属性是否存在、是否可枚举。 | Object | ||
从 EventDispatcher 对象中删除侦听器。 | EventDispatcher | ||
设置循环操作动态属性的可用性。 | Object | ||
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | ||
返回指定对象的字符串表示形式。 | Object | ||
返回指定对象的原始值。 | Object | ||
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。 | EventDispatcher |
属性详细信息
expressionService | 属性 |
expressionService:IExpressionService
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Expression Manager Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
If mock data has been loaded, returns a mock IExpressionService instance which operates against the mock data, else returns null.
实现
public function get expressionService():IExpressionService
functionService | 属性 |
functionService:IFunctionService
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Expression Manager Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
If mock data has been loaded, returns a mock IFunctionService instance which operates against the mock data, else returns null.
实现
public function get functionService():IFunctionService
variableService | 属性 |
variableService:IVariableService
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Expression Manager Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
If mock data has been loaded, returns a mock IVariableService instance which operates against the mock data, else returns null.
实现
public function get variableService():IVariableService
构造函数详细信息
MockServiceProvider | () | 构造函数 |
public function MockServiceProvider(target:IEventDispatcher = null)
语言版本: | ActionScript 3.0 |
产品版本: | Expression Manager Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Creates a new MockServiceProvider instance.
参数target:IEventDispatcher (default = null ) — The target event dispatcher.
|
方法详细信息
load | () | 方法 |
public function load(exprConfig:Array, funcConfig:Array, varConfig:Array):void
语言版本: | ActionScript 3.0 |
产品版本: | Expression Manager Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Loads the given mock data into this provider. Note that since mock data is loaded asynchronously, consuming applications must wait for the provider to dispatch an Event of type Event.COMPLETE before it can be used.
参数
exprConfig:Array — An array of XML paths (strings) for expression mock-data.
| |
funcConfig:Array — An array of XML paths (strings) for function mock-data.
| |
varConfig:Array — An array of XML paths (strings) for variable mock-data.
|
Tue Jun 12 2018, 11:04 AM Z