java.lang.Object | ||||
↳ | org.apache.xerces.dom.NodeImpl | |||
↳ | org.apache.xerces.dom.ChildNode | |||
↳ | org.apache.xerces.dom.ParentNode | |||
↳ | org.apache.xerces.dom.DocumentTypeImpl |
Known Direct Subclasses |
This class represents a Document Type declaraction in the document itself, not a Document Type Definition (DTD). An XML document may (or may not) have such a reference.
DocumentType is an Extended DOM feature, used in XML documents but not in HTML.
Note that Entities and Notations are no longer children of the DocumentType, but are parentless nodes hung only in their appropriate NamedNodeMaps.
This area is UNDERSPECIFIED IN REC-DOM-Level-1-19981001 Most notably, absolutely no provision was made for storing and using Element and Attribute information. Nor was the linkage between Entities and Entity References nailed down solidly.@xerces.internal
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.dom.NodeImpl
| |||||||||||
From interface
org.w3c.dom.Node
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
elements | Elements. | ||||||||||
entities | Entities. | ||||||||||
internalSubset | |||||||||||
name | Document type name. | ||||||||||
notations | Notations. | ||||||||||
publicID | |||||||||||
systemID |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.dom.ParentNode
| |||||||||||
From class
org.apache.xerces.dom.ChildNode
| |||||||||||
From class
org.apache.xerces.dom.NodeImpl
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Factory method for creating a document type node.
| |||||||||||
Factory method for creating a document type node.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Clones the node.
| |||||||||||
NON-DOM: Access the collection of ElementDefinitions.
| |||||||||||
Access the collection of general Entities, both external and
internal, defined in the DTD.
| |||||||||||
Introduced in DOM Level 2.
| |||||||||||
Name of this document type.
| |||||||||||
Returns the document type name
| |||||||||||
A short integer indicating what type of node this is.
| |||||||||||
Access the collection of Notations defined in the DTD.
| |||||||||||
Introduced in DOM Level 2.
| |||||||||||
Introduced in DOM Level 2.
| |||||||||||
This attribute returns the text content of this node and its
descendants.
| |||||||||||
Retrieves the object associated to a key on a this node.
| |||||||||||
DOM Level 3 WD- Experimental.
| |||||||||||
NON-DOM.
| |||||||||||
NON-DOM: Subclassed to flip the entities' and notations' readonly switch
as well.
| |||||||||||
This attribute returns the text content of this node and its
descendants.
| |||||||||||
Associate an object to a key on this node.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
NON-DOM
Get the number associated with this doctype.
| |||||||||||
NON-DOM
set the ownerDocument of this node and its children
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.dom.ParentNode
| |||||||||||
From class
org.apache.xerces.dom.ChildNode
| |||||||||||
From class
org.apache.xerces.dom.NodeImpl
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.w3c.dom.DocumentType
| |||||||||||
From interface
org.w3c.dom.Node
| |||||||||||
From interface
org.w3c.dom.NodeList
| |||||||||||
From interface
org.w3c.dom.events.EventTarget
|
Factory method for creating a document type node.
Factory method for creating a document type node.
Clones the node.
NON-DOM: Access the collection of ElementDefinitions.
Access the collection of general Entities, both external and internal, defined in the DTD. For example, in:
<!doctype example SYSTEM "ex.dtd" [ <!ENTITY foo "foo"> <!ENTITY bar "bar"> <!ENTITY % baz "baz"> ]>
The Entities map includes foo and bar, but not baz. It is promised that only Nodes which are Entities will exist in this NamedNodeMap.
For HTML, this will always be null.
Note that "built in" entities such as & and < should be converted to their actual characters before being placed in the DOM's contained text, and should be converted back when the DOM is rendered as XML or HTML, and hence DO NOT appear here.
Introduced in DOM Level 2.
Return the internalSubset given as a string.
Name of this document type. If we loaded from a DTD, this should be the name immediately following the DOCTYPE keyword.
A short integer indicating what type of node this is. The named constants for this value are defined in the org.w3c.dom.Node interface.
Access the collection of Notations defined in the DTD. A notation declares, by name, the format of an XML unparsed entity or is used to formally declare a Processing Instruction target.
Introduced in DOM Level 2.
Return the public identifier of this Document type.
Introduced in DOM Level 2.
Return the system identifier of this Document type.
This attribute returns the text content of this node and its
descendants. When it is defined to be null, setting it has no effect.
When set, any possible children this node may have are removed and
replaced by a single Text
node containing the string
this attribute is set to. On getting, no serialization is performed,
the returned string does not contain any markup. No whitespace
normalization is performed, the returned string does not contain the
element content whitespaces . Similarly, on setting, no parsing is
performed either, the input string is taken as pure textual content.
The string returned is made of the text content of this node
depending on its type, as defined below:
Node type | Content |
---|
Node type | Content |
---|---|
ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, DOCUMENT_FRAGMENT_NODE | concatenation of the textContent
attribute value of every child node, excluding COMMENT_NODE and
PROCESSING_INSTRUCTION_NODE nodes |
ATTRIBUTE_NODE, TEXT_NODE, CDATA_SECTION_NODE, COMMENT_NODE, PROCESSING_INSTRUCTION_NODE |
nodeValue |
DOCUMENT_NODE, DOCUMENT_TYPE_NODE, NOTATION_NODE | null |
DOMException |
---|
Retrieves the object associated to a key on a this node. The object
must first have been set to this node by calling
setUserData
with the same key.
key | The key the object is associated to. |
---|
DOMObject
associated to the given key
on this node, or null
if there was none.DOM Level 3 WD- Experimental. Override inherited behavior from ParentNodeImpl to support deep equal.
arg | The node to compare equality with. |
---|
true
otherwise false
.NON-DOM.
Set the internalSubset given as a string.
NON-DOM: Subclassed to flip the entities' and notations' readonly switch as well.
readOnly | True or false as desired. |
---|---|
deep | If true, children are also toggled. Note that this will not change the state of an EntityReference or its children, which are always read-only. |
This attribute returns the text content of this node and its
descendants. When it is defined to be null, setting it has no effect.
When set, any possible children this node may have are removed and
replaced by a single Text
node containing the string
this attribute is set to. On getting, no serialization is performed,
the returned string does not contain any markup. No whitespace
normalization is performed, the returned string does not contain the
element content whitespaces . Similarly, on setting, no parsing is
performed either, the input string is taken as pure textual content.
The string returned is made of the text content of this node
depending on its type, as defined below:
Node type | Content |
---|---|
ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, DOCUMENT_FRAGMENT_NODE | concatenation of the textContent
attribute value of every child node, excluding COMMENT_NODE and
PROCESSING_INSTRUCTION_NODE nodes |
ATTRIBUTE_NODE, TEXT_NODE, CDATA_SECTION_NODE, COMMENT_NODE, PROCESSING_INSTRUCTION_NODE |
nodeValue |
DOCUMENT_NODE, DOCUMENT_TYPE_NODE, NOTATION_NODE | null |
DOMException |
---|
Associate an object to a key on this node. The object can later be
retrieved from this node by calling getUserData
with the
same key.
key | The key to associate the object to. |
---|---|
data | The object to associate to the given key, or
null to remove any existing association to that key. |
handler | The handler to associate to that key, or
null . |
DOMObject
previously associated to
the given key on this node, or null
if there was none.NON-DOM Get the number associated with this doctype.
NON-DOM set the ownerDocument of this node and its children