IAttributes Interface

Definition

Interface for a list of XML attributes.

[Android.Runtime.Register("org/xml/sax/Attributes", "", "Org.Xml.Sax.IAttributesInvoker")]
public interface IAttributes : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("org/xml/sax/Attributes", "", "Org.Xml.Sax.IAttributesInvoker")>]
type IAttributes = interface
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Derived
Attributes
Implements

Remarks

Interface for a list of XML attributes.

<blockquote> <em>This module, both source code and documentation, is in the Public Domain, and comes with <strong>NO WARRANTY</strong>.</em> See http://www.saxproject.org for further information. </blockquote>

This interface allows access to a list of attributes in three different ways:

<ol> <li>by attribute index;</li> <li>by Namespace-qualified name; or</li> <li>by qualified (prefixed) name.</li> </ol>

The list will not contain attributes that were declared #IMPLIED but not specified in the start tag. It will also not contain attributes used as Namespace declarations (xmlns*) unless the http://xml.org/sax/features/namespace-prefixes feature is set to <var>true</var> (it is <var>false</var> by default). Because SAX2 conforms to the original "Namespaces in XML" recommendation, it normally does not give namespace declaration attributes a namespace URI.

Some SAX2 parsers may support using an optional feature flag (http://xml.org/sax/features/xmlns-uris) to request that those attributes be given URIs, conforming to a later backwards-incompatible revision of that recommendation. (The attribute's "local name" will be the prefix, or "xmlns" when defining a default element namespace.) For portability, handler code should always resolve that conflict, rather than requiring parsers that can change the setting of that feature flag.

If the namespace-prefixes feature (see above) is <var>false</var>, access by qualified name may not be available; if the http://xml.org/sax/features/namespaces feature is <var>false</var>, access by Namespace-qualified names may not be available.

This interface replaces the now-deprecated SAX1 org.xml.sax.AttributeList AttributeList interface, which does not contain Namespace support. In addition to Namespace support, it adds the <var>getIndex</var> methods (below).

The order of attributes in the list is unspecified, and will vary from implementation to implementation.

Added in SAX 2.0.

Java documentation for org.xml.sax.Attributes.

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.

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)

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

GetIndex(String, String)

Look up the index of an attribute by Namespace name.

GetLocalName(Int32)

Look up an attribute's local name by index.

GetQName(Int32)

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

GetType(Int32)

Look up an attribute's type by index.

GetType(String)

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

GetType(String, String)

Look up an attribute's type by Namespace name.

GetURI(Int32)

Look up an attribute's Namespace URI by index.

GetValue(Int32)

Look up an attribute's value by index.

GetValue(String)

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

GetValue(String, String)

Look up an attribute's value by Namespace name.

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