Share via


IDeclHandler Interface

Definition

SAX2 extension handler for DTD declaration events.

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

Remarks

SAX2 extension handler for DTD declaration events.

<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 is an optional extension handler for SAX2 to provide more complete information about DTD declarations in an XML document. XML readers are not required to recognize this handler, and it is not part of core-only SAX2 distributions.

Note that data-related DTD declarations (unparsed entities and notations) are already reported through the org.xml.sax.DTDHandler DTDHandler interface.

If you are using the declaration handler together with a lexical handler, all of the events will occur between the org.xml.sax.ext.LexicalHandler#startDTD startDTD and the org.xml.sax.ext.LexicalHandler#endDTD endDTD events.

To set the DeclHandler for an XML reader, use the org.xml.sax.XMLReader#setProperty setProperty method with the property name http://xml.org/sax/properties/declaration-handler and an object implementing this interface (or null) as the value. If the reader does not report declaration events, it will throw a org.xml.sax.SAXNotRecognizedException SAXNotRecognizedException when you attempt to register the handler.

Added in SAX 2.0 (extensions 1.0).

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

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)
PeerReference

Returns a JniObjectReference of the wrapped Java object instance.

(Inherited from IJavaPeerable)

Methods

AttributeDecl(String, String, String, String, String)

Report an attribute type declaration.

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)
ElementDecl(String, String)

Report an element type declaration.

ExternalEntityDecl(String, String, String)

Report a parsed external entity declaration.

Finalized()

Called when the instance has been finalized.

(Inherited from IJavaPeerable)
InternalEntityDecl(String, String)

Report an internal entity declaration.

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