| Package | com.pblabs.engine.core |
| Class | public class SchemaGenerator |
| Inheritance | SchemaGenerator Object |
| Property | Defined By | ||
|---|---|---|---|
| instance : SchemaGenerator [static] [read-only]
The singleton instance. | SchemaGenerator | ||
| Method | Defined By | ||
|---|---|---|---|
| SchemaGenerator | |||
addClass(className:String, classObject:Class):void
Adds a class to be included in the schema. | SchemaGenerator | ||
addClassName(className:String):void
Adds a class to be included in the schema. | SchemaGenerator | ||
generateSchema():void
Generates the actual schema data by passing the describeType output over a
LocalConnection. | SchemaGenerator | ||
getRegisteredTypes():Dictionary | SchemaGenerator | ||
| instance | property |
instance:SchemaGenerator [read-only] The singleton instance.
public static function get instance():SchemaGenerator| SchemaGenerator | () | Constructor |
public function SchemaGenerator()| addClass | () | method |
public function addClass(className:String, classObject:Class):voidAdds a class to be included in the schema. The TypeReference class automatically adds classes it is given.
Parameters
className:String | |
classObject:Class |
| addClassName | () | method |
public function addClassName(className:String):voidAdds a class to be included in the schema.
Parameters
className:String |
| generateSchema | () | method |
public function generateSchema():voidGenerates the actual schema data by passing the describeType output over a LocalConnection. The connection is named _SchemaConnection and supplies data to the OnSchemaReceived method. This method should receive two parameters. The first contains the type of message being sent, and the second contains the data. Valid message types are:
| getRegisteredTypes | () | method |
public function getRegisteredTypes():DictionaryReturns
Dictionary — A dictionary of Registered types. With keys as
class names and values as class definitions
|