Share via


IAttributeList 介面

定義

警告

This class is obsoleted in this android platform

專案屬性規格的介面。

[Android.Runtime.Register("org/xml/sax/AttributeList", "", "Org.Xml.Sax.IAttributeListInvoker")]
[System.Obsolete("This class is obsoleted in this android platform")]
public interface IAttributeList : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("org/xml/sax/AttributeList", "", "Org.Xml.Sax.IAttributeListInvoker")>]
[<System.Obsolete("This class is obsoleted in this android platform")>]
type IAttributeList = interface
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
衍生
屬性
實作

備註

專案屬性規格的介面。

<blockquote >< em > This module, both source code and documentation, is in the Public Domain, and with < strong > NO WARRANTY < /strong > . </em > 如需詳細資訊,請參閱 http://www.saxproject.org 。 </blockquote>

這是報告專案屬性的原始 SAX1 介面。 不同于新的 org.xml.sax.Attributes Attributes 介面,它不支援命名空間相關資訊。

當屬性清單當做事件的一 org.xml.sax.DocumentHandler#startElement startElement 部分提供時,清單只會在事件範圍期間傳回有效的結果;一旦事件處理常式將控制權傳回剖析器,屬性清單就會無效。 若要儲存屬性清單的永續性複本,請使用 SAX1 org.xml.sax.helpers.AttributeListImpl AttributeListImpl 協助程式類別。

屬性清單僅包含已指定或預設的屬性:將不會包含 #IMPLIED 屬性。

SAX 應用程式有兩種方式可從 AttributeList 取得資訊。 首先,它可以逐一查看整個清單:

public void startElement (String name, AttributeList atts) {
              for (int i = 0; i < atts.getLength(); i++) {
                String name = atts.getName(i);
                String type = atts.getType(i);
                String value = atts.getValue(i);
                [...]
              }
            }

(請注意,如果沒有 attributes.) ,getLength () 的結果將會是零

或者,應用程式可以要求特定屬性的值或類型:

public void startElement (String name, AttributeList atts) {
              String identifier = atts.getValue("id");
              String label = atts.getValue("label");
              [...]
            }

已取代這個成員。 此介面已由 SAX2 org.xml.sax.Attributes Attributes 介面取代,其中包含命名空間支援。

已在 SAX 1.0 中新增。

org.xml.sax.AttributeList JAVA 檔。

此頁面的部分是根據所建立和共用的工作進行修改,並根據 2.5 屬性授權中所述的詞彙來使用。

屬性

Handle
已淘汰.

取得基礎 Android 物件的 JNI 值。

(繼承來源 IJavaObject)
JniIdentityHashCode
已淘汰.

傳回已包裝實例的 值 java.lang.System.identityHashCode()

(繼承來源 IJavaPeerable)
JniManagedPeerState
已淘汰.

Managed 對等的狀態。

(繼承來源 IJavaPeerable)
JniPeerMembers
已淘汰.

成員存取和調用支援。

(繼承來源 IJavaPeerable)
Length
已淘汰.

傳回此清單中的屬性數目。

PeerReference
已淘汰.

JniObjectReference 回已包裝 JAVA 物件實例的 。

(繼承來源 IJavaPeerable)

方法

Disposed()
已淘汰.

處置實例時呼叫。

(繼承來源 IJavaPeerable)
DisposeUnlessReferenced()
已淘汰.

如果這個實例沒有未完成的參考,則呼叫 Dispose() ,否則不會執行任何動作。

(繼承來源 IJavaPeerable)
Finalized()
已淘汰.

實例完成時呼叫。

(繼承來源 IJavaPeerable)
GetName(Int32)
已淘汰.

依位置) 傳回此清單中屬性的名稱 (。

GetType(Int32)
已淘汰.

依位置) 傳回清單中的屬性類型 (。

GetType(String)
已淘汰.

依名稱) 傳回清單中屬性的類型 (。

GetValue(Int32)
已淘汰.

依位置) 傳回清單中屬性的值 (。

GetValue(String)
已淘汰.

依名稱) 傳回清單中屬性的值 (。

SetJniIdentityHashCode(Int32)
已淘汰.

設定 所 JniIdentityHashCode 傳回的值。

(繼承來源 IJavaPeerable)
SetJniManagedPeerState(JniManagedPeerStates)
已淘汰.

專案屬性規格的介面。

(繼承來源 IJavaPeerable)
SetPeerReference(JniObjectReference)
已淘汰.

設定 所 PeerReference 傳回的值。

(繼承來源 IJavaPeerable)
UnregisterFromRuntime()
已淘汰.

取消註冊這個實例,讓執行時間不會從未來的 Java.Interop.JniRuntime+JniValueManager.PeekValue 調用傳回它。

(繼承來源 IJavaPeerable)

擴充方法

JavaCast<TResult>(IJavaObject)
已淘汰.

執行 Android 執行時間檢查的類型轉換。

JavaCast<TResult>(IJavaObject)
已淘汰.

專案屬性規格的介面。

GetJniTypeName(IJavaPeerable)
已淘汰.

專案屬性規格的介面。

適用於