Class UnImplNode
- Direct Known Subclasses:
ElemTemplateElement
-
Field Summary
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionNEEDSDOC Method adoptNode NEEDSDOC @param source NEEDSDOC (adoptNode) @returnappendChild
(Node newChild) Unimplemented.void
appendData
(String arg) Unimplemented.cloneNode
(boolean deep) Unimplemented.short
compareDocumentPosition
(Node other) Compares a node with this node with regard to their position in the document.createAttribute
(String name) Unimplemented.createAttributeNS
(String namespaceURI, String qualifiedName) Unimplemented.createCDATASection
(String data) Unimplemented.createComment
(String data) Unimplemented.Unimplemented.createElement
(String tagName) Unimplemented.createElementNS
(String namespaceURI, String qualifiedName) Unimplemented.createEntityReference
(String name) Unimplemented.createProcessingInstruction
(String target, String data) Unimplemented.createTextNode
(String data) Unimplemented.void
deleteData
(int offset, int count) Unimplemented.void
Throw an error.void
Throw an error.DOM Level 3 An attribute specifying the actual encoding of this document.getAttribute
(String name) Unimplemented.getAttributeNode
(String name) Unimplemented.getAttributeNodeNS
(String namespaceURI, String localName) Unimplemented.getAttributeNS
(String namespaceURI, String localName) Unimplemented.Unimplemented.The absolute base URI of this node ornull
if undefined.Unimplemented.Unimplemented.Unimplemented.DOM Level 3 The location of the document ornull
if undefined.The configuration used whenDocument.normalizeDocument
is invoked.getElementById
(String elementId) Unimplemented.getElementsByTagName
(String name) Unimplemented.getElementsByTagNameNS
(String namespaceURI, String localName) Unimplemented.getFeature
(String feature, String version) This method returns a specialized object which implements the specialized APIs of the specified feature and version.Unimplemented.Unimplemented.Unimplemented.int
Unimplemented.Unimplemented.Unimplemented.Unimplemented.Unimplemented.short
Unimplemented.Unimplemented.Unimplemented.Unimplemented.Unimplemented.Unimplemented.Unimplemented.Method getSchemaTypeInfo.boolean
Unimplemented.boolean
Unimplemented.This attribute returns the text content of this node and its descendants.getUserData
(String key) Retrieves the object associated to a key on a this node.DOM Level 3 Returns all text ofText
nodes logically-adjacent text nodes to this node, concatenated in document order.boolean
boolean
hasAttribute
(String name) Unimplemented.boolean
hasAttributeNS
(String name, String x) Unimplemented.boolean
Unimplemented.boolean
Unimplemented.importNode
(Node importedNode, boolean deep) Unimplemented.insertBefore
(Node newChild, Node refChild) Unimplemented.void
insertData
(int offset, String arg) Unimplemented.boolean
isDefaultNamespace
(String namespaceURI) DOM Level 3: This method checks if the specifiednamespaceURI
is the default namespace or not.boolean
isEqualNode
(Node arg) Tests whether two nodes are equal.boolean
isId()
boolean
isSameNode
(Node other) Returns whether this node is the same node as the given one.boolean
isSupported
(String feature, String version) Tests whether the DOM implementation implements a specific feature and that feature is supported by this node.boolean
DOM Level 3 Returns whether this text node contains whitespace in element content, often abusively called "ignorable whitespace".item
(int index) Unimplemented.lookupNamespaceURI
(String specifiedPrefix) DOM Level 3: Look up the namespace URI associated to the given prefix, starting from this node.lookupPrefix
(String namespaceURI) DOM Level 3: Look up the prefix associated to the given namespace URI, starting from this node.void
Unimplemented.void
DOM Level 3 Normalize document.void
removeAttribute
(String name) Unimplemented.removeAttributeNode
(Attr oldAttr) Unimplemented.void
removeAttributeNS
(String namespaceURI, String localName) Unimplemented.removeChild
(Node oldChild) Unimplemented.renameNode
(Node n, String namespaceURI, String name) DOM Level 3 Renaming nodereplaceChild
(Node newChild, Node oldChild) Unimplemented.void
replaceData
(int offset, int count, String arg) Unimplemented.replaceWholeText
(String content) DOM Level 3void
setActualEncoding
(String value) DOM Level 3 An attribute specifying the actual encoding of this document.void
setAttribute
(String name, String value) Unimplemented.setAttributeNode
(Attr newAttr) Unimplemented.setAttributeNodeNS
(Attr newAttr) Unimplemented.void
setAttributeNS
(String namespaceURI, String qualifiedName, String value) Unimplemented.void
Set Node datavoid
setDocumentURI
(String documentURI) DOM Level 3void
setIdAttribute
(boolean id) NON-DOM: set the type of this attribute to be ID type.void
setIdAttribute
(String name, boolean makeId) DOM Level 3: register the given attribute node as an ID attributevoid
setIdAttributeNode
(Attr at, boolean makeId) DOM Level 3: register the given attribute node as an ID attributevoid
setIdAttributeNS
(String namespaceURI, String localName, boolean makeId) DOM Level 3: register the given attribute node as an ID attributevoid
setInputEncoding
(String encoding) void
setNodeValue
(String nodeValue) Unimplemented.void
Unimplemented.void
setStrictErrorChecking
(boolean strictErrorChecking) void
setTextContent
(String textContent) This attribute returns the text content of this node and its descendants.setUserData
(String key, Object data, UserDataHandler handler) void
Unimplemented.void
setXmlEncoding
(String xmlEncoding) void
setXmlStandalone
(boolean xmlStandalone) void
setXmlVersion
(String xmlVersion) splitText
(int offset) Unimplemented.substringData
(int offset, int count) Unimplemented.
-
Constructor Details
-
UnImplNode
public UnImplNode()Constructor UnImplNode
-
-
Method Details
-
error
Throw an error.- Parameters:
msg
- Message Key for the error
-
error
Throw an error.- Parameters:
msg
- Message Key for the errorargs
- Array of arguments to be used in the error message
-
appendChild
Unimplemented. See org.w3c.dom.Node- Specified by:
appendChild
in interfaceNode
- Parameters:
newChild
- New node to append to the list of this node's children- Returns:
- null
- Throws:
DOMException
-
hasChildNodes
public boolean hasChildNodes()Unimplemented. See org.w3c.dom.Node- Specified by:
hasChildNodes
in interfaceNode
- Returns:
- false
-
getNodeType
public short getNodeType()Unimplemented. See org.w3c.dom.Node- Specified by:
getNodeType
in interfaceNode
- Returns:
- 0
-
getParentNode
Unimplemented. See org.w3c.dom.Node- Specified by:
getParentNode
in interfaceNode
- Returns:
- null
-
getChildNodes
Unimplemented. See org.w3c.dom.Node- Specified by:
getChildNodes
in interfaceNode
- Returns:
- null
-
getFirstChild
Unimplemented. See org.w3c.dom.Node- Specified by:
getFirstChild
in interfaceNode
- Returns:
- null
-
getLastChild
Unimplemented. See org.w3c.dom.Node- Specified by:
getLastChild
in interfaceNode
- Returns:
- null
-
getNextSibling
Unimplemented. See org.w3c.dom.Node- Specified by:
getNextSibling
in interfaceNode
- Returns:
- null
-
getLength
public int getLength()Unimplemented. See org.w3c.dom.NodeList -
item
Unimplemented. See org.w3c.dom.NodeList -
getOwnerDocument
Unimplemented. See org.w3c.dom.Node- Specified by:
getOwnerDocument
in interfaceNode
- Returns:
- null
-
getTagName
Unimplemented. See org.w3c.dom.Node- Specified by:
getTagName
in interfaceElement
- Returns:
- null
-
getNodeName
Unimplemented. See org.w3c.dom.Node- Specified by:
getNodeName
in interfaceNode
- Returns:
- null
-
normalize
public void normalize()Unimplemented. See org.w3c.dom.Node -
getElementsByTagName
Unimplemented. See org.w3c.dom.Element- Specified by:
getElementsByTagName
in interfaceDocument
- Specified by:
getElementsByTagName
in interfaceElement
- Parameters:
name
- Name of the element- Returns:
- null
-
removeAttributeNode
Unimplemented. See org.w3c.dom.Element- Specified by:
removeAttributeNode
in interfaceElement
- Parameters:
oldAttr
- Attribute to be removed from this node's list of attributes- Returns:
- null
- Throws:
DOMException
-
setAttributeNode
Unimplemented. See org.w3c.dom.Element- Specified by:
setAttributeNode
in interfaceElement
- Parameters:
newAttr
- Attribute node to be added to this node's list of attributes- Returns:
- null
- Throws:
DOMException
-
hasAttribute
Unimplemented. See org.w3c.dom.Element- Specified by:
hasAttribute
in interfaceElement
- Parameters:
name
- Name of an attribute- Returns:
- false
-
hasAttributeNS
Unimplemented. See org.w3c.dom.Element- Specified by:
hasAttributeNS
in interfaceElement
- Parameters:
name
-x
-- Returns:
- false
-
getAttributeNode
Unimplemented. See org.w3c.dom.Element- Specified by:
getAttributeNode
in interfaceElement
- Parameters:
name
- Attribute node name- Returns:
- null
-
removeAttribute
Unimplemented. See org.w3c.dom.Element- Specified by:
removeAttribute
in interfaceElement
- Parameters:
name
- Attribute node name to remove from list of attributes- Throws:
DOMException
-
setAttribute
Unimplemented. See org.w3c.dom.Element- Specified by:
setAttribute
in interfaceElement
- Parameters:
name
- Name of attribute to setvalue
- Value of attribute- Throws:
DOMException
-
getAttribute
Unimplemented. See org.w3c.dom.Element- Specified by:
getAttribute
in interfaceElement
- Parameters:
name
- Name of attribute to get- Returns:
- null
-
hasAttributes
public boolean hasAttributes()Unimplemented. Introduced in DOM Level 2.- Specified by:
hasAttributes
in interfaceNode
- Returns:
- false
-
getElementsByTagNameNS
Unimplemented. See org.w3c.dom.Element- Specified by:
getElementsByTagNameNS
in interfaceDocument
- Specified by:
getElementsByTagNameNS
in interfaceElement
- Parameters:
namespaceURI
- Namespace URI of the elementlocalName
- Local part of qualified name of the element- Returns:
- null
-
setAttributeNodeNS
Unimplemented. See org.w3c.dom.Element- Specified by:
setAttributeNodeNS
in interfaceElement
- Parameters:
newAttr
- Attribute to set- Returns:
- null
- Throws:
DOMException
-
getAttributeNodeNS
Unimplemented. See org.w3c.dom.Element- Specified by:
getAttributeNodeNS
in interfaceElement
- Parameters:
namespaceURI
- Namespace URI of attribute node to getlocalName
- Local part of qualified name of attribute node to get- Returns:
- null
-
removeAttributeNS
Unimplemented. See org.w3c.dom.Element- Specified by:
removeAttributeNS
in interfaceElement
- Parameters:
namespaceURI
- Namespace URI of attribute node to removelocalName
- Local part of qualified name of attribute node to remove- Throws:
DOMException
-
setAttributeNS
public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException Unimplemented. See org.w3c.dom.Element- Specified by:
setAttributeNS
in interfaceElement
- Parameters:
namespaceURI
- Namespace URI of attribute node to set NEEDSDOC @param qualifiedNamevalue
- value of attribute- Throws:
DOMException
-
getAttributeNS
Unimplemented. See org.w3c.dom.Element- Specified by:
getAttributeNS
in interfaceElement
- Parameters:
namespaceURI
- Namespace URI of attribute node to getlocalName
- Local part of qualified name of attribute node to get- Returns:
- null
-
getPreviousSibling
Unimplemented. See org.w3c.dom.Node- Specified by:
getPreviousSibling
in interfaceNode
- Returns:
- null
-
cloneNode
Unimplemented. See org.w3c.dom.Node -
getNodeValue
Unimplemented. See org.w3c.dom.Node- Specified by:
getNodeValue
in interfaceNode
- Returns:
- null
- Throws:
DOMException
-
setNodeValue
Unimplemented. See org.w3c.dom.Node- Specified by:
setNodeValue
in interfaceNode
- Parameters:
nodeValue
- Value to set this node to- Throws:
DOMException
-
setValue
Unimplemented. See org.w3c.dom.Node- Parameters:
value
- Value to set this node to- Throws:
DOMException
-
getOwnerElement
Unimplemented. See org.w3c.dom.Node- Returns:
- null
-
getSpecified
public boolean getSpecified()Unimplemented. See org.w3c.dom.Node- Returns:
- False
-
getAttributes
Unimplemented. See org.w3c.dom.Node- Specified by:
getAttributes
in interfaceNode
- Returns:
- null
-
insertBefore
Unimplemented. See org.w3c.dom.Node- Specified by:
insertBefore
in interfaceNode
- Parameters:
newChild
- New child node to insertrefChild
- Insert in front of this child- Returns:
- null
- Throws:
DOMException
-
replaceChild
Unimplemented. See org.w3c.dom.Node- Specified by:
replaceChild
in interfaceNode
- Parameters:
newChild
- Replace existing child with this oneoldChild
- Existing child to be replaced- Returns:
- null
- Throws:
DOMException
-
removeChild
Unimplemented. See org.w3c.dom.Node- Specified by:
removeChild
in interfaceNode
- Parameters:
oldChild
- Child to be removed- Returns:
- null
- Throws:
DOMException
-
isSupported
Tests whether the DOM implementation implements a specific feature and that feature is supported by this node.- Specified by:
isSupported
in interfaceNode
- Parameters:
feature
- The name of the feature to test. This is the same name which can be passed to the methodhasFeature
onDOMImplementation
.version
- This is the version number of the feature to test. In Level 2, version 1, this is the string "2.0". If the version is not specified, supporting any version of the feature will cause the method to returntrue
.- Returns:
- Returns
false
- Since:
- DOM Level 2
-
getNamespaceURI
Unimplemented. See org.w3c.dom.Node- Specified by:
getNamespaceURI
in interfaceNode
- Returns:
- null
-
getPrefix
Unimplemented. See org.w3c.dom.Node -
setPrefix
Unimplemented. See org.w3c.dom.Node- Specified by:
setPrefix
in interfaceNode
- Parameters:
prefix
- Prefix to set for this node- Throws:
DOMException
-
getLocalName
Unimplemented. See org.w3c.dom.Node- Specified by:
getLocalName
in interfaceNode
- Returns:
- null
-
getDoctype
Unimplemented. See org.w3c.dom.Document- Specified by:
getDoctype
in interfaceDocument
- Returns:
- null
-
getImplementation
Unimplemented. See org.w3c.dom.Document- Specified by:
getImplementation
in interfaceDocument
- Returns:
- null
-
getDocumentElement
Unimplemented. See org.w3c.dom.Document- Specified by:
getDocumentElement
in interfaceDocument
- Returns:
- null
-
createElement
Unimplemented. See org.w3c.dom.Document- Specified by:
createElement
in interfaceDocument
- Parameters:
tagName
- Element tag name- Returns:
- null
- Throws:
DOMException
-
createDocumentFragment
Unimplemented. See org.w3c.dom.Document- Specified by:
createDocumentFragment
in interfaceDocument
- Returns:
- null
-
createTextNode
Unimplemented. See org.w3c.dom.Document- Specified by:
createTextNode
in interfaceDocument
- Parameters:
data
- Data for text node- Returns:
- null
-
createComment
Unimplemented. See org.w3c.dom.Document- Specified by:
createComment
in interfaceDocument
- Parameters:
data
- Data for comment- Returns:
- null
-
createCDATASection
Unimplemented. See org.w3c.dom.Document- Specified by:
createCDATASection
in interfaceDocument
- Parameters:
data
- Data for CDATA section- Returns:
- null
- Throws:
DOMException
-
createProcessingInstruction
public ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException Unimplemented. See org.w3c.dom.Document- Specified by:
createProcessingInstruction
in interfaceDocument
- Parameters:
target
- Target for Processing instructiondata
- Data for Processing instruction- Returns:
- null
- Throws:
DOMException
-
createAttribute
Unimplemented. See org.w3c.dom.Document- Specified by:
createAttribute
in interfaceDocument
- Parameters:
name
- Attribute name- Returns:
- null
- Throws:
DOMException
-
createEntityReference
Unimplemented. See org.w3c.dom.Document- Specified by:
createEntityReference
in interfaceDocument
- Parameters:
name
- Entity Reference name- Returns:
- null
- Throws:
DOMException
-
importNode
Unimplemented. See org.w3c.dom.Document- Specified by:
importNode
in interfaceDocument
- Parameters:
importedNode
- The node to import.deep
- Iftrue
, recursively import the subtree under the specified node; iffalse
, import only the node itself, as explained above. This has no effect onAttr
,EntityReference
, andNotation
nodes.- Returns:
- null
- Throws:
DOMException
-
createElementNS
Unimplemented. See org.w3c.dom.Document- Specified by:
createElementNS
in interfaceDocument
- Parameters:
namespaceURI
- Namespace URI for the elementqualifiedName
- Qualified name of the element- Returns:
- null
- Throws:
DOMException
-
createAttributeNS
Unimplemented. See org.w3c.dom.Document- Specified by:
createAttributeNS
in interfaceDocument
- Parameters:
namespaceURI
- Namespace URI of the attributequalifiedName
- Qualified name of the attribute- Returns:
- null
- Throws:
DOMException
-
getElementById
Unimplemented. See org.w3c.dom.Document- Specified by:
getElementById
in interfaceDocument
- Parameters:
elementId
- ID of the element to get- Returns:
- null
-
setData
Set Node data- Parameters:
data
- data to set for this node- Throws:
DOMException
-
substringData
Unimplemented.- Parameters:
offset
- Start offset of substring to extract.count
- The length of the substring to extract.- Returns:
- null
- Throws:
DOMException
-
appendData
Unimplemented.- Parameters:
arg
- String data to append- Throws:
DOMException
-
insertData
Unimplemented.- Parameters:
offset
- Start offset of substring to insert. NEEDSDOC @param arg- Throws:
DOMException
-
deleteData
Unimplemented.- Parameters:
offset
- Start offset of substring to delete.count
- The length of the substring to delete.- Throws:
DOMException
-
replaceData
Unimplemented.- Parameters:
offset
- Start offset of substring to replace.count
- The length of the substring to replace.arg
- substring to replace with- Throws:
DOMException
-
splitText
Unimplemented.- Parameters:
offset
- Offset into text to split- Returns:
- null, unimplemented
- Throws:
DOMException
-
adoptNode
NEEDSDOC Method adoptNode NEEDSDOC @param source NEEDSDOC (adoptNode) @return- Specified by:
adoptNode
in interfaceDocument
- Throws:
DOMException
-
getInputEncoding
Based on the Document Object Model (DOM) Level 3 Core Specification of 07 April 2004..
An attribute specifying, as part of the XML declaration, the encoding of this document. This is
null
when unspecified.- Specified by:
getInputEncoding
in interfaceDocument
- Since:
- DOM Level 3 NEEDSDOC ($objectName$) @return
-
setInputEncoding
Based on the Document Object Model (DOM) Level 3 Core Specification of 07 April 2004..
An attribute specifying, as part of the XML declaration, the encoding of this document. This is
null
when unspecified.- Since:
- DOM Level 3 NEEDSDOC @param encoding
-
getStrictErrorChecking
public boolean getStrictErrorChecking()Based on the Document Object Model (DOM) Level 3 Core Specification of 07 April 2004..
An attribute specifying whether errors checking is enforced or not. When set to
false
, the implementation is free to not test every possible error case normally defined on DOM operations, and not raise anyDOMException
. In case of error, the behavior is undefined. This attribute istrue
by defaults.- Specified by:
getStrictErrorChecking
in interfaceDocument
- Since:
- DOM Level 3 NEEDSDOC ($objectName$) @return
-
setStrictErrorChecking
public void setStrictErrorChecking(boolean strictErrorChecking) Based on the Document Object Model (DOM) Level 3 Core Specification of 07 April 2004..
An attribute specifying whether errors checking is enforced or not. When set to
false
, the implementation is free to not test every possible error case normally defined on DOM operations, and not raise anyDOMException
. In case of error, the behavior is undefined. This attribute istrue
by defaults.- Specified by:
setStrictErrorChecking
in interfaceDocument
- Since:
- DOM Level 3 NEEDSDOC @param strictErrorChecking
-
setUserData
- Specified by:
setUserData
in interfaceNode
-
getUserData
Retrieves the object associated to a key on a this node. The object must first have been set to this node by callingsetUserData
with the same key.- Specified by:
getUserData
in interfaceNode
- Parameters:
key
- The key the object is associated to.- Returns:
- Returns the
DOMObject
associated to the given key on this node, ornull
if there was none. - Since:
- DOM Level 3
-
getFeature
This method returns a specialized object which implements the specialized APIs of the specified feature and version. The specialized object may also be obtained by using binding-specific casting methods but is not necessarily expected to, as discussed in Mixed DOM implementations.- Specified by:
getFeature
in interfaceNode
- Parameters:
feature
- The name of the feature requested (case-insensitive).version
- This is the version number of the feature to test. If the version isnull
or the empty string, supporting any version of the feature will cause the method to return an object that supports at least one version of the feature.- Returns:
- Returns an object which implements the specialized APIs of
the specified feature and version, if any, or
null
if there is no object which implements interfaces associated with that feature. If theDOMObject
returned by this method implements theNode
interface, it must delegate to the primary coreNode
and not return results inconsistent with the primary coreNode
such as attributes, childNodes, etc. - Since:
- DOM Level 3
-
isEqualNode
Tests whether two nodes are equal.
This method tests for equality of nodes, not sameness (i.e., whether the two nodes are references to the same object) which can be tested withNode.isSameNode
. All nodes that are the same will also be equal, though the reverse may not be true.
Two nodes are equal if and only if the following conditions are satisfied: The two nodes are of the same type.The following string attributes are equal:nodeName
,localName
,namespaceURI
,prefix
,nodeValue
,baseURI
. This is: they are bothnull
, or they have the same length and are character for character identical. Theattributes
NamedNodeMaps
are equal. This is: they are bothnull
, or they have the same length and for each node that exists in one map there is a node that exists in the other map and is equal, although not necessarily at the same index.ThechildNodes
NodeLists
are equal. This is: they are bothnull
, or they have the same length and contain equal nodes at the same index. This is true forAttr
nodes as for any other type of node. Note that normalization can affect equality; to avoid this, nodes should be normalized before being compared.
For twoDocumentType
nodes to be equal, the following conditions must also be satisfied: The following string attributes are equal:publicId
,systemId
,internalSubset
.Theentities
NamedNodeMaps
are equal.Thenotations
NamedNodeMaps
are equal.
On the other hand, the following do not affect equality: theownerDocument
attribute, thespecified
attribute forAttr
nodes, theisWhitespaceInElementContent
attribute forText
nodes, as well as any user data or event listeners registered on the nodes.- Specified by:
isEqualNode
in interfaceNode
- Parameters:
arg
- The node to compare equality with.deep
- Iftrue
, recursively compare the subtrees; iffalse
, compare only the nodes themselves (and its attributes, if it is anElement
).- Returns:
- If the nodes, and possibly subtrees are equal,
true
otherwisefalse
. - Since:
- DOM Level 3
-
lookupNamespaceURI
DOM Level 3: Look up the namespace URI associated to the given prefix, starting from this node. Use lookupNamespaceURI(null) to lookup the default namespace- Specified by:
lookupNamespaceURI
in interfaceNode
- Parameters:
namespaceURI
-- Returns:
- th URI for the namespace
- Since:
- DOM Level 3
-
isDefaultNamespace
DOM Level 3: This method checks if the specifiednamespaceURI
is the default namespace or not.- Specified by:
isDefaultNamespace
in interfaceNode
- Parameters:
namespaceURI
- The namespace URI to look for.- Returns:
true
if the specifiednamespaceURI
is the default namespace,false
otherwise.- Since:
- DOM Level 3
-
lookupPrefix
DOM Level 3: Look up the prefix associated to the given namespace URI, starting from this node.- Specified by:
lookupPrefix
in interfaceNode
- Parameters:
namespaceURI
-- Returns:
- the prefix for the namespace
-
isSameNode
Returns whether this node is the same node as the given one.
This method provides a way to determine whether twoNode
references returned by the implementation reference the same object. When twoNode
references are references to the same object, even if through a proxy, the references may be used completely interchangably, such that all attributes have the same values and calling the same DOM method on either reference always has exactly the same effect.- Specified by:
isSameNode
in interfaceNode
- Parameters:
other
- The node to test against.- Returns:
- Returns
true
if the nodes are the same,false
otherwise. - Since:
- DOM Level 3
-
setTextContent
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 singleText
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 nodesATTRIBUTE_NODE, TEXT_NODE, CDATA_SECTION_NODE, COMMENT_NODE, PROCESSING_INSTRUCTION_NODE nodeValue
DOCUMENT_NODE, DOCUMENT_TYPE_NODE, NOTATION_NODE null - Specified by:
setTextContent
in interfaceNode
- Throws:
DOMException
- NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.DOMException
- DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit in aDOMString
variable on the implementation platform.- Since:
- DOM Level 3
-
getTextContent
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 singleText
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 nodesATTRIBUTE_NODE, TEXT_NODE, CDATA_SECTION_NODE, COMMENT_NODE, PROCESSING_INSTRUCTION_NODE nodeValue
DOCUMENT_NODE, DOCUMENT_TYPE_NODE, NOTATION_NODE null - Specified by:
getTextContent
in interfaceNode
- Throws:
DOMException
- NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.DOMException
- DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit in aDOMString
variable on the implementation platform.- Since:
- DOM Level 3
-
compareDocumentPosition
Compares a node with this node with regard to their position in the document.- Specified by:
compareDocumentPosition
in interfaceNode
- Parameters:
other
- The node to compare against this node.- Returns:
- Returns how the given node is positioned relatively to this node.
- Throws:
DOMException
- Since:
- DOM Level 3
-
getBaseURI
The absolute base URI of this node ornull
if undefined. This value is computed according to . However, when theDocument
supports the feature "HTML" , the base URI is computed using first the value of the href attribute of the HTML BASE element if any, and the value of thedocumentURI
attribute from theDocument
interface otherwise.
When the node is anElement
, aDocument
or a aProcessingInstruction
, this attribute represents the properties [base URI] defined in . When the node is aNotation
, anEntity
, or anEntityReference
, this attribute represents the properties [declaration base URI] in the . How will this be affected by resolution of relative namespace URIs issue?It's not.Should this only be on Document, Element, ProcessingInstruction, Entity, and Notation nodes, according to the infoset? If not, what is it equal to on other nodes? Null? An empty string? I think it should be the parent's.No.Should this be read-only and computed or and actual read-write attribute?Read-only and computed (F2F 19 Jun 2000 and teleconference 30 May 2001).If the base HTML element is not yet attached to a document, does the insert change the Document.baseURI? Yes. (F2F 26 Sep 2001)- Specified by:
getBaseURI
in interfaceNode
- Since:
- DOM Level 3
-
renameNode
DOM Level 3 Renaming node- Specified by:
renameNode
in interfaceDocument
- Throws:
DOMException
-
normalizeDocument
public void normalizeDocument()DOM Level 3 Normalize document.- Specified by:
normalizeDocument
in interfaceDocument
-
getDomConfig
The configuration used whenDocument.normalizeDocument
is invoked.- Specified by:
getDomConfig
in interfaceDocument
- Since:
- DOM Level 3
-
setDocumentURI
DOM Level 3- Specified by:
setDocumentURI
in interfaceDocument
-
getDocumentURI
DOM Level 3 The location of the document ornull
if undefined.
Beware that when theDocument
supports the feature "HTML" , the href attribute of the HTML BASE element takes precedence over this attribute.- Specified by:
getDocumentURI
in interfaceDocument
- Since:
- DOM Level 3
-
getActualEncoding
DOM Level 3 An attribute specifying the actual encoding of this document. This isnull
otherwise.
This attribute represents the property [character encoding scheme] defined in .- Since:
- DOM Level 3
-
setActualEncoding
DOM Level 3 An attribute specifying the actual encoding of this document. This isnull
otherwise.
This attribute represents the property [character encoding scheme] defined in .- Since:
- DOM Level 3
-
replaceWholeText
DOM Level 3- Throws:
DOMException
-
getWholeText
DOM Level 3 Returns all text ofText
nodes logically-adjacent text nodes to this node, concatenated in document order.- Since:
- DOM Level 3
-
isWhitespaceInElementContent
public boolean isWhitespaceInElementContent()DOM Level 3 Returns whether this text node contains whitespace in element content, often abusively called "ignorable whitespace". -
setIdAttribute
public void setIdAttribute(boolean id) NON-DOM: set the type of this attribute to be ID type.- Parameters:
id
-
-
setIdAttribute
DOM Level 3: register the given attribute node as an ID attribute- Specified by:
setIdAttribute
in interfaceElement
-
setIdAttributeNode
DOM Level 3: register the given attribute node as an ID attribute- Specified by:
setIdAttributeNode
in interfaceElement
-
setIdAttributeNS
DOM Level 3: register the given attribute node as an ID attribute- Specified by:
setIdAttributeNS
in interfaceElement
-
getSchemaTypeInfo
Method getSchemaTypeInfo.- Specified by:
getSchemaTypeInfo
in interfaceElement
- Returns:
- TypeInfo
-
isId
public boolean isId() -
getXmlEncoding
- Specified by:
getXmlEncoding
in interfaceDocument
-
setXmlEncoding
-
getXmlStandalone
public boolean getXmlStandalone()- Specified by:
getXmlStandalone
in interfaceDocument
-
setXmlStandalone
- Specified by:
setXmlStandalone
in interfaceDocument
- Throws:
DOMException
-
getXmlVersion
- Specified by:
getXmlVersion
in interfaceDocument
-
setXmlVersion
- Specified by:
setXmlVersion
in interfaceDocument
- Throws:
DOMException
-