void
|
abort()
DOM Level 3 WD - Experimental.
|
void
|
addEventListener(NodeImpl node, String type, EventListener listener, boolean useCapture)
|
Node
|
adoptNode(Node source)
DOM Level 3 WD - Experimental
Change the node's ownerDocument, and its subtree, to this Document
|
void
|
callUserDataHandlers(Node n, Node c, short operation)
Call user data handlers when a node is deleted (finalized)
|
void
|
changed()
Denotes that this node has changed.
|
int
|
changes()
Returns the number of changes to this node.
|
final
void
|
checkDOMNSErr(String prefix, String namespace)
|
final
void
|
checkNamespaceWF(String qname, int colon1, int colon2)
Call user data handlers to let them know the nodes they are related to
are being deleted.
|
final
void
|
checkQName(String prefix, String local)
Checks if the given qualified name is legal with respect
to the version of XML to which this document must conform.
|
final
void
|
clearIdentifiers()
Remove all identifiers from the ID table
|
Object
|
clone()
Clone.
|
Node
|
cloneNode(boolean deep)
Deep-clone a document, including fixing ownerDoc for the cloned
children.
|
void
|
cloneNode(CoreDocumentImpl newdoc, boolean deep)
internal method to share code with subclass
|
void
|
copyEventListeners(NodeImpl src, NodeImpl tgt)
|
Attr
|
createAttribute(String name)
Factory method; creates an Attribute having this Document as its
OwnerDoc.
|
Attr
|
createAttributeNS(String namespaceURI, String qualifiedName)
Introduced in DOM Level 2.
|
Attr
|
createAttributeNS(String namespaceURI, String qualifiedName, String localpart)
NON-DOM: a factory method used by the Xerces DOM parser
to create an element.
|
CDATASection
|
createCDATASection(String data)
Factory method; creates a CDATASection having this Document as
its OwnerDoc.
|
Comment
|
createComment(String data)
Factory method; creates a Comment having this Document as its
OwnerDoc.
|
DocumentFragment
|
createDocumentFragment()
Factory method; creates a DocumentFragment having this Document
as its OwnerDoc.
|
DocumentType
|
createDocumentType(String qualifiedName, String publicID, String systemID)
NON-DOM
Factory method; creates a DocumentType having this Document
as its OwnerDoc.
|
Element
|
createElement(String tagName)
Factory method; creates an Element having this Document
as its OwnerDoc.
|
ElementDefinitionImpl
|
createElementDefinition(String name)
NON-DOM Factory method: creates an element definition.
|
Element
|
createElementNS(String namespaceURI, String qualifiedName)
Introduced in DOM Level 2.
|
Element
|
createElementNS(String namespaceURI, String qualifiedName, String localpart)
NON-DOM: a factory method used by the Xerces DOM parser
to create an element.
|
Entity
|
createEntity(String name)
NON-DOM
Factory method; creates an Entity having this Document
as its OwnerDoc.
|
EntityReference
|
createEntityReference(String name)
Factory method; creates an EntityReference having this Document
as its OwnerDoc.
|
Notation
|
createNotation(String name)
NON-DOM
Factory method; creates a Notation having this Document
as its OwnerDoc.
|
ProcessingInstruction
|
createProcessingInstruction(String target, String data)
Factory method; creates a ProcessingInstruction having this Document
as its OwnerDoc.
|
Text
|
createTextNode(String data)
Factory method; creates a Text node having this Document as its
OwnerDoc.
|
boolean
|
dispatchEvent(NodeImpl node, Event event)
|
boolean
|
getAsync()
DOM Level 3 WD - Experimental.
|
String
|
getBaseURI()
Returns the absolute base URI of this node or null if the implementation
wasn't able to obtain an absolute URI.
|
DocumentType
|
getDoctype()
For XML, this provides access to the Document Type Definition.
|
Element
|
getDocumentElement()
Convenience method, allowing direct access to the child node
which is considered the root of the actual document content.
|
String
|
getDocumentURI()
DOM Level 3 WD - Experimental.
|
DOMConfiguration
|
getDomConfig()
DOM Level 3 CR - Experimental
The configuration used when Document.normalizeDocument is
invoked.
|
Element
|
getElementById(String elementId)
Introduced in DOM Level 2
Returns the Element whose ID is given by elementId.
|
NodeList
|
getElementsByTagName(String tagname)
Return a live collection of all descendent Elements (not just
immediate children) having the specified tag name.
|
NodeList
|
getElementsByTagNameNS(String namespaceURI, String localName)
Introduced in DOM Level 2.
|
String
|
getEncoding()
This method is deprecated.
This method is internal and only exists for
compatibility with older applications. New applications
should never call this method.
|
boolean
|
getErrorChecking()
Returns true if the DOM implementation performs error checking.
|
Object
|
getFeature(String feature, String version)
|
Element
|
getIdentifier(String idName)
Returns a previously registered element with the specified
identifier name, or null if no element is registered.
|
Enumeration
|
getIdentifiers()
Returns an enumeration registered of identifier names.
|
DOMImplementation
|
getImplementation()
Retrieve information describing the abilities of this particular
DOM implementation.
|
String
|
getInputEncoding()
DOM Level 3 CR - Experimental.
|
String
|
getNodeName()
Returns the node name.
|
int
|
getNodeNumber()
NON-DOM: Get the number associated with this document.
|
int
|
getNodeNumber(Node node)
NON-DOM: Get a number associated with a node created with respect
to this document.
|
short
|
getNodeType()
Returns the node type.
|
final
Document
|
getOwnerDocument()
Find the Document that this Node belongs to (the document in
whose context the Node was created).
|
boolean
|
getStandalone()
This method is deprecated.
This method is internal and only exists for
compatibility with older applications. New applications
should never call this method.
|
boolean
|
getStrictErrorChecking()
|
String
|
getTextContent()
This attribute returns the text content of this node and its
descendants.
|
Object
|
getUserData(Node n, String key)
Retrieves the object associated to a key on a this node.
|
Object
|
getUserData(NodeImpl n)
NON-DOM: kept for backward compatibility
Retreive user data related to a given node
|
Hashtable
|
getUserDataRecord(Node n)
|
String
|
getVersion()
This method is deprecated.
This method is internal and only exists for
compatibility with older applications. New applications
should never call this method.
|
String
|
getXmlEncoding()
DOM Level 3 WD - Experimental.
|
boolean
|
getXmlStandalone()
DOM Level 3 WD - Experimental.
|
String
|
getXmlVersion()
DOM Level 3 WD - Experimental.
|
Node
|
importNode(Node source, boolean deep)
Copies a node from another document to this document.
|
Node
|
insertBefore(Node newChild, Node refChild)
Since a Document may contain at most one top-level Element child,
and at most one DocumentType declaraction, we need to subclass our
add-children methods to implement this constraint.
|
boolean
|
isKidOK(Node parent, Node child)
Uses the kidOK lookup table to check whether the proposed
tree structure is legal.
|
final
static
boolean
|
isValidQName(String prefix, String local, boolean xml11Version)
Checks if the given qualified name is legal with respect
to the version of XML to which this document must conform.
|
final
static
boolean
|
isXMLName(String s, boolean xml11Version)
Check the string against XML's definition of acceptable names for
elements and attributes and so on using the XMLCharacterProperties
utility class
|
boolean
|
load(String uri)
DOM Level 3 WD - Experimental.
|
boolean
|
loadXML(String source)
DOM Level 3 WD - Experimental.
|
void
|
normalizeDocument()
DOM Level 3 WD - Experimental
Normalize document.
|
void
|
putIdentifier(String idName, Element element)
Registers an identifier name with a specified element node.
|
Node
|
removeChild(Node oldChild)
Since insertBefore caches the docElement (and, currently, docType),
removeChild has to know how to undo the cache
REVISIT: According to the spec it is not allowed to alter neither the
document element nor the document type in any way
|
void
|
removeEventListener(NodeImpl node, String type, EventListener listener, boolean useCapture)
|
void
|
removeIdentifier(String idName)
Removes a previously registered element with the specified
identifier name.
|
Node
|
renameNode(Node n, String namespaceURI, String name)
DOM Level 3 WD - Experimental.
|
Node
|
replaceChild(Node newChild, Node oldChild)
Since we cache the docElement (and, currently, docType),
replaceChild has to update the cache
REVISIT: According to the spec it is not allowed to alter neither the
document element nor the document type in any way
|
String
|
saveXML(Node node)
DOM Level 3 WD - Experimental.
|
void
|
setAsync(boolean async)
DOM Level 3 WD - Experimental.
|
void
|
setDocumentURI(String documentURI)
DOM Level 3 WD - Experimental.
|
void
|
setEncoding(String value)
This method is deprecated.
This method is internal and only exists for
compatibility with older applications. New applications
should never call this method.
|
void
|
setErrorChecking(boolean check)
Sets whether the DOM implementation performs error checking
upon operations.
|
void
|
setInputEncoding(String value)
DOM Internal
(Was a DOM L3 Core WD public interface method setActualEncoding )
An attribute specifying the actual encoding of this document.
|
void
|
setStandalone(boolean value)
This method is deprecated.
This method is internal and only exists for
compatibility with older applications. New applications
should never call this method.
|
void
|
setStrictErrorChecking(boolean check)
|
void
|
setTextContent(String textContent)
This attribute returns the text content of this node and its
descendants.
|
void
|
setUserData(NodeImpl n, Object data)
NON-DOM: kept for backward compatibility
Store user data related to a given node
This is a place where we could use weak references! Indeed, the node
here won't be GC'ed as long as some user data is attached to it, since
the userData table will have a reference to the node.
|
Object
|
setUserData(Node n, String key, Object data, UserDataHandler handler)
Associate an object to a key on this node.
|
void
|
setVersion(String value)
This method is deprecated.
This method is internal and only exists for
compatibility with older applications. New applications
should never call this method.
|
void
|
setXmlEncoding(String value)
DOM Internal
(Was a DOM L3 Core WD public interface method setXMLEncoding )
An attribute specifying, as part of the XML declaration,
the encoding of this document.
|
void
|
setXmlStandalone(boolean value)
DOM Level 3 CR - Experimental.
|
void
|
setXmlVersion(String value)
DOM Level 3 CR - Experimental.
|
void
|
undeferChildren(Node node)
Traverses the DOM Tree and expands deferred nodes and their
children.
|