適用於 Adobe® Flash® Platform 的 ActionScript® 3.0 參考
首頁  |  隱藏套件和類別清單 |  套件  |  類別  |  新增內容  |  索引  |  附錄  |  為什麼顯示英文?
篩選: 從伺服器擷取資料...
從伺服器擷取資料...
mx.rpc.xml 

IXMLDecoder  - AS3 Flex

套件mx.rpc.xml
介面public interface IXMLDecoder

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

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



公用屬性
 屬性定義自
  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
公用方法
 方法定義自
  
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
屬性詳細資訊

makeObjectsBindable

屬性
makeObjectsBindable:Boolean

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: 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.



實作
    public function get makeObjectsBindable():Boolean
    public function set makeObjectsBindable(value:Boolean):void

recordXSIType

屬性 
recordXSIType:Boolean

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: 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.



實作
    public function get recordXSIType():Boolean
    public function set recordXSIType(value:Boolean):void

typeRegistry

屬性 
typeRegistry:mx.rpc.xml:SchemaTypeRegistry

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: 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.



實作
    public function get typeRegistry():mx.rpc.xml:SchemaTypeRegistry
    public function set typeRegistry(value:mx.rpc.xml:SchemaTypeRegistry):void
方法詳細資訊

decode

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

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

Decodes an XML document to an ActionScript object.

參數

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.

傳回值
* — Returns an ActionScript object decoded from the given XML document.

reset

()方法 
public function reset():void

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: 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 ]為什麼顯示英文?
「ActionScript 3.0 參考」的內容是以英文顯示

並非所有「ActionScript 3.0 參考」的內容都翻譯為所有語言。當語言元素未翻譯時,就會以英文顯示。例如,ga.controls.HelpBox 類別並沒有翻譯為任何語言。因此在參考的繁體中文版本中,ga.controls.HelpBox 類別就會以英文顯示。