다음을 통해 공유


AttributesImpl Class

Definition

Default implementation of the Attributes interface.

[Android.Runtime.Register("org/xml/sax/helpers/AttributesImpl", DoNotGenerateAcw=true)]
public class AttributesImpl : Java.Lang.Object, IDisposable, Java.Interop.IJavaPeerable, Org.Xml.Sax.IAttributes
[<Android.Runtime.Register("org/xml/sax/helpers/AttributesImpl", DoNotGenerateAcw=true)>]
type AttributesImpl = class
    inherit Object
    interface IAttributes
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Inheritance
AttributesImpl
Derived
Attributes
Implements

Remarks

Default implementation of the Attributes interface.

<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 class provides a default implementation of the SAX2 org.xml.sax.Attributes Attributes interface, with the addition of manipulators so that the list can be modified or reused.

There are two typical uses of this class:

<ol> <li>to take a persistent snapshot of an Attributes object in a org.xml.sax.ContentHandler#startElement startElement event; or</li> <li>to construct or modify an Attributes object in a SAX2 driver or filter.</li> </ol>

This class replaces the now-deprecated SAX1 org.xml.sax.helpers.AttributeListImpl AttributeListImpl class; in addition to supporting the updated Attributes interface rather than the deprecated org.xml.sax.AttributeList AttributeList interface, it also includes a much more efficient implementation using a single array rather than a set of Vectors.

Added in SAX 2.0.

Java documentation for org.xml.sax.helpers.AttributesImpl.

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.

Constructors

AttributesImpl()

Construct a new, empty AttributesImpl object.

AttributesImpl(IAttributes)

Copy an existing Attributes object.

AttributesImpl(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
Length

Return the number of attributes in the list.

PeerReference (Inherited from Object)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

AddAttribute(String, String, String, String, String)

Add an attribute to the end of the list.

Clear()

Clear the attribute list for reuse.

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetIndex(String, String)

Look up an attribute's index by Namespace name.

GetIndex(String)

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

GetLocalName(Int32)

Return an attribute's local name.

GetQName(Int32)

Return an attribute's qualified (prefixed) name.

GetType(Int32)

Return an attribute's type by index.

GetType(String, String)

Look up an attribute's type by Namespace-qualified name.

GetType(String)

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

GetURI(Int32)

Return an attribute's Namespace URI.

GetValue(Int32)

Return an attribute's value by index.

GetValue(String, String)

Look up an attribute's value by Namespace-qualified name.

GetValue(String)

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

JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
RemoveAttribute(Int32)

Remove an attribute from the list.

SetAttribute(Int32, String, String, String, String, String)

Set an attribute in the list.

SetAttributes(IAttributes)

Copy an entire Attributes object.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetLocalName(Int32, String)

Set the local name of a specific attribute.

SetQName(Int32, String)

Set the qualified name of a specific attribute.

SetType(Int32, String)

Set the type of a specific attribute.

SetURI(Int32, String)

Set the Namespace URI of a specific attribute.

SetValue(Int32, String)

Set the value of a specific attribute.

ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to