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>此模块(源代码和文档)位于公共域中,附带 <强大的>无担保</强>。</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.AttributeListJava 文档。

此页面的某些部分是基于 创建和共享的工作进行的修改,并根据 署名许可中所述的条款使用。

属性

Handle
已过时.

获取基础 Android 对象的 JNI 值。

(继承自 IJavaObject)
JniIdentityHashCode
已过时.

返回包装实例的 的值 java.lang.System.identityHashCode()

(继承自 IJavaPeerable)
JniManagedPeerState
已过时.

托管对等方的状态。

(继承自 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)
已过时.

元素的属性规范的接口。

适用于