語言

IAttributes2 介面

定義

SAX2 擴充功能用以增強每個屬性所提供的 Attributes資訊。

[Android.Runtime.Register("org/xml/sax/ext/Attributes2", "", "Org.Xml.Sax.Ext.IAttributes2Invoker")]
public interface IAttributes2 : IDisposable, Java.Interop.IJavaPeerable, Org.Xml.Sax.IAttributes
[<Android.Runtime.Register("org/xml/sax/ext/Attributes2", "", "Org.Xml.Sax.Ext.IAttributes2Invoker")>]
type IAttributes2 = interface
    interface IAttributes
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
衍生
屬性
實作

備註

SAX2 擴充功能用以增強每個屬性所提供的 Attributes資訊。 若實作支援此擴充,所org.xml.sax.ContentHandler#startElement ContentHandler.startElement() 提供的屬性將實作此介面,em<>http://xml.org/sax/features/use-attributes2</em> 功能旗標的值<為 em>true</em>。

< > <引用 em>這個模組,包括原始碼和文件,皆屬於公有領域,並附帶<強烈>的無保證</強力>保證。</em></blockquote>

XMLReader 實作不需支援此資訊,且它並非僅包含核心的 SAX2 發行版。

請注意,如果某個屬性被預設(<em!isSpecified()</em>),它必然也會在 DTD 中被宣告<(em>isDeclared()</em>>)。 同理,如果屬性的型別不是 CDATA,則必須是宣告過。

新增於 SAX 2.0(擴充套件 1.1 alpha)。

的 org.xml.sax.ext.Attributes2Java 檔。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

屬性

名稱 Description
Handle

取得底層 Android 物件的 JNI 值。

(繼承來源 IJavaObject)
JniIdentityHashCode

回傳包裹實例的 java.lang.System.identityHashCode() 值。

(繼承來源 IJavaPeerable)
JniManagedPeerState

管理貴族的狀況。

(繼承來源 IJavaPeerable)
JniObjectReferenceControlBlock

SAX2 擴充功能用以增強每個屬性所提供的 Attributes資訊。

(繼承來源 IJavaPeerable)
JniPeerMembers

成員存取與召喚支援。

(繼承來源 IJavaPeerable)
Length

回傳列表中的屬性數量。

(繼承來源 IAttributes)
PeerReference

回傳JniObjectReference包裹後的 Java 物件實例。

(繼承來源 IJavaPeerable)

方法

名稱 Description
Disposed()

當實例被處理後才被召喚。

(繼承來源 IJavaPeerable)
DisposeUnlessReferenced()

如果沒有未解決的參考資料,則 Dispose()呼叫;否則,則不做任何事。

(繼承來源 IJavaPeerable)
Finalized()

當實例完成後才會被通知。

(繼承來源 IJavaPeerable)
GetIndex(String, String)

用命名空間名稱查詢屬性的索引。

(繼承來源 IAttributes)
GetIndex(String)

用 XML 限定(前綴)名稱查詢屬性的索引。

(繼承來源 IAttributes)
GetLocalName(Int32)

用索引查詢屬性的本地名稱。

(繼承來源 IAttributes)
GetQName(Int32)

用索引查詢屬性的 XML 限定(前綴)名稱。

(繼承來源 IAttributes)
GetType(Int32)

用索引查詢屬性的類型。

(繼承來源 IAttributes)
GetType(String, String)

用命名空間名稱查詢屬性的類型。

(繼承來源 IAttributes)
GetType(String)

用 XML 限定(前綴)名稱查詢屬性的類型。

(繼承來源 IAttributes)
GetURI(Int32)

用索引查詢屬性的命名空間 URI。

(繼承來源 IAttributes)
GetValue(Int32)

用索引查詢屬性的值。

(繼承來源 IAttributes)
GetValue(String, String)

用命名空間名稱查詢屬性的值。

(繼承來源 IAttributes)
GetValue(String)

用 XML 限定(前綴)名稱查詢屬性的值。

(繼承來源 IAttributes)
IsDeclared(Int32)

除非該屬性在 DTD 中被宣告,否則會回傳 false。

IsDeclared(String, String)

除非該屬性在 DTD 中被宣告,否則會回傳 false。

IsDeclared(String)

除非該屬性在 DTD 中被宣告,否則會回傳 false。

IsSpecified(Int32)

除非屬性值是由 DTD 預設提供,否則 回傳為真。

IsSpecified(String, String)

除非屬性值是由 DTD 預設提供,否則 回傳為真。

IsSpecified(String)

除非屬性值是由 DTD 預設提供,否則 回傳為真。

SetJniIdentityHashCode(Int32)

將回傳的值設為 JniIdentityHashCode。

(繼承來源 IJavaPeerable)
SetJniManagedPeerState(JniManagedPeerStates)

SAX2 擴充功能用以增強每個屬性所提供的 Attributes資訊。

(繼承來源 IJavaPeerable)
SetPeerReference(JniObjectReference)

將回傳的值設為 PeerReference。

(繼承來源 IJavaPeerable)
UnregisterFromRuntime()

取消註冊此實例,讓執行時不會在未來 Java.Interop.JniRuntime+JniValueManager.PeekValue 的呼叫中回傳該實例。

(繼承來源 IJavaPeerable)

擴充方法

名稱 Description
GetJniTypeName(IJavaPeerable)

取得實例 self類型的 JNI 名稱。

JavaAs<TResult>(IJavaPeerable)

試著強制self輸入 TResult,檢查 強制在 Java 端是否有效。

JavaCast<TResult>(IJavaObject)

執行 Android 執行時檢查型別轉換。

JavaCast<TResult>(IJavaObject)

SAX2 擴充功能用以增強每個屬性所提供的 Attributes資訊。

TryJavaCast<TResult>(IJavaPeerable, TResult)

試著強制self輸入 TResult,檢查 強制在 Java 端是否有效。

適用於