|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.hp.hpl.thermopylae.NodeImpl | +--com.hp.hpl.thermopylae.ElementImpl
Wrapper around a sparta Element
.
Copyright (C) 2002 Hewlett-Packard Company. This file is part of Sparta, an XML Parser, DOM, and XPath library. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE |
Method Summary | |
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node node)
Adds the node newChild to the end of the list of children
of this node. |
org.w3c.dom.Node |
cloneNode(boolean deep)
Return clone of node. |
java.lang.String |
getAttribute(java.lang.String name)
Retrieves an attribute value by name. |
org.w3c.dom.Attr |
getAttributeNode(java.lang.String name)
Retrieves an attribute node by name. |
org.w3c.dom.Attr |
getAttributeNodeNS(java.lang.String parm1,
java.lang.String parm2)
Retrieves an Attr node by local name and namespace URI. |
java.lang.String |
getAttributeNS(java.lang.String parm1,
java.lang.String parm2)
Retrieves an attribute value by local name and namespace URI. |
org.w3c.dom.NamedNodeMap |
getAttributes()
A NamedNodeMap containing the attributes of this node (if
it is an Element ) or null otherwise. |
org.w3c.dom.NodeList |
getChildNodes()
A NodeList that contains all children of this node. |
org.w3c.dom.NodeList |
getElementsByTagName(java.lang.String tagName)
Returns a NodeList of all descendant Elements
with a given tag name, in document order. |
org.w3c.dom.NodeList |
getElementsByTagNameNS(java.lang.String parm1,
java.lang.String parm2)
Returns a NodeList of all the descendant
Elements with a given local name and namespace URI in
document order. |
org.w3c.dom.Node |
getFirstChild()
The first child of this node. |
org.w3c.dom.Node |
getLastChild()
The last child of this node. |
java.lang.String |
getLocalName()
Returns the local part of the qualified name of this node. |
java.lang.String |
getNamespaceURI()
The namespace URI of this node, or null if it is
unspecified. |
java.lang.String |
getNodeName()
The name of this node, depending on its type; see the table above. |
short |
getNodeType()
A code representing the type of the underlying object, as defined above. |
java.lang.String |
getNodeValue()
The value of this node, depending on its type; see the table above. |
org.w3c.dom.Node |
getParentNode()
The parent of this node. |
java.lang.String |
getPrefix()
The namespace prefix of this node, or null if it is
unspecified. |
java.lang.String |
getTagName()
The name of the element. |
boolean |
hasAttribute(java.lang.String parm1)
Returns true when an attribute with a given name is
specified on this element or has a default value, false
otherwise. |
boolean |
hasAttributeNS(java.lang.String parm1,
java.lang.String parm2)
Returns true when an attribute with a given local name and
namespace URI is specified on this element or has a default value,
false otherwise. |
boolean |
hasAttributes()
Returns whether this node (if it is an element) has any attributes. |
boolean |
hasChildNodes()
Returns whether this node has any children. |
org.w3c.dom.Node |
insertBefore(org.w3c.dom.Node parm1,
org.w3c.dom.Node parm2)
Inserts the node newChild before the existing child node
refChild . |
boolean |
isSupported(java.lang.String feature,
java.lang.String version)
Tests whether the DOM implementation implements a specific feature and that feature is supported by this node. |
void |
normalize()
Puts all Text nodes in the full depth of the sub-tree
underneath this Node , including attribute nodes, into a
"normal" form where only structure (e.g., elements, comments,
processing instructions, CDATA sections, and entity references)
separates Text nodes, i.e., there are neither adjacent
Text nodes nor empty Text nodes. |
void |
removeAttribute(java.lang.String name)
Removes an attribute by name. |
org.w3c.dom.Attr |
removeAttributeNode(org.w3c.dom.Attr parm1)
Removes the specified attribute node. |
void |
removeAttributeNS(java.lang.String parm1,
java.lang.String parm2)
Removes an attribute by local name and namespace URI. |
org.w3c.dom.Node |
removeChild(org.w3c.dom.Node child)
Removes the child node indicated by oldChild from the list
of children, and returns it. |
org.w3c.dom.Node |
replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild)
Replaces the child node oldChild with newChild
in the list of children, and returns the oldChild node. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Adds a new attribute. |
org.w3c.dom.Attr |
setAttributeNode(org.w3c.dom.Attr parm1)
Adds a new attribute node. |
org.w3c.dom.Attr |
setAttributeNodeNS(org.w3c.dom.Attr attr)
Adds a new attribute. |
void |
setAttributeNS(java.lang.String parm1,
java.lang.String parm2,
java.lang.String parm3)
Adds a new attribute. |
void |
setNodeValue(java.lang.String parm1)
The value of this node, depending on its type; see the table above. |
void |
setPrefix(java.lang.String parm1)
The namespace prefix of this node, or null if it is
unspecified. |
Methods inherited from class com.hp.hpl.thermopylae.NodeImpl |
compareTreePosition, equals, getBaseURI, getInterface, getNextSibling, getOwnerDocument, getPreviousSibling, getTextContent, getUserData, isEqualNode, isSameNode, lookupNamespacePrefix, lookupNamespaceURI, setTextContent, setUserData |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Node |
compareTreePosition, getBaseURI, getInterface, getNextSibling, getOwnerDocument, getPreviousSibling, getTextContent, getUserData, isEqualNode, isSameNode, lookupNamespacePrefix, lookupNamespaceURI, setTextContent, setUserData |
Method Detail |
public java.lang.String getAttribute(java.lang.String name)
org.w3c.dom.Element
getAttribute
in interface org.w3c.dom.Element
org.w3c.dom.Element
name
- The name of the attribute to retrieve.Attr
value as a string, or the empty string
if that attribute does not have a specified or default value.public java.lang.String getAttributeNS(java.lang.String parm1, java.lang.String parm2)
org.w3c.dom.Element
getAttributeNS
in interface org.w3c.dom.Element
org.w3c.dom.Element
namespaceURI
- The namespace URI of the attribute to retrieve.localName
- The local name of the attribute to retrieve.Attr
value as a string, or the empty string
if that attribute does not have a specified or default value.public org.w3c.dom.Attr getAttributeNode(java.lang.String name)
org.w3c.dom.Element
getAttributeNodeNS
method.getAttributeNode
in interface org.w3c.dom.Element
org.w3c.dom.Element
name
- The name (nodeName
) of the attribute to
retrieve.Attr
node with the specified name (
nodeName
) or null
if there is no such
attribute.public org.w3c.dom.Attr getAttributeNodeNS(java.lang.String parm1, java.lang.String parm2)
org.w3c.dom.Element
Attr
node by local name and namespace URI.
getAttributeNodeNS
in interface org.w3c.dom.Element
org.w3c.dom.Element
namespaceURI
- The namespace URI of the attribute to retrieve.localName
- The local name of the attribute to retrieve.Attr
node with the specified attribute local
name and namespace URI or null
if there is no such
attribute.public org.w3c.dom.NodeList getElementsByTagName(java.lang.String tagName)
org.w3c.dom.Element
NodeList
of all descendant Elements
with a given tag name, in document order.getElementsByTagName
in interface org.w3c.dom.Element
org.w3c.dom.Element
name
- The name of the tag to match on. The special value "*"
matches all tags.Element
nodes.public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String parm1, java.lang.String parm2)
org.w3c.dom.Element
NodeList
of all the descendant
Elements
with a given local name and namespace URI in
document order.
getElementsByTagNameNS
in interface org.w3c.dom.Element
org.w3c.dom.Element
namespaceURI
- The namespace URI of the elements to match on. The
special value "*" matches all namespaces.localName
- The local name of the elements to match on. The
special value "*" matches all local names.NodeList
object containing all the matched
Elements
.public java.lang.String getTagName()
org.w3c.dom.Element
<elementExample id="demo"> ... </elementExample> ,
tagName
has
the value "elementExample"
. Note that this is
case-preserving in XML, as are all of the operations of the DOM. The
HTML DOM returns the tagName
of an HTML element in the
canonical uppercase form, regardless of the case in the source HTML
document.getTagName
in interface org.w3c.dom.Element
public boolean hasAttribute(java.lang.String parm1)
org.w3c.dom.Element
true
when an attribute with a given name is
specified on this element or has a default value, false
otherwise.hasAttribute
in interface org.w3c.dom.Element
org.w3c.dom.Element
name
- The name of the attribute to look for.true
if an attribute with the given name is
specified on this element or has a default value, false
otherwise.public boolean hasAttributeNS(java.lang.String parm1, java.lang.String parm2)
org.w3c.dom.Element
true
when an attribute with a given local name and
namespace URI is specified on this element or has a default value,
false
otherwise.
hasAttributeNS
in interface org.w3c.dom.Element
org.w3c.dom.Element
namespaceURI
- The namespace URI of the attribute to look for.localName
- The local name of the attribute to look for.true
if an attribute with the given local name
and namespace URI is specified or has a default value on this
element, false
otherwise.public void removeAttribute(java.lang.String name) throws org.w3c.dom.DOMException
org.w3c.dom.Element
removeAttributeNS
method.removeAttribute
in interface org.w3c.dom.Element
org.w3c.dom.Element
name
- The name of the attribute to remove.org.w3c.dom.DOMException
- NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.public void removeAttributeNS(java.lang.String parm1, java.lang.String parm2) throws org.w3c.dom.DOMException
org.w3c.dom.Element
removeAttributeNS
in interface org.w3c.dom.Element
org.w3c.dom.Element
namespaceURI
- The namespace URI of the attribute to remove.localName
- The local name of the attribute to remove.org.w3c.dom.DOMException
- NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.public org.w3c.dom.Attr removeAttributeNode(org.w3c.dom.Attr parm1) throws org.w3c.dom.DOMException
org.w3c.dom.Element
Attr
has a default value it is immediately replaced. The replacing
attribute has the same namespace URI and local name, as well as the
original prefix, when applicable.removeAttributeNode
in interface org.w3c.dom.Element
org.w3c.dom.Element
oldAttr
- The Attr
node to remove from the attribute
list.Attr
node that was removed.org.w3c.dom.DOMException
- NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
oldAttr
is not an attribute
of the element.public void setAttribute(java.lang.String name, java.lang.String value) throws org.w3c.dom.DOMException
org.w3c.dom.Element
Attr
node plus any
Text
and EntityReference
nodes, build the
appropriate subtree, and use setAttributeNode
to assign
it as the value of an attribute.
setAttributeNS
method.setAttribute
in interface org.w3c.dom.Element
org.w3c.dom.Element
name
- The name of the attribute to create or alter.value
- Value to set in string form.org.w3c.dom.DOMException
- INVALID_CHARACTER_ERR: Raised if the specified name contains an
illegal character.
public void setAttributeNS(java.lang.String parm1, java.lang.String parm2, java.lang.String parm3) throws org.w3c.dom.DOMException
org.w3c.dom.Element
qualifiedName
, and
its value is changed to be the value
parameter. This
value is a simple string; it is not parsed as it is being set. So any
markup (such as syntax to be recognized as an entity reference) is
treated as literal text, and needs to be appropriately escaped by the
implementation when it is written out. In order to assign an
attribute value that contains entity references, the user must create
an Attr
node plus any Text
and
EntityReference
nodes, build the appropriate subtree,
and use setAttributeNodeNS
or
setAttributeNode
to assign it as the value of an
attribute.
setAttributeNS
in interface org.w3c.dom.Element
org.w3c.dom.Element
namespaceURI
- The namespace URI of the attribute to create or
alter.qualifiedName
- The qualified name of the attribute to create or
alter.value
- The value to set in string form.org.w3c.dom.DOMException
- INVALID_CHARACTER_ERR: Raised if the specified qualified name
contains an illegal character, per the XML 1.0 specification .
qualifiedName
is
malformed per the Namespaces in XML specification, if the
qualifiedName
has a prefix and the
namespaceURI
is null
, if the
qualifiedName
has a prefix that is "xml" and the
namespaceURI
is different from "
http://www.w3.org/XML/1998/namespace", or if the
qualifiedName
, or its prefix, is "xmlns" and the
namespaceURI
is different from "
http://www.w3.org/2000/xmlns/".
"XML"
feature, since namespaces were
defined by XML.public org.w3c.dom.Attr setAttributeNode(org.w3c.dom.Attr parm1) throws org.w3c.dom.DOMException
org.w3c.dom.Element
nodeName
) is already present in the element, it is
replaced by the new one.
setAttributeNodeNS
method.setAttributeNode
in interface org.w3c.dom.Element
org.w3c.dom.Element
newAttr
- The Attr
node to add to the attribute list.newAttr
attribute replaces an existing
attribute, the replaced Attr
node is returned,
otherwise null
is returned.org.w3c.dom.DOMException
- WRONG_DOCUMENT_ERR: Raised if newAttr
was created from a
different document than the one that created the element.
newAttr
is already an
attribute of another Element
object. The DOM user must
explicitly clone Attr
nodes to re-use them in other
elements.public org.w3c.dom.Attr setAttributeNodeNS(org.w3c.dom.Attr attr) throws org.w3c.dom.DOMException
org.w3c.dom.Element
setAttributeNodeNS
in interface org.w3c.dom.Element
org.w3c.dom.Element
newAttr
- The Attr
node to add to the attribute list.newAttr
attribute replaces an existing
attribute with the same local name and namespace URI, the replaced
Attr
node is returned, otherwise null
is
returned.org.w3c.dom.DOMException
- WRONG_DOCUMENT_ERR: Raised if newAttr
was created from a
different document than the one that created the element.
newAttr
is already an
attribute of another Element
object. The DOM user must
explicitly clone Attr
nodes to re-use them in other
elements.
"XML"
feature, since namespaces were
defined by XML.public org.w3c.dom.Node appendChild(org.w3c.dom.Node node) throws org.w3c.dom.DOMException
org.w3c.dom.Node
newChild
to the end of the list of children
of this node. If the newChild
is already in the tree, it
is first removed.appendChild
in interface org.w3c.dom.Node
org.w3c.dom.Node
newChild
- The node to add.If it is a
DocumentFragment
object, the entire contents of the
document fragment are moved into the child list of this nodeorg.w3c.dom.DOMException
- HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not
allow children of the type of the newChild
node, or if
the node to append is one of this node's ancestors or this node
itself.
newChild
was created
from a different document than the one that created this node.
public org.w3c.dom.Node cloneNode(boolean deep)
cloneNode
in interface org.w3c.dom.Node
org.w3c.dom.Node
deep
- If true
, recursively clone the subtree under
the specified node; if false
, clone only the node
itself (and its attributes, if it is an Element
).public org.w3c.dom.NamedNodeMap getAttributes()
org.w3c.dom.Node
NamedNodeMap
containing the attributes of this node (if
it is an Element
) or null
otherwise.
getAttributes
in interface org.w3c.dom.Node
public org.w3c.dom.NodeList getChildNodes()
org.w3c.dom.Node
NodeList
that contains all children of this node. If
there are no children, this is a NodeList
containing no
nodes.
Document
, or an
Element
, and if the NodeList
does not
contain EntityReference
or CDATASection
nodes, this attribute represents the properties [children] defined in
.getChildNodes
in interface org.w3c.dom.Node
public org.w3c.dom.Node getFirstChild()
org.w3c.dom.Node
null
.getFirstChild
in interface org.w3c.dom.Node
public org.w3c.dom.Node getLastChild()
org.w3c.dom.Node
null
.getLastChild
in interface org.w3c.dom.Node
public java.lang.String getLocalName()
org.w3c.dom.Node
Element
, or Attr
, this
attribute represents the properties [local name] defined in .
ELEMENT_NODE
and
ATTRIBUTE_NODE
and nodes created with a DOM Level 1
method, such as createElement
from the
Document
interface, this is always null
.getLocalName
in interface org.w3c.dom.Node
public java.lang.String getNamespaceURI()
org.w3c.dom.Node
null
if it is
unspecified.
Element
, or Attr
, this
attribute represents the properties [namespace name] defined in .
ELEMENT_NODE
and
ATTRIBUTE_NODE
and nodes created with a DOM Level 1
method, such as createElement
from the
Document
interface, this is always null
.Per
the Namespaces in XML Specification 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.getNamespaceURI
in interface org.w3c.dom.Node
public java.lang.String getNodeName()
org.w3c.dom.Node
getNodeName
in interface org.w3c.dom.Node
public short getNodeType()
org.w3c.dom.Node
getNodeType
in interface org.w3c.dom.Node
public java.lang.String getNodeValue() throws org.w3c.dom.DOMException
org.w3c.dom.Node
null
, setting it has no effect.getNodeValue
in interface org.w3c.dom.Node
org.w3c.dom.Node
org.w3c.dom.DOMException
- NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.org.w3c.dom.DOMException
- DOMSTRING_SIZE_ERR: Raised when it would return more characters than
fit in a DOMString
variable on the implementation
platform.public org.w3c.dom.Node getParentNode()
org.w3c.dom.Node
Attr
,
Document
, DocumentFragment
,
Entity
, and Notation
may have a parent.
However, if a node has just been created and not yet added to the
tree, or if it has been removed from the tree, this is
null
.
Element
, a
ProcessingInstruction
, an EntityReference
,
a CharacterData
, a Comment
, or a
DocumentType
, this attribute represents the properties
[parent] defined in .getParentNode
in interface org.w3c.dom.Node
public java.lang.String getPrefix()
org.w3c.dom.Node
null
if it is
unspecified.
Element
, or Attr
, this
attribute represents the properties [prefix] defined in .
nodeName
attribute, which holds the qualified name, as
well as the tagName
and name
attributes of
the Element
and Attr
interfaces, when
applicable.
namespaceURI
and localName
do not change.
ELEMENT_NODE
and
ATTRIBUTE_NODE
and nodes created with a DOM Level 1
method, such as createElement
from the
Document
interface, this is always null
.getPrefix
in interface org.w3c.dom.Node
org.w3c.dom.Node
org.w3c.dom.DOMException
- INVALID_CHARACTER_ERR: Raised if the specified prefix contains an
illegal character, per the XML 1.0 specification .
prefix
is
malformed per the Namespaces in XML specification, if the
namespaceURI
of this node is null
, if the
specified prefix is "xml" and the namespaceURI
of this
node is different from "http://www.w3.org/XML/1998/namespace", if
this node is an attribute and the specified prefix is "xmlns" and
the namespaceURI
of this node is different from "
http://www.w3.org/2000/xmlns/", or if this node is an attribute and
the qualifiedName
of this node is "xmlns" .public boolean hasAttributes()
org.w3c.dom.Node
hasAttributes
in interface org.w3c.dom.Node
org.w3c.dom.Node
true
if this node has any attributes,
false
otherwise.public boolean hasChildNodes()
org.w3c.dom.Node
hasChildNodes
in interface org.w3c.dom.Node
org.w3c.dom.Node
true
if this node has any children,
false
otherwise.public org.w3c.dom.Node insertBefore(org.w3c.dom.Node parm1, org.w3c.dom.Node parm2) throws org.w3c.dom.DOMException
org.w3c.dom.Node
newChild
before the existing child node
refChild
. If refChild
is null
,
insert newChild
at the end of the list of children.
newChild
is a DocumentFragment
object,
all of its children are inserted, in the same order, before
refChild
. If the newChild
is already in the
tree, it is first removed.insertBefore
in interface org.w3c.dom.Node
org.w3c.dom.Node
newChild
- The node to insert.refChild
- The reference node, i.e., the node before which the
new node must be inserted.org.w3c.dom.DOMException
- HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not
allow children of the type of the newChild
node, or if
the node to insert is one of this node's ancestors or this node
itself, or if this node if of type Document
and the
DOM application attempts to insert a second
DocumentType
or Element
node.
newChild
was created
from a different document than the one that created this node.
refChild
is not a child of
this node.
Document
,
this exception might be raised if the DOM implementation doesn't
support the insertion of a DocumentType
or
Element
node.public boolean isSupported(java.lang.String feature, java.lang.String version)
org.w3c.dom.Node
isSupported
in interface org.w3c.dom.Node
org.w3c.dom.Node
feature
- The name of the feature to test. This is the same name
which can be passed to the method hasFeature
on
DOMImplementation
.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 return true
.true
if the specified feature is
supported on this node, false
otherwise.public void normalize()
org.w3c.dom.Node
Text
nodes in the full depth of the sub-tree
underneath this Node
, including attribute nodes, into a
"normal" form where only structure (e.g., elements, comments,
processing instructions, CDATA sections, and entity references)
separates Text
nodes, i.e., there are neither adjacent
Text
nodes nor empty Text
nodes. This can
be used to ensure that the DOM view of a document is the same as if
it were saved and re-loaded, and is useful when operations (such as
XPointer lookups) that depend on a particular document tree
structure are to be used.In cases where the document contains
CDATASections
, the normalize operation alone may not be
sufficient, since XPointers do not differentiate between
Text
nodes and CDATASection
nodes.normalize
in interface org.w3c.dom.Node
public org.w3c.dom.Node removeChild(org.w3c.dom.Node child) throws org.w3c.dom.DOMException
org.w3c.dom.Node
oldChild
from the list
of children, and returns it.removeChild
in interface org.w3c.dom.Node
org.w3c.dom.Node
oldChild
- The node being removed.org.w3c.dom.DOMException
- NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
oldChild
is not a child of
this node.
Document
,
this exception might be raised if the DOM implementation doesn't
support the removal of the DocumentType
child or the
Element
child.public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild, org.w3c.dom.Node oldChild) throws org.w3c.dom.DOMException
org.w3c.dom.Node
oldChild
with newChild
in the list of children, and returns the oldChild
node.
newChild
is a DocumentFragment
object,
oldChild
is replaced by all of the
DocumentFragment
children, which are inserted in the
same order. If the newChild
is already in the tree, it
is first removed.replaceChild
in interface org.w3c.dom.Node
org.w3c.dom.Node
newChild
- The new node to put in the child list.oldChild
- The node being replaced in the list.org.w3c.dom.DOMException
- HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not
allow children of the type of the newChild
node, or if
the node to put in is one of this node's ancestors or this node
itself.
newChild
was created
from a different document than the one that created this node.
oldChild
is not a child of
this node.
Document
,
this exception might be raised if the DOM implementation doesn't
support the replacement of the DocumentType
child or
Element
child.public void setNodeValue(java.lang.String parm1) throws org.w3c.dom.DOMException
org.w3c.dom.Node
null
, setting it has no effect.setNodeValue
in interface org.w3c.dom.Node
org.w3c.dom.Node
org.w3c.dom.DOMException
- NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.org.w3c.dom.DOMException
- DOMSTRING_SIZE_ERR: Raised when it would return more characters than
fit in a DOMString
variable on the implementation
platform.public void setPrefix(java.lang.String parm1) throws org.w3c.dom.DOMException
org.w3c.dom.Node
null
if it is
unspecified.
Element
, or Attr
, this
attribute represents the properties [prefix] defined in .
nodeName
attribute, which holds the qualified name, as
well as the tagName
and name
attributes of
the Element
and Attr
interfaces, when
applicable.
namespaceURI
and localName
do not change.
ELEMENT_NODE
and
ATTRIBUTE_NODE
and nodes created with a DOM Level 1
method, such as createElement
from the
Document
interface, this is always null
.setPrefix
in interface org.w3c.dom.Node
org.w3c.dom.Node
org.w3c.dom.DOMException
- INVALID_CHARACTER_ERR: Raised if the specified prefix contains an
illegal character, per the XML 1.0 specification .
prefix
is
malformed per the Namespaces in XML specification, if the
namespaceURI
of this node is null
, if the
specified prefix is "xml" and the namespaceURI
of this
node is different from "http://www.w3.org/XML/1998/namespace", if
this node is an attribute and the specified prefix is "xmlns" and
the namespaceURI
of this node is different from "
http://www.w3.org/2000/xmlns/", or if this node is an attribute and
the qualifiedName
of this node is "xmlns" .
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |