java.lang.Object | ||||||
↳ | org.apache.xerces.dom.NodeImpl | |||||
↳ | org.apache.xerces.dom.ChildNode | |||||
↳ | org.apache.xerces.dom.ParentNode | |||||
↳ | org.apache.xerces.dom.CoreDocumentImpl | |||||
↳ | org.apache.xerces.dom.DocumentImpl | |||||
↳ | org.apache.xerces.dom.DeferredDocumentImpl |
The Document interface represents the entire HTML or XML document. Conceptually, it is the root of the document tree, and provides the primary access to the document's data.
Since elements, text nodes, comments, processing instructions, etc. cannot exist outside the context of a Document, the Document interface also contains the factory methods needed to create these objects. The Node objects created have a ownerDocument attribute which associates them with the Document within whose context they were created.@xerces.internal
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | CHUNK_MASK | Chunk mask. | |||||||||
int | CHUNK_SHIFT | Chunk shift. | |||||||||
int | CHUNK_SIZE | Chunk size. | |||||||||
int | INITIAL_CHUNK_COUNT | Initial chunk size. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.dom.NodeImpl
| |||||||||||
From interface
org.apache.xerces.dom.DeferredNode
| |||||||||||
From interface
org.w3c.dom.Node
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
fIdCount | Identifier count. | ||||||||||
fIdElement | Identifier element indexes. | ||||||||||
fIdName | Identifier name indexes. | ||||||||||
fNamespacesEnabled | DOM2: For namespace support in the deferred case. | ||||||||||
fNodeCount | Node count. | ||||||||||
fNodeExtra | Extra data. | ||||||||||
fNodeLastChild | Node first children. | ||||||||||
fNodeName | Node names. | ||||||||||
fNodeParent | Node parents. | ||||||||||
fNodePrevSib | Node prev siblings. | ||||||||||
fNodeType | Node types. | ||||||||||
fNodeURI | Node namespace URI. | ||||||||||
fNodeValue | Node values. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.dom.DocumentImpl
| |||||||||||
From class
org.apache.xerces.dom.CoreDocumentImpl
| |||||||||||
From class
org.apache.xerces.dom.ParentNode
| |||||||||||
From class
org.apache.xerces.dom.ChildNode
| |||||||||||
From class
org.apache.xerces.dom.NodeImpl
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
NON-DOM: Actually creating a Document is outside the DOM's spec,
since it has to operate in terms of a particular implementation.
| |||||||||||
NON-DOM: Actually creating a Document is outside the DOM's spec,
since it has to operate in terms of a particular implementation.
| |||||||||||
Experimental constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Appends a child to the specified parent in the table.
| |||||||||||
Creates a clone of the specified node.
| |||||||||||
Creates an attribute in the table.
| |||||||||||
Creates an attribute with a URI in the table.
| |||||||||||
Creates a CDATA section node in the table.
| |||||||||||
Creates a comment node in the table.
| |||||||||||
Creates a document node in the table.
| |||||||||||
Creates a doctype.
| |||||||||||
This method is deprecated.
No replacement.
| |||||||||||
This method is deprecated.
No replacement.
| |||||||||||
Creates an element node with a URI in the table and type information.
| |||||||||||
Creates an element definition in the table.
| |||||||||||
Creates an entity in the table.
| |||||||||||
Creates an entity reference node in the table.
| |||||||||||
Creates a notation in the table.
| |||||||||||
Creates a processing instruction node in the table.
| |||||||||||
Creates a text node in the table.
| |||||||||||
Returns the attribute value of the given name.
| |||||||||||
Retrieve information describing the abilities of this particular
DOM implementation.
| |||||||||||
Returns the last child of the given node.
| |||||||||||
Returns the last child of the given node.
| |||||||||||
Returns the extra info of the given node.
| |||||||||||
Returns the extra info of the given node.
| |||||||||||
Returns the node index.
| |||||||||||
Returns the name of the given node.
| |||||||||||
Returns the name of the given node.
| |||||||||||
Instantiates the requested node object.
| |||||||||||
Returns the type of the given node.
| |||||||||||
Returns the type of the given node.
| |||||||||||
Returns the URI of the given node.
| |||||||||||
Returns the URI of the given node.
| |||||||||||
Returns the value of the given node.
| |||||||||||
Returns the value of the given node.
| |||||||||||
Returns the real value of the given node.
| |||||||||||
Returns the real value of the given node.
| |||||||||||
Returns the parent node of the given node.
| |||||||||||
Returns the parent node of the given node.
| |||||||||||
Returns the prev sibling of the given node.
| |||||||||||
Returns the prev sibling of the given node.
| |||||||||||
Returns the real prev sibling of the given node,
directly from the data structures.
| |||||||||||
Returns the real prev sibling of the given node.
| |||||||||||
Clears the type info that is stored in the fNodeValue array
| |||||||||||
Inserts a child before the specified node in the table.
| |||||||||||
Returns the index of the element definition in the table
with the specified name index, or -1 if no such definition
exists.
| |||||||||||
Prints out the tables.
| |||||||||||
Registers an identifier name with a specified element node.
| |||||||||||
Sets the last child of the parentIndex to childIndex.
| |||||||||||
Adds an attribute node to the specified element.
| |||||||||||
This method is deprecated.
No replacement.
| |||||||||||
This method is used by the DOMParser to create attributes.
| |||||||||||
Sets type of attribute
| |||||||||||
Adds an attribute node to the specified element.
| |||||||||||
DOM Internal
An attribute specifying the actual encoding of this document.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Performs a binary search for a target value in an array of
values.
| |||||||||||
Creates a node of the specified type.
| |||||||||||
Ensures that the internal tables are large enough.
| |||||||||||
Synchronizes the node's children with the internal structure.
| |||||||||||
Synchronizes the node's children with the internal structure.
| |||||||||||
Synchronizes the node's children with the internal structure.
| |||||||||||
Synchronizes the node's data.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.dom.DocumentImpl
| |||||||||||
From class
org.apache.xerces.dom.CoreDocumentImpl
| |||||||||||
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.apache.xerces.dom.DeferredNode
| |||||||||||
From interface
org.w3c.dom.Document
| |||||||||||
From interface
org.w3c.dom.Node
| |||||||||||
From interface
org.w3c.dom.NodeList
| |||||||||||
From interface
org.w3c.dom.events.DocumentEvent
| |||||||||||
From interface
org.w3c.dom.events.EventTarget
| |||||||||||
From interface
org.w3c.dom.ranges.DocumentRange
| |||||||||||
From interface
org.w3c.dom.traversal.DocumentTraversal
|
Chunk mask.
Chunk shift.
Chunk size.
Initial chunk size.
Identifier count.
Identifier element indexes.
DOM2: For namespace support in the deferred case.
Node count.
Extra data.
Node first children.
Node parents.
Node prev siblings.
Node types.
NON-DOM: Actually creating a Document is outside the DOM's spec, since it has to operate in terms of a particular implementation.
NON-DOM: Actually creating a Document is outside the DOM's spec, since it has to operate in terms of a particular implementation.
Experimental constructor.
Appends a child to the specified parent in the table.
Creates a clone of the specified node.
Creates an attribute in the table.
Creates an attribute with a URI in the table.
Creates a document node in the table.
Creates a doctype.
This method is deprecated.
No replacement.
Creates an element node in the table.
This method is deprecated.
No replacement.
Creates an element node with a URI in the table.
Creates an element node with a URI in the table and type information.
Creates an element definition in the table.
Creates an entity in the table.
Creates an entity reference node in the table.
Creates a notation in the table.
Creates a processing instruction node in the table.
Creates a text node in the table.
Returns the attribute value of the given name.
Retrieve information describing the abilities of this particular DOM implementation. Intended to support applications that may be using DOMs retrieved from several different sources, potentially with different underlying representations.
Returns the last child of the given node.
free | True to free child index. |
---|
Returns the last child of the given node.
Returns the extra info of the given node. Used by AttrImpl to store specified value (1 == true).
Returns the extra info of the given node.
free | True to free the value index. |
---|
Returns the node index.
Returns the name of the given node.
free | True to free the string index. |
---|
Returns the type of the given node.
Returns the type of the given node.
free | True to free type index. |
---|
Returns the URI of the given node.
free | True to free URI index. |
---|
Returns the value of the given node.
free | True to free the value index. |
---|
Returns the real value of the given node.
free | True to free the string index. |
---|
Returns the parent node of the given node.
free | True to free parent node. |
---|
Returns the parent node of the given node. Calling this method does not free the parent index.
Returns the prev sibling of the given node. This is post-normalization of Text Nodes.
Returns the prev sibling of the given node.
free | True to free sibling index. |
---|
Returns the real prev sibling of the given node, directly from the data structures. Used by TextImpl#getNodeValue() to normalize values.
Returns the real prev sibling of the given node.
free | True to free sibling index. |
---|
Clears the type info that is stored in the fNodeValue array
Inserts a child before the specified node in the table.
Returns the index of the element definition in the table with the specified name index, or -1 if no such definition exists.
Prints out the tables.
Registers an identifier name with a specified element node.
Sets the last child of the parentIndex to childIndex.
Adds an attribute node to the specified element.
This method is deprecated.
No replacement.
Sets an attribute on an element node.
This method is used by the DOMParser to create attributes.
Sets type of attribute
Adds an attribute node to the specified element.
DOM Internal
An attribute specifying the actual encoding of this document. This is
null
otherwise.
This attribute represents the property [character encoding scheme]
defined in .
Performs a binary search for a target value in an array of values. The array of values must be in ascending sorted order before calling this method and all array values must be non-negative.
values | The array of values to search. |
---|---|
start | The starting offset of the search. |
end | The ending offset of the search. |
target | The target value. |
Creates a node of the specified type.
Ensures that the internal tables are large enough.
Synchronizes the node's children with the internal structure. Fluffing the children at once solves a lot of work to keep the two structures in sync. The problem gets worse when editing the tree -- this makes it a lot easier. This is not directly used in this class but this method is here so that it can be shared by all deferred subclasses of AttrImpl.
Synchronizes the node's children with the internal structure. Fluffing the children at once solves a lot of work to keep the two structures in sync. The problem gets worse when editing the tree -- this makes it a lot easier. This is not directly used in this class but this method is here so that it can be shared by all deferred subclasses of ParentNode.
Synchronizes the node's children with the internal structure. Fluffing the children at once solves a lot of work to keep the two structures in sync. The problem gets worse when editing the tree -- this makes it a lot easier.
Synchronizes the node's data.