语言

Attributes2Impl 类

定义

SAX2 扩展帮助程序,用于实现 Attributes2 接口的其他属性信息。

[Android.Runtime.Register("org/xml/sax/ext/Attributes2Impl", DoNotGenerateAcw=true)]
public class Attributes2Impl : Org.Xml.Sax.Helpers.AttributesImpl, IDisposable, Org.Xml.Sax.Ext.IAttributes2
[<Android.Runtime.Register("org/xml/sax/ext/Attributes2Impl", DoNotGenerateAcw=true)>]
type Attributes2Impl = class
    inherit AttributesImpl
    interface IAttributes2
    interface IAttributes
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
继承
特性
实现

注解

SAX2 扩展帮助程序,用于实现 Attributes2 接口的其他属性信息。

<blockquote><em>This module, both source code and documentation, is in the Public Domain, and with NO WARRANTY.</em></blockquote>

这不是仅限核心的 SAX2 分发的一部分。

除非在复制构造函数或使用#setSpecified中将其设置为 false,否则每个属性的指定标志将始终为 true。 同样,每个属性 的声明 标志将始终为 false,默认属性(指定 为 false)、非 CDATA 属性或设置为 true 时使用 #setDeclared。 如果手动更改属性的类型,则可能需要修改其 声明的 标志以匹配。

在 SAX 2.0 中添加(extensions 1.1 alpha)。

Java文档org.xml.sax.ext.Attributes2Impl。

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

构造函数

名称 说明
Attributes2Impl()

构造一个新的空 Attributes2Impl 对象。

Attributes2Impl(IAttributes)

复制现有的 Attributes 或 Attributes2 对象。

Attributes2Impl(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

属性

名称 说明
Class

返回此 Object的运行时类。

(继承自 Object)
Handle

基础 Android 实例的句柄。

(继承自 Object)
JniIdentityHashCode

获取互操作运行时分配给此Java对等的标识哈希代码。

(继承自 Object)
JniManagedPeerState

获取运行时上次分配的状态标志。

(继承自 JavaObject)
JniPeerMembers

此 API 支持 Mono for Android 基础结构,不打算直接从代码使用。

Length

返回列表中的属性数。

(继承自 AttributesImpl)
PeerReference

获取此Java对等方的 JNI 对象引用。

(继承自 Object)
ThresholdClass

此 API 支持 Mono for Android 基础结构,不打算直接从代码使用。

ThresholdType

此 API 支持 Mono for Android 基础结构,不打算直接从代码使用。

方法

名称 说明
AddAttribute(String, String, String, String, String)

将属性添加到列表末尾。

(继承自 AttributesImpl)
Clear()

清除属性列表以供重复使用。

(继承自 AttributesImpl)
Clone()

创建并返回此对象的副本。

(继承自 Object)
Construct(JniObjectReference, JniObjectReferenceOptions)

将此对等方的构造委托给运行时的值管理器。

(继承自 JavaObject)
Dispose()

释放此Java对等方持有的资源。

(继承自 Object)
Dispose(Boolean)

释放此Java对等方持有的资源。

(继承自 Object)
DisposeUnlessReferenced()

要求值管理器释放此对等方,除非其映射保留此相同的托管实例。

(继承自 JavaObject)
Equals(Object)

测试另一个托管对等方是否引用同一Java对象。

(继承自 JavaObject)
Equals(Object)

指示其他对象是否“等于”此对象。

(继承自 Object)
GetHashCode()

返回对象的哈希代码值。

(继承自 Object)
GetIndex(String, String)

按命名空间名称查找属性的索引。

(继承自 AttributesImpl)
GetIndex(String)

按限定名称(前缀)查找属性的索引。

(继承自 AttributesImpl)
GetLocalName(Int32)

返回属性的本地名称。

(继承自 AttributesImpl)
GetQName(Int32)

返回属性的限定名称(前缀)。

(继承自 AttributesImpl)
GetType(Int32)

按索引返回属性的类型。

(继承自 AttributesImpl)
GetType(String, String)

按命名空间限定的名称查找属性的类型。

(继承自 AttributesImpl)
GetType(String)

按限定名称(前缀)查找属性的类型。

(继承自 AttributesImpl)
GetURI(Int32)

返回属性的命名空间 URI。

(继承自 AttributesImpl)
GetValue(Int32)

按索引返回特性的值。

(继承自 AttributesImpl)
GetValue(String, String)

按命名空间限定的名称查找特性的值。

(继承自 AttributesImpl)
GetValue(String)

按限定(前缀)名称查找特性的值。

(继承自 AttributesImpl)
IsDeclared(Int32)

除非在 DTD 中声明了该属性,否则返回 false。

IsDeclared(String, String)

除非在 DTD 中声明了该属性,否则返回 false。

IsDeclared(String)

除非在 DTD 中声明了该属性,否则返回 false。

IsSpecified(Int32)

返回属性的“指定”标志的当前值。

IsSpecified(String, String)

返回属性的“指定”标志的当前值。

IsSpecified(String)

返回属性的“指定”标志的当前值。

JavaFinalize()
已过时.

当垃圾回收确定不再引用该对象时,由对象上的垃圾回收器调用。

(继承自 Object)
Notify()

唤醒正在等待此对象的监视器的单个线程。

(继承自 Object)
NotifyAll()

唤醒正在等待此对象的监视器的所有线程。

(继承自 Object)
RemoveAttribute(Int32)

从列表中删除属性。

(继承自 AttributesImpl)
SetAttribute(Int32, String, String, String, String, String)

在列表中设置属性。

(继承自 AttributesImpl)
SetAttributes(IAttributes)

复制整个 Attributes 对象。

(继承自 AttributesImpl)
SetDeclared(Int32, Boolean)

将值分配给特定属性的“已声明”标志。

SetHandle(IntPtr, JniHandleOwnership)

设置 Handle 属性。

(继承自 Object)
SetLocalName(Int32, String)

设置特定属性的本地名称。

(继承自 AttributesImpl)
SetPeerReference(JniObjectReference, JniObjectReferenceOptions)

在不创建 JNI 引用副本的情况下,将引用值存储在控制块中。

(继承自 JavaObject)
SetQName(Int32, String)

设置特定属性的限定名称。

(继承自 AttributesImpl)
SetSpecified(Int32, Boolean)

将值分配给特定属性的“指定”标志。

SetType(Int32, String)

设置特定属性的类型。

(继承自 AttributesImpl)
SetURI(Int32, String)

设置特定属性的命名空间 URI。

(继承自 AttributesImpl)
SetValue(Int32, String)

设置特定特性的值。

(继承自 AttributesImpl)
ToArray<T>()

从此Java数组包装器创建托管数组。

(继承自 Object)
ToString()

返回对象的字符串表示形式。

(继承自 Object)
UnregisterFromRuntime()

从互操作运行时取消注册此Java对等。

(继承自 Object)
Wait()

导致当前线程等待,直到它被唤醒,通常是通过 通知 或 中断。

(继承自 Object)
Wait(Int64, Int32)

使当前线程等待直到唤醒,通常是通过 通知 或 中断,或直到经过一定数量的实时。

(继承自 Object)
Wait(Int64)

使当前线程等待直到唤醒,通常是通过 通知 或 中断,或直到经过一定数量的实时。

(继承自 Object)

显式接口实现

名称 说明
IJavaPeerable.Disposed()

将此对等方标记为已释放,并将disposing调用Dispose设置为 true.

(继承自 JavaObject)
IJavaPeerable.Finalized()

将此对等方标记为已释放,并将disposing调用Dispose设置为 false.

(继承自 JavaObject)
IJavaPeerable.JniObjectReferenceControlBlock

获取此对等方使用的本机控制块指针。

(继承自 JavaObject)
IJavaPeerable.SetJniIdentityHashCode(Int32)

存储运行时提供的标识哈希代码。

(继承自 JavaObject)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)

替换存储的托管对等状态标志。

(继承自 JavaObject)
IJavaPeerable.SetPeerReference(JniObjectReference)

更新对等引用,并在引用无效时释放已释放的对等方控制块。

(继承自 JavaObject)
IJavaPeerable.UnregisterFromRuntime()

从运行时的Java对象查找中删除此实例。

扩展方法

名称 说明
GetJniTypeName(IJavaPeerable)

获取实例 self类型的 JNI 名称。

JavaAs<TResult>(IJavaPeerable)

尝试强制self键入TResult,检查强制是否在Java端有效。

JavaCast<TResult>(IJavaObject)

执行 Android 运行时检查的类型转换。

JavaCast<TResult>(IJavaObject)

重复使用兼容的托管对等,或获取请求类型的包装器。

TryJavaCast<TResult>(IJavaPeerable, TResult)

尝试强制self键入TResult,检查强制是否在Java端有效。

适用于