TypeInfo

TypeInfo class

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

public class TypeInfo : DOMObject

Properties

Name Description
TypeName { get; } The name of a type declared for the associated element or attribute, or null if unknown.
TypeNamespace { get; } Gets 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.

Methods

Name Description
virtual GetPlatformType() This method is used to retrieve ECMAScript object Type.
IsDerivedFrom(string, string, ulong) This 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.

Fields

Name Description
const DERIVATION_EXTENSION If the document’s schema is an XML Schema [XML Schema Part 1], this constant represents the derivation by extension.
const DERIVATION_LIST If the document’s schema is an XML Schema [XML Schema Part 1], this constant represents the list.
const DERIVATION_RESTRICTION 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.
const DERIVATION_UNION If the document’s schema is an XML Schema [XML Schema Part 1], this constant represents the union if simple types are involved.

See Also