共用方式為


QName Class

Definition

QName represents a <strong>qualified name</strong> as defined in the XML specifications: XML Schema Part2: Datatypes specification, Namespaces in XML, Namespaces in XML Errata.

[Android.Runtime.Register("javax/xml/namespace/QName", DoNotGenerateAcw=true)]
public class QName : Java.Lang.Object, IDisposable, Java.Interop.IJavaPeerable, Java.IO.ISerializable
[<Android.Runtime.Register("javax/xml/namespace/QName", DoNotGenerateAcw=true)>]
type QName = class
    inherit Object
    interface ISerializable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Inheritance
QName
Attributes
Implements

Remarks

QName represents a <strong>qualified name</strong> as defined in the XML specifications: XML Schema Part2: Datatypes specification, Namespaces in XML, Namespaces in XML Errata.

The value of a QName contains a <strong>Namespace URI</strong>, <strong>local part</strong> and <strong>prefix</strong>.

The prefix is included in QName to retain lexical information <strong><em>when present</em></strong> in an javax.xml.transform.Source XML input source. The prefix is <strong><em>NOT</em></strong> used in #equals(Object) QName.equals(Object) or to compute the #hashCode() QName.hashCode(). Equality and the hash code are defined using <strong><em>only</em></strong> the Namespace URI and local part.

If not specified, the Namespace URI is set to javax.xml.XMLConstants#NULL_NS_URI XMLConstants.NULL_NS_URI. If not specified, the prefix is set to javax.xml.XMLConstants#DEFAULT_NS_PREFIX XMLConstants.DEFAULT_NS_PREFIX.

QName is immutable.

Added in 1.5.

Java documentation for javax.xml.namespace.QName.

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

QName(IntPtr, JniHandleOwnership)

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

QName(String, String, String)

QName constructor specifying the Namespace URI, local part and prefix.

QName(String, String)

QName constructor specifying the Namespace URI and local part.

QName(String)

QName constructor specifying the local part.

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
LocalPart

Get the local part of this QName.

NamespaceURI

Get the Namespace URI of this QName.

PeerReference (Inherited from Object)
Prefix

Get the prefix of this QName.

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

Clone()

Creates and returns a copy of this object.

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

Test this QName for equality with another Object.

GetHashCode()

Generate the hash code for this QName.

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)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

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

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
ValueOf(String)

QName derived from parsing the formatted String.

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