com.aspose.html.dom

Class TypeInfo

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static long DERIVATION_EXTENSION
      If the document's schema is an XML Schema [XML Schema Part 1], this constant represents the derivation by extension.
      static long DERIVATION_LIST
      If the document's schema is an XML Schema [XML Schema Part 1], this constant represents the list.
      static long 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.
      static long 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.
    • Constructor Summary

      Constructors 
      Constructor and Description
      TypeInfo(Node node)
      Initializes a new instance of the TypeInfo class.
    • Field Detail

      • DERIVATION_RESTRICTION

        @DOMNameAttribute(name="DERIVATION_RESTRICTION")
        public static final long 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.

        See Also:
        Constant Field Values
      • DERIVATION_EXTENSION

        @DOMNameAttribute(name="DERIVATION_EXTENSION")
        public static final long DERIVATION_EXTENSION

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

        See Also:
        Constant Field Values
      • DERIVATION_UNION

        @DOMNameAttribute(name="DERIVATION_UNION")
        public static final long 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:
        Constant Field Values
      • DERIVATION_LIST

        @DOMNameAttribute(name="DERIVATION_LIST")
        public static final long DERIVATION_LIST

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

        See Also:
        Constant Field Values
    • Constructor Detail

      • TypeInfo

        public TypeInfo(Node node)

        Initializes a new instance of the TypeInfo class.

        Parameters:
        node - The node.
    • Method Detail

      • getTypeName

        @DOMNameAttribute(name="typeName")
        public String getTypeName()

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

        Value: The name of the type.
      • getTypeNamespace

        @DOMNameAttribute(name="typeNamespace")
        public String getTypeNamespace()

        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.

      • isDerivedFrom

        @DOMNameAttribute(name="ProcessingInstruction")
        public boolean isDerivedFrom(String typeNamespaceArg,
                                                                                      String typeNameArg,
                                                                                      long derivationMethod)

        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.

        Parameters:
        typeNamespaceArg - the namespace of the other type definition
        typeNameArg - the name of the other type definition.
        derivationMethod - the type of derivation and conditions applied between two types, as described in the list of constants provided in this interface.
        Returns:
        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.