Modifier and Type | Field and Description |
---|---|
pack-priv int | |
pack-priv String | |
pack-priv final String | |
pack-priv String | |
pack-priv Element | |
pack-priv String |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
public Node | appendChild(Node
The node to add.If it is a
a)DocumentFragment object, the entire contents of the
document fragment are moved into the child list of this nodeImplements org. Adds the node |
public Node | cloneNode(boolean
If deep)true , recursively clone the subtree under
the specified node; if false , clone only the node
itself (and its attributes, if it is an Element ).Implements org. Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes. |
public short | Returns: Returns how the given node is positioned relatively to this node.The node to compare against this node. other)Implements org. Compares a node with this node with regard to their position in the document. |
public NamedNodeMap | getAttributes()
Implements org. A |
public String | getBaseURI()
Implements org. The absolute base URI of this node or |
public NodeList | getChildNodes()
Implements org. A |
public Object | Returns: Returns an object which implements the specialized APIs of the specified feature and version, if any, ornull if
there is no object which implements interfaces associated with that
feature. If the DOMObject returned by this method
implements the Node interface, it must delegate to the
primary core Node and not return results inconsistent
with the primary core Node such as attributes,
childNodes, etc.The name of the feature requested (case-insensitive). feature, String This is the version number of the feature to test. If
the version is version)null 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.Implements org. This method returns a specialized object which implements the specialized APIs of the specified feature and version. |
public Node | |
public int | getHandleOfNode()
Non-DOM method, part of the temporary kluge %REVIEW% This would be a pruning problem, but since it will always be added to the root element and we prune on elements, we shouldn't have to worry. |
public Node | |
public String | getLocalName()
Implements org. Returns the local part of the qualified name of this node. |
public String | |
public String | getNamespaceURI()
Implements org. The namespace URI of this node, or |
public Node | getNextSibling()
Implements org. The node immediately following this node. |
public String | getNodeName()
Implements org. The name of this node, depending on its type; see the table above. |
public short | getNodeType()
Implements org. A code representing the type of the underlying object, as defined above. |
public String | getNodeValue()
Implements org. The value of this node, depending on its type; see the table above. |
public Document | getOwnerDocument()
Implements org. The |
public Element | getOwnerElement()
Implements org. The |
public Node | |
public String | getPrefix()
Implements org. The namespace prefix of this node, or |
public Node | getPreviousSibling()
Implements org. The node immediately preceding this node. |
public TypeInfo | getSchemaTypeInfo()
Implements org. The type information associated with this attribute. |
public boolean | getSpecified()
Implements org.
|
public String | getTextContent()
Implements org. This attribute returns the text content of this node and its descendants. |
public String | getTypeName()
Implements org. The name of a type declared for the associated element or attribute,
or |
public String | getTypeNamespace()
Implements org. The namespace of the type declared for the associated element or
attribute or |
public Object | Returns: Returns theDOMObject associated to the given key
on this node, or null if there was none.The key the object is associated to. key)Implements org. Retrieves the object associated to a key on a this node. |
public String | getValue()
Implements org. On retrieval, the value of the attribute is returned as a string. |
public boolean | hasAttributes()
Implements org. Returns whether this node (if it is an element) has any attributes. |
public boolean | hasChildNodes()
Implements org. Returns whether this node has any children. |
public Node | insertBefore(Node
The node to insert. a, Node The reference node, i.e., the node before which the
new node must be inserted. b)Implements org. Inserts the node |
public boolean | Returns: true if the specified namespaceURI
is the default namespace, false otherwise.The namespace URI to look for. namespaceURI)Implements org. DOM Level 3: Experimental
This method checks if the specified |
public boolean | isDerivedFrom(String
the namespace of the other type definition. ns, String the name of the other type definition. localName, int the type of derivation and conditions applied
between two types, as described in the list of constants provided
in this interface. derivationMethod)Implements org. This method returns if there is a derivation between the reference
type definition, i.e. the |
public boolean | Returns: If the nodes, and possibly subtrees are equal,true otherwise false .The node to compare equality with. arg)Implements org. Tests whether two nodes are equal. |
public boolean | isId()
Implements org. Returns whether this attribute is known to be of type ID (i.e. to contain an identifier for its owner element) or not. |
public boolean | Returns: Returnstrue if the nodes are the same,
false otherwise.The node to test against. other)Implements org. Returns whether this node is the same node as the given one. |
public boolean | isSupported(String
The name of the feature to test. feature, String This is the version number of the feature to test. version)Implements org. Tests whether the DOM implementation implements a specific feature and that feature is supported by this node, as specified in . |
public String | Returns: th URI for the namespaceThe prefix to look for. If this parameter is
specifiedPrefix)null , the method will return the default namespace URI
if any.Implements org. DOM Level 3 - Experimental: Look up the namespace URI associated to the given prefix, starting from this node. |
public String | Returns: the prefix for the namespaceImplements org. DOM Level 3 - Experimental: Look up the prefix associated to the given namespace URI, starting from this node. |
public void | normalize()
Implements org. Puts all |
public Node | removeChild(Node
The node being removed. a)Implements org. Removes the child node indicated by |
public Node | replaceChild(Node
The new node to put in the child list. a, Node The node being replaced in the list. b)Implements org. Replaces the child node |
public void | setNodeValue(String value)
Implements org. The value of this node, depending on its type; see the table above. |
public void | setPrefix(String value)
Implements org. The namespace prefix of this node, or |
public void | setTextContent(String textContent)
Implements org. This attribute returns the text content of this node and its descendants. |
public Object | Returns: Returns theDOMObject previously associated to
the given key on this node, or null if there was none.The key to associate the object to. key, Object The object to associate to the given key, or
data, UserDataHandler null to remove any existing association to that key.The handler to associate to that key, or
handler)null .Implements org. Associate an object to a key on this node. |
public void | setValue(String value)
Implements org. On retrieval, the value of the attribute is returned as a string. |
handle | back to summary |
---|---|
pack-priv int handle |
nodename | back to summary |
---|---|
pack-priv String nodename |
NOT_SUPPORTED_ERR | back to summary |
---|---|
pack-priv final String NOT_SUPPORTED_ERR |
prefix | back to summary |
---|---|
pack-priv String prefix |
pseudoparent | back to summary |
---|---|
pack-priv Element pseudoparent |
uri | back to summary |
---|---|
pack-priv String uri |
DOM2DTMdefaultNamespaceDeclarationNode | back to summary |
---|---|
pack-priv DOM2DTMdefaultNamespaceDeclarationNode(Element pseudoparent, String prefix, String uri, int handle) |
appendChild | back to summary |
---|---|
public Node appendChild(Node a) Implements org. Doc from org. Adds the node |
cloneNode | back to summary |
---|---|
public Node cloneNode(boolean deep) Implements org. Doc from org. Returns a duplicate of this node, i.e., serves as a generic copy
constructor for nodes. The duplicate node has no parent (
|
compareDocumentPosition | back to summary |
---|---|
public short compareDocumentPosition(Node other) throws DOMException Implements org. Compares a node with this node with regard to their position in the document.
|
getAttributes | back to summary |
---|---|
public NamedNodeMap getAttributes() Implements org. Doc from org. A |
getBaseURI | back to summary |
---|---|
public String getBaseURI() Implements org. The absolute base URI of this node or
|
getChildNodes | back to summary |
---|---|
public NodeList getChildNodes() Implements org. Doc from org. A |
getFeature | back to summary |
---|---|
public Object getFeature(String feature, String version) Implements org. 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.
|
getFirstChild | back to summary |
---|---|
public Node getFirstChild() Implements org. Doc from org. The first child of this node. If there is no such node, this returns
|
getHandleOfNode | back to summary |
---|---|
public int getHandleOfNode() Non-DOM method, part of the temporary kluge %REVIEW% This would be a pruning problem, but since it will always be added to the root element and we prune on elements, we shouldn't have to worry. |
getLastChild | back to summary |
---|---|
public Node getLastChild() Implements org. Doc from org. The last child of this node. If there is no such node, this returns
|
getLocalName | back to summary |
---|---|
public String getLocalName() Implements org. Doc from org. Returns the local part of the qualified name of this node.
|
getName | back to summary |
---|---|
public String getName() Implements org. Doc from org. Returns the name of this attribute. If |
getNamespaceURI | back to summary |
---|---|
public String getNamespaceURI() Implements org. Doc from org. The namespace URI of this node, or Note Per the Namespaces in XML Specification [XML Namespaces] an attribute does not inherit its namespace from the element it is attached to. If an attribute is not explicitly given a namespace, it simply has no namespace. |
getNextSibling | back to summary |
---|---|
public Node getNextSibling() Implements org. Doc from org. The node immediately following this node. If there is no such node,
this returns |
getNodeName | back to summary |
---|---|
public String getNodeName() Implements org. Doc from org. The name of this node, depending on its type; see the table above. |
getNodeType | back to summary |
---|---|
public short getNodeType() Implements org. Doc from org. A code representing the type of the underlying object, as defined above. |
getNodeValue | back to summary |
---|---|
public String getNodeValue() Implements org. Doc from org. The value of this node, depending on its type; see the table above.
When it is defined to be |
getOwnerDocument | back to summary |
---|---|
public Document getOwnerDocument() Implements org. Doc from org. The |
getOwnerElement | back to summary |
---|---|
public Element getOwnerElement() Implements org. Doc from org. The |
getParentNode | back to summary |
---|---|
public Node getParentNode() Implements org. Doc from org. The parent of this node. All nodes, except |
getPrefix | back to summary |
---|---|
public String getPrefix() Implements org. Doc from org. The namespace prefix of this node, or |
getPreviousSibling | back to summary |
---|---|
public Node getPreviousSibling() Implements org. Doc from org. The node immediately preceding this node. If there is no such node,
this returns |
getSchemaTypeInfo | back to summary |
---|---|
public TypeInfo getSchemaTypeInfo() Implements org. Doc from org. The type information associated with this attribute. While the type
information contained in this attribute is guarantee to be correct
after loading the document or invoking
|
getSpecified | back to summary |
---|---|
public boolean getSpecified() Implements org. Doc from org.
|
getTextContent | back to summary | ||||||||
---|---|---|---|---|---|---|---|---|---|
public String getTextContent() throws DOMException Implements org. 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
|
getTypeName | back to summary |
---|---|
public String getTypeName() Implements org. Doc from org. The name of a type declared for the associated element or attribute,
or
|
getTypeNamespace | back to summary |
---|---|
public String getTypeNamespace() Implements org. Doc from org. The namespace of the type declared for the associated element or
attribute or |
getUserData | back to summary |
---|---|
public Object getUserData(String key) Implements org. Retrieves the object associated to a key on a this node. The object
must first have been set to this node by calling
|
getValue | back to summary |
---|---|
public String getValue() Implements org. Doc from org. On retrieval, the value of the attribute is returned as a string.
Character and general entity references are replaced with their
values. See also the method |
hasAttributes | back to summary |
---|---|
public boolean hasAttributes() Implements org. Doc from org. Returns whether this node (if it is an element) has any attributes.
|
hasChildNodes | back to summary |
---|---|
public boolean hasChildNodes() Implements org. Doc from org. Returns whether this node has any children.
|
insertBefore | back to summary |
---|---|
public Node insertBefore(Node a, Node b) Implements org. Doc from org. Inserts the node Note Inserting a node before itself is implementation dependent. |
isDefaultNamespace | back to summary |
---|---|
public boolean isDefaultNamespace(String namespaceURI) Implements org. DOM Level 3: Experimental
This method checks if the specified
|
isDerivedFrom | back to summary |
---|---|
public boolean isDerivedFrom(String ns, String localName, int derivationMethod) Implements org. Doc from org. This method returns if there is a derivation between the reference
type definition, i.e. the
|
isEqualNode | back to summary |
---|---|
public boolean isEqualNode(Node arg) Implements org. Tests whether two nodes are equal.
|
isId | back to summary |
---|---|
public boolean isId() Implements org. Doc from org. Returns whether this attribute is known to be of type ID (i.e. to
contain an identifier for its owner element) or not. When it is and
its value is unique, the
If validation occurred while invoking Document.normalizeDocument() , all user-determined ID
attributes are reset and all attribute nodes ID information are then
reevaluated in accordance to the schema used. As a consequence, if
the Attr.schemaTypeInfo attribute contains an ID type,
isId will always return true.
|
isSameNode | back to summary |
---|---|
public boolean isSameNode(Node other) Implements org. Returns whether this node is the same node as the given one.
|
isSupported | back to summary |
---|---|
public boolean isSupported(String feature, String version) Implements org. Doc from org. Tests whether the DOM implementation implements a specific feature and that feature is supported by this node, as specified in . |
lookupNamespaceURI | back to summary |
---|---|
public String lookupNamespaceURI(String specifiedPrefix) Implements org. DOM Level 3 - Experimental: Look up the namespace URI associated to the given prefix, starting from this node. Use lookupNamespaceURI(null) to lookup the default namespace
|
lookupPrefix | back to summary |
---|---|
public String lookupPrefix(String namespaceURI) Implements org. DOM Level 3 - Experimental: Look up the prefix associated to the given namespace URI, starting from this node.
|
normalize | back to summary |
---|---|
public void normalize() Implements org. Doc from org. Puts all Note In cases where the document contains
|
removeChild | back to summary |
---|---|
public Node removeChild(Node a) Implements org. Doc from org. Removes the child node indicated by |
replaceChild | back to summary |
---|---|
public Node replaceChild(Node a, Node b) Implements org. Doc from org. Replaces the child node Note Replacing a node with itself is implementation dependent. |
setNodeValue | back to summary |
---|---|
public void setNodeValue(String value) Implements org. Doc from org. The value of this node, depending on its type; see the table above.
When it is defined to be |
setPrefix | back to summary |
---|---|
public void setPrefix(String value) Implements org. Doc from org. The namespace prefix of this node, or |
setTextContent | back to summary | ||||||||
---|---|---|---|---|---|---|---|---|---|
public void setTextContent(String textContent) throws DOMException Implements org. 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
|
setUserData | back to summary |
---|---|
public Object setUserData(String key, Object data, UserDataHandler handler) Implements org. Associate an object to a key on this node. The object can later be
retrieved from this node by calling
|
setValue | back to summary |
---|---|
public void setValue(String value) Implements org. Doc from org. On retrieval, the value of the attribute is returned as a string.
Character and general entity references are replaced with their
values. See also the method |