Package | mx.rpc.xml |
Class | public class SchemaTypeRegistry |
Inheritance | SchemaTypeRegistry ![]() |
It is important to note that the desired Class must be linked into the SWF and possess a default constructor in order for the XMLDecoder to create a new instance of the type, otherwise an anonymous Object will be used to hold the decoded properties.
Method | Defined By | ||
---|---|---|---|
Looks for a registered Class for the given type.
| SchemaTypeRegistry | ||
SchemaTypeRegistry | |||
[static]
| SchemaTypeRegistry | ||
![]() |
Indicates whether an object has a specified property defined.
| Object | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter.
| Object | |
![]() |
Indicates whether the specified property exists and is enumerable.
| Object | |
Maps a type QName to a Class definition.
| SchemaTypeRegistry | ||
Maps a type name to a collection Class.
| SchemaTypeRegistry | ||
![]() |
Sets the availability of a dynamic property for loop operations.
| Object | |
![]() |
Returns the string representation of the specified object.
| Object | |
Removes a Class from the registry for the given type.
| SchemaTypeRegistry | ||
Removes a collection Class from the registry for the given type.
| SchemaTypeRegistry | ||
![]() |
Returns the primitive value of the specified object.
| Object |
getClass | () | method |
public function getClass(type:Object):Class
Looks for a registered Class for the given type.
Parameters
type:Object — The QName or String representing the type name.
|
Class — Returns the Class for the given type, or null of the type
has not been registered.
|
getCollectionClass | () | method |
public function getCollectionClass(type:Object):Class
Parameters
type:Object — The QName or String representing the collection type name.
|
Class |
getInstance | () | method |
registerClass | () | method |
public function registerClass(type:Object, definition:Object):void
Maps a type QName to a Class definition. The definition can be a String representation of the fully qualified class name or an instance of the Class itself.
Parameters
type:Object — The QName or String representation of the type name.
|
|
definition:Object — The Class itself or class name as a String.
|
registerCollectionClass | () | method |
public function registerCollectionClass(type:Object, definition:Object):void
Maps a type name to a collection Class. A collection is either the
top level Array type, or an implementation of mx.collections.IList
.
The definition can be a String representation of the fully qualified
class name or an instance of the Class itself.
Parameters
type:Object |
|
definition:Object |
unregisterClass | () | method |
public function unregisterClass(type:Object):void
Removes a Class from the registry for the given type.
Parameters
type:Object — The QName or String representation of the type name.
|
unregisterCollectionClass | () | method |
public function unregisterCollectionClass(type:Object):void
Removes a collection Class from the registry for the given type.
Parameters
type:Object — The QName or String representation of the collection type
name.
|