Class TypeInfo

Class TypeInfo

Namespace: Aspose.Html.Dom
Assembly: Aspose.HTML.dll (25.2.0)

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

[DOMObject]
[DOMName("TypeInfo")]
[ComVisible(true)]
public class TypeInfo : DOMObject, INotifyPropertyChanged

Inheritance

objectDOMObjectTypeInfo

Implements

INotifyPropertyChanged

Inherited Members

DOMObject.GetPlatformType(), object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Fields

DERIVATION_EXTENSION

If the document’s schema is an XML Schema [XML Schema Part 1], this constant represents the derivation by extension.

[DOMName("DERIVATION_EXTENSION")]
public const ulong DERIVATION_EXTENSION = 2

Field Value

ulong

DERIVATION_LIST

If the document’s schema is an XML Schema [XML Schema Part 1], this constant represents the list.

[DOMName("DERIVATION_LIST")]
public const ulong DERIVATION_LIST = 8

Field Value

ulong

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.

[DOMName("DERIVATION_RESTRICTION")]
public const ulong DERIVATION_RESTRICTION = 1

Field Value

ulong

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.

[DOMName("DERIVATION_UNION")]
public const ulong DERIVATION_UNION = 4

Field Value

ulong

Properties

TypeName

The name of a type declared for the associated element or attribute, or null if unknown.

[DOMName("typeName")]
public string TypeName { get; }

Property Value

string

TypeNamespace

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.

[DOMName("typeNamespace")]
public string TypeNamespace { get; }

Property Value

string

Methods

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.

[DOMName("ProcessingInstruction")]
public bool IsDerivedFrom(string typeNamespaceArg, string typeNameArg, ulong derivationMethod)

Parameters

typeNamespaceArg string

the namespace of the other type definition

typeNameArg string

the name of the other type definition.

derivationMethod ulong

the type of derivation and conditions applied between two types, as described in the list of constants provided in this interface.

Returns

bool

If the document’s schema is a DTD or no schema is associated with the document, this method will always return false. If the document’s schema is an XML Schema, the method will true if the reference type definition is derived from the other type definition according to the derivation parameter. If the value of the parameter is 0 (no bit is set to 1 for the derivationMethod parameter), the method will return true if the other type definition can be reached by recursing any combination of {base type definition}, {item type definition}, or {member type definitions} from the reference type definition.