ITypeInfo Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The TypeInfo
interface represents a type referenced from
Element
or Attr
nodes, specified in the schemas
associated with the document.
[Android.Runtime.Register("org/w3c/dom/TypeInfo", "", "Org.W3c.Dom.ITypeInfoInvoker")]
public interface ITypeInfo : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("org/w3c/dom/TypeInfo", "", "Org.W3c.Dom.ITypeInfoInvoker")>]
type ITypeInfo = interface
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- Attributes
- Implements
Remarks
The TypeInfo
interface represents a type referenced from Element
or Attr
nodes, specified in the schemas associated with the document. The type is a pair of a namespace URI and name properties, and depends on the document's schema.
If the document's schema is an XML DTD [XML 1.0], the values are computed as follows: <ul> <li> If this type is referenced from an Attr
node, typeNamespace
is "http://www.w3.org/TR/REC-xml"
and typeName
represents the <b>[attribute type]</b> property in the [XML Information Set] . If there is no declaration for the attribute, typeNamespace
and typeName
are null
. </li> <li> If this type is referenced from an Element
node, typeNamespace
and typeName
are null
. </li> </ul>
If the document's schema is an XML Schema [XML Schema Part 1] , the values are computed as follows using the post-schema-validation infoset contributions (also called PSVI contributions): <ul> <li> If the <b>[validity]</b> property exists AND is <em>"invalid"</em> or <em>"notKnown"</em>: the {target namespace} and {name} properties of the declared type if available, otherwise null
. <p ><b>Note:</b> At the time of writing, the XML Schema specification does not require exposing the declared type. Thus, DOM implementations might choose not to provide type information if validity is not valid. </li> <li> If the <b>[validity]</b> property exists and is <em>"valid"</em>: <ol> <li> If <b>[member type definition]</b> exists: <ol> <li>If {name} is not absent, then expose {name} and {target namespace} properties of the <b>[member type definition]</b> property; </li> <li>Otherwise, expose the namespace and local name of the corresponding anonymous type name. </li> </ol> </li> <li> If the <b>[type definition]</b> property exists: <ol> <li>If {name} is not absent, then expose {name} and {target namespace} properties of the <b>[type definition]</b> property; </li> <li>Otherwise, expose the namespace and local name of the corresponding anonymous type name. </li> </ol> </li> <li> If the <b>[member type definition anonymous]</b> exists: <ol> <li>If it is false, then expose <b>[member type definition name]</b> and <b>[member type definition namespace]</b> properties; </li> <li>Otherwise, expose the namespace and local name of the corresponding anonymous type name. </li> </ol> </li> <li> If the <b>[type definition anonymous]</b> exists: <ol> <li>If it is false, then expose <b>[type definition name]</b> and <b>[type definition namespace]</b> properties; </li> <li>Otherwise, expose the namespace and local name of the corresponding anonymous type name. </li> </ol> </li> </ol> </li> </ul> <p ><b>Note:</b> Other schema languages are outside the scope of the W3C and therefore should define how to represent their type systems using TypeInfo
.
See also the Document Object Model (DOM) Level 3 Core Specification.
Added in DOM Level 3.
Java documentation for org.w3c.dom.TypeInfo
.
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.
Fields
DerivationExtension |
If the document's schema is an XML Schema [XML Schema Part 1] , this constant represents the derivation by extension. |
DerivationList |
If the document's schema is an XML Schema [XML Schema Part 1] , this constant represents the list. |
DerivationRestriction |
If the document's schema is an XML Schema [XML Schema Part 1] , this constant represents the derivation by restriction if complex types are involved, or a restriction if simple types are involved. |
DerivationUnion |
If the document's schema is an XML Schema [XML Schema Part 1] , this constant represents the union if simple types are involved. |
Properties
Handle |
Gets the JNI value of the underlying Android object. (Inherited from IJavaObject) |
JniIdentityHashCode |
Returns the value of |
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) |
TypeName |
The name of a type declared for the associated element or attribute,
or |
TypeNamespace |
The namespace of the type declared for the associated element or
attribute or |
Methods
Disposed() |
Called when the instance has been disposed. (Inherited from IJavaPeerable) |
DisposeUnlessReferenced() |
If there are no outstanding references to this instance, then
calls |
Finalized() |
Called when the instance has been finalized. (Inherited from IJavaPeerable) |
IsDerivedFrom(String, String, Int32) |
This method returns if there is a derivation between the reference type definition, i. |
SetJniIdentityHashCode(Int32) |
Set the value returned by |
SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from IJavaPeerable) |
SetPeerReference(JniObjectReference) |
Set the value returned by |
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) |