共用方式為


BaseMapper interface

對應工具的基底定義。 可用於 XML 和純 JavaScript 物件。

屬性

constraints

要測試目前值的條件約束

defaultValue

未明確提供預設值

isConstant

目前屬性是否為常數

nullable

目前屬性是否允許將 mull 當做值

readOnly

目前屬性是否為唯讀

required

是否需要目前的屬性

serializedName

串行化時要使用的名稱

type

對應程式的類型

xmlElementName

串行化陣列時 xml 項目的名稱

xmlIsAttribute

判斷目前屬性是否應該串行化為父 xml 元素的屬性

xmlIsMsText

判斷目前屬性是否應該串行化為 xml 項目的內部內容

xmlIsWrapped

目前屬性是否應該有包裝 XML 專案

xmlName

xml 項目的名稱

xmlNamespace

Xml 專案命名空間

xmlNamespacePrefix

Xml 元素命名空間前置詞

屬性詳細資料

constraints

要測試目前值的條件約束

constraints?: MapperConstraints

屬性值

defaultValue

未明確提供預設值

defaultValue?: any

屬性值

any

isConstant

目前屬性是否為常數

isConstant?: boolean

屬性值

boolean

nullable

目前屬性是否允許將 mull 當做值

nullable?: boolean

屬性值

boolean

readOnly

目前屬性是否為唯讀

readOnly?: boolean

屬性值

boolean

required

是否需要目前的屬性

required?: boolean

屬性值

boolean

serializedName

串行化時要使用的名稱

serializedName?: string

屬性值

string

type

對應程式的類型

type: MapperType

屬性值

MapperType

xmlElementName

串行化陣列時 xml 項目的名稱

xmlElementName?: string

屬性值

string

xmlIsAttribute

判斷目前屬性是否應該串行化為父 xml 元素的屬性

xmlIsAttribute?: boolean

屬性值

boolean

xmlIsMsText

判斷目前屬性是否應該串行化為 xml 項目的內部內容

xmlIsMsText?: boolean

屬性值

boolean

xmlIsWrapped

目前屬性是否應該有包裝 XML 專案

xmlIsWrapped?: boolean

屬性值

boolean

xmlName

xml 項目的名稱

xmlName?: string

屬性值

string

xmlNamespace

Xml 專案命名空間

xmlNamespace?: string

屬性值

string

xmlNamespacePrefix

Xml 元素命名空間前置詞

xmlNamespacePrefix?: string

屬性值

string