Guida di riferimento di ActionScript® 3.0 per la piattaforma Adobe® Flash®
Home  |  Nascondi elenco pacchetti e classi |  Pacchetti  |  Classi  |  Novità  |  Indice  |  Appendici  |  Perché in inglese?
Filtri: Recupero dati dal server...
Recupero dati dal server...
mx.rpc.xml 

IXMLDecoder  - AS3 Flex

Pacchettomx.rpc.xml
Interfacciapublic interface IXMLDecoder

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Decodes an XML document to an ActionScript object graph based on XML Schema definitions.



Proprietà pubbliche
 ProprietàDefinito da
  makeObjectsBindable : Boolean
When makeObjectsBindable is set to true, anonymous Objects and Arrays are wrapped to make them bindable.
IXMLDecoder
  recordXSIType : Boolean
When recordXSIType is set to true, if an encoded complexType has an xsi:type attribute the type information will be recorded on the decoded instance if it is strongly typed and implements mx.rpc.xml.IXMLSchemaInstance or is an anonymous mx.utils.ObjectProxy.
IXMLDecoder
  typeRegistry : mx.rpc.xml:SchemaTypeRegistry
Maps XML Schema types by QName to ActionScript Classes in order to create strongly typed objects when decoding content.
IXMLDecoder
Metodi pubblici
 MetodoDefinito da
  
decode(xml:*, name:QName = null, type:QName = null, definition:XML = null):*
Decodes an XML document to an ActionScript object.
IXMLDecoder
  
Resets the decoder to its initial state, including resetting any Schema scope to the top level and releases the current XML document by setting it to null.
IXMLDecoder
Descrizione delle proprietà

makeObjectsBindable

proprietà
makeObjectsBindable:Boolean

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

When makeObjectsBindable is set to true, anonymous Objects and Arrays are wrapped to make them bindable. Objects are wrapped with mx.utils.ObjectProxy and Arrays are wrapped with mx.collections.ArrayCollection.



Implementazione
    public function get makeObjectsBindable():Boolean
    public function set makeObjectsBindable(value:Boolean):void

recordXSIType

proprietà 
recordXSIType:Boolean

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

When recordXSIType is set to true, if an encoded complexType has an xsi:type attribute the type information will be recorded on the decoded instance if it is strongly typed and implements mx.rpc.xml.IXMLSchemaInstance or is an anonymous mx.utils.ObjectProxy. This type information can be used to post process the decoded objects and identify which concrete implementation of a potentially abstract type was used. The default is false.



Implementazione
    public function get recordXSIType():Boolean
    public function set recordXSIType(value:Boolean):void

typeRegistry

proprietà 
typeRegistry:mx.rpc.xml:SchemaTypeRegistry

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Maps XML Schema types by QName to ActionScript Classes in order to create strongly typed objects when decoding content.



Implementazione
    public function get typeRegistry():mx.rpc.xml:SchemaTypeRegistry
    public function set typeRegistry(value:mx.rpc.xml:SchemaTypeRegistry):void
Descrizione dei metodi

decode

()metodo
public function decode(xml:*, name:QName = null, type:QName = null, definition:XML = null):*

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Decodes an XML document to an ActionScript object.

Parametri

xml:* — The XML instance to decode to an ActionScript object. This may be an XML instance, an XMLList of length 1 or a String that is valid XML.
 
name:QName (default = null) — The QName of an XML Schema element that describes how to decode the value, or the name to be used for the decoded value when a type parameter is also specified.
 
type:QName (default = null) — The QName of an XML Schema simpleType or complexType definition that describes how to decode the value.
 
definition:XML (default = null) — If neither a top-level element nor type exists in the schema to describe how to decode this value, a custom element definition can be provided.

Restituisce
* — Returns an ActionScript object decoded from the given XML document.

reset

()metodo 
public function reset():void

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Resets the decoder to its initial state, including resetting any Schema scope to the top level and releases the current XML document by setting it to null.





[ X ]Perché in inglese?
Il contenuto della Guida di riferimento di ActionScript 3.0 appare in inglese

Non tutte le parti della Guida di riferimento di ActionScript 3.0 sono tradotte in tutte le lingue. Quando un elemento del linguaggio non è tradotto, viene riportato in inglese. Ad esempio, la classe ga.controls.HelpBox non è tradotta in nessuna lingua. Pertanto, nella versione italiana della guida di riferimento, la descrizione della classe ga.controls.HelpBox è riportata in inglese.