DOMTypeInfo
interface represent a type used by DOMElement
or DOMAttr
nodes, specified in the schemas associated with the document.
More...
#include <DOMTypeInfo.hpp>
Public Types | |
Public Contants | |
enum | DerivationMethods { DERIVATION_RESTRICTION = 0x001, DERIVATION_EXTENSION = 0x002, DERIVATION_UNION = 0x004, DERIVATION_LIST = 0x008 } |
These are the available values for the derivationMethod parameter used by the method DOMTypeInfo::isDerivedFrom() . More... | |
Public Member Functions | |
Destructor | |
virtual | ~DOMTypeInfo () |
Destructor. | |
virtual const XMLCh * | getTypeName () const =0 |
Returns The name of a type declared for the associated DOMElement or DOMAttr , or null if unknown. | |
virtual const XMLCh * | getTypeNamespace () const =0 |
The namespace of the type declared for the associated DOMElement or DOMAttr or null if the DOMElement does not have declaration or if no namespace information is available. | |
virtual bool | isDerivedFrom (const XMLCh *typeNamespaceArg, const XMLCh *typeNameArg, DerivationMethods derivationMethod) const =0 |
This method returns if there is a derivation between the reference type definition, i.e. | |
Protected Member Functions | |
Hidden constructors | |
DOMTypeInfo () |
DOMTypeInfo
interface represent a type used by DOMElement
or DOMAttr
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.
|
These are the available values for the derivationMethod parameter used by the method It is a set of possible types of derivation, and the values represent bit positions. If a bit in the derivationMethod parameter is set to 1, the corresponding type of derivation will be taken into account when evaluating the derivation between the reference type definition and the other type definition. When using the isDerivedFrom method, combining all of them in the derivationMethod parameter is equivalent to invoking the method for each of them separately and combining the results with the OR boolean function. This specification only defines the type of derivation for XML Schema. In addition to the types of derivation listed below, please note that:
|
|
|
|
Destructor.
|
|
Returns The name of a type declared for the associated
|
|
The namespace of the type declared for the associated
|
|
This method returns if there is a derivation between the reference type definition, i.e. the DOMTypeInfo on which the method is being called, and the other type definition, i.e. the one passed as parameters.
|