Dela via


IAttributes2 Interface

Definition

SAX2 extension to augment the per-attribute information provided though 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
Derived
Attributes
Implements

Remarks

SAX2 extension to augment the per-attribute information provided though Attributes. If an implementation supports this extension, the attributes provided in org.xml.sax.ContentHandler#startElement ContentHandler.startElement() will implement this interface, and the <em>http://xml.org/sax/features/use-attributes2</em> feature flag will have the value <em>true</em>.

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

XMLReader implementations are not required to support this information, and it is not part of core-only SAX2 distributions.

Note that if an attribute was defaulted (<em>!isSpecified()</em>) it will of necessity also have been declared (<em>isDeclared()</em>) in the DTD. Similarly if an attribute's type is anything except CDATA, then it must have been declared.

Added in SAX 2.0 (extensions 1.1 alpha).

Java documentation for org.xml.sax.ext.Attributes2.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Properties

Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
JniIdentityHashCode

Returns the value of java.lang.System.identityHashCode() for the wrapped instance.

(Inherited from IJavaPeerable)
JniManagedPeerState

State of the managed peer.

(Inherited from IJavaPeerable)
JniPeerMembers

Member access and invocation support.

(Inherited from IJavaPeerable)
Length

Return the number of attributes in the list.

(Inherited from IAttributes)
PeerReference

Returns a JniObjectReference of the wrapped Java object instance.

(Inherited from IJavaPeerable)

Methods

Disposed()

Called when the instance has been disposed.

(Inherited from IJavaPeerable)
DisposeUnlessReferenced()

If there are no outstanding references to this instance, then calls Dispose(); otherwise, does nothing.

(Inherited from IJavaPeerable)
Finalized()

Called when the instance has been finalized.

(Inherited from IJavaPeerable)
GetIndex(String, String)

Look up the index of an attribute by Namespace name.

(Inherited from IAttributes)
GetIndex(String)

Look up the index of an attribute by XML qualified (prefixed) name.

(Inherited from IAttributes)
GetLocalName(Int32)

Look up an attribute's local name by index.

(Inherited from IAttributes)
GetQName(Int32)

Look up an attribute's XML qualified (prefixed) name by index.

(Inherited from IAttributes)
GetType(Int32)

Look up an attribute's type by index.

(Inherited from IAttributes)
GetType(String, String)

Look up an attribute's type by Namespace name.

(Inherited from IAttributes)
GetType(String)

Look up an attribute's type by XML qualified (prefixed) name.

(Inherited from IAttributes)
GetURI(Int32)

Look up an attribute's Namespace URI by index.

(Inherited from IAttributes)
GetValue(Int32)

Look up an attribute's value by index.

(Inherited from IAttributes)
GetValue(String, String)

Look up an attribute's value by Namespace name.

(Inherited from IAttributes)
GetValue(String)

Look up an attribute's value by XML qualified (prefixed) name.

(Inherited from IAttributes)
IsDeclared(Int32)

Returns false unless the attribute was declared in the DTD.

IsDeclared(String, String)

Returns false unless the attribute was declared in the DTD.

IsDeclared(String)

Returns false unless the attribute was declared in the DTD.

IsSpecified(Int32)

Returns true unless the attribute value was provided by DTD defaulting.

IsSpecified(String, String)

Returns true unless the attribute value was provided by DTD defaulting.

IsSpecified(String)

Returns true unless the attribute value was provided by DTD defaulting.

SetJniIdentityHashCode(Int32)

Set the value returned by JniIdentityHashCode.

(Inherited from IJavaPeerable)
SetJniManagedPeerState(JniManagedPeerStates) (Inherited from IJavaPeerable)
SetPeerReference(JniObjectReference)

Set the value returned by PeerReference.

(Inherited from IJavaPeerable)
UnregisterFromRuntime()

Unregister this instance so that the runtime will not return it from future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations.

(Inherited from IJavaPeerable)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to