|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The TypeInfo interface represent 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.
If the document's schema is an XML DTD [XML 1.0], the values are computed as follows:
Attr node, typeNamespace is null
and typeName represents the [attribute type] property in the [XML Information set]
. If there is no declaration for the attribute, typeName is
null.
Element node, the typeNamespace and
typeName are null.
If the document's schema is an XML Schema [XML Schema Part 1] , the values are computed as follows using the post-schema-validation infoset contributions (also called PSVI contributions):
null.
Note: At the time of writing, the XML Schema specification does not require exposing the declared type. Thus, DOM implementations might choose not to provide type information if validity is not valid.
Note: Other schema languages are outside the scope of the W3C
and therefore should define how to represent their type systems using
TypeInfo.
See also the Document Object Model (DOM) Level 3 Core Specification.
| 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. |
| Method Detail |
public java.lang.String getTypeName()
null if unknown.
public java.lang.String getTypeNamespace()
null if the element does not have
declaration or if no namespace information is available.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||