org.w3c.dom
Interface TypeInfo


public interface TypeInfo

The TypeInfo interface represents a type referenced from Element or Attr 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.

Since:
DOM Level 3

Field Summary
static int DERIVATION_EXTENSION
           
static int DERIVATION_LIST
           
static int DERIVATION_RESTRICTION
           
static int DERIVATION_UNION
           
 
Method Summary
 java.lang.String getTypeName()
          The name of a type declared for the associated element or attribute, or null if unknown.
 java.lang.String getTypeNamespace()
          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.
 boolean isDerivedFrom(java.lang.String typeNamespaceArg, java.lang.String typeNameArg, int derivationMethod)
          This method returns if there is a derivation between the reference type definition, i.e.
 

Field Detail

DERIVATION_RESTRICTION

public static final int DERIVATION_RESTRICTION
See Also:
Constant Field Values (src)

DERIVATION_EXTENSION

public static final int DERIVATION_EXTENSION
See Also:
Constant Field Values (src)

DERIVATION_UNION

public static final int DERIVATION_UNION
See Also:
Constant Field Values (src)

DERIVATION_LIST

public static final int DERIVATION_LIST
See Also:
Constant Field Values (src)
Method Detail

getTypeName

public java.lang.String getTypeName()
The name of a type declared for the associated element or attribute, or null if unknown.


getTypeNamespace

public java.lang.String getTypeNamespace()
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

public boolean isDerivedFrom(java.lang.String typeNamespaceArg,
                             java.lang.String typeNameArg,
                             int 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.