TypeInfo class

TypeInfo class

The TypeInfo represents a type referenced from Element or Attr nodes, specified in the schemas associated with the document.

Inheritance: TypeInfoDOMObject

The TypeInfo type exposes the following members:

Properties

PropertyDescription
type_nameThe name of a type declared for the associated element or attribute, or null if unknown.
type_namespaceGets the type namespace.The namespace of the type declared for the associated element or attribute or null if the element does not have declaration or if no namespace information is available.
DERIVATION_RESTRICTIONIf 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.
DERIVATION_EXTENSIONIf the document’s schema is an XML Schema [XML Schema Part 1], this constant represents the derivation by extension.
DERIVATION_UNIONIf the document’s schema is an XML Schema [XML Schema Part 1], this constant represents the union if simple types are involved.
DERIVATION_LISTIf the document’s schema is an XML Schema [XML Schema Part 1], this constant represents the list.

Methods

MethodDescription
get_platform_typeThis method is used to retrieve ECMAScript object Type.
is_derived_fromThis method returns if there is a derivation between the reference type definition, i.e. the TypeInfo on which the method is being called, and the other type definition, i.e. the one passed as parameters.

See Also