|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.xml.NodeImpl
org.enhydra.xml.ElementImpl
public class ElementImpl
Namespaces are ignored in this implementation. The terms "tag name" and "node name" are always considered to be synonymous.
Field Summary | |
---|---|
protected java.util.HashMap |
attributes
A HashMap of AttrImpl nodes representing
attributes. |
Fields inherited from class org.enhydra.xml.NodeImpl |
---|
firstChild, lastChild, nextSibling, nodeName, nodeValue, numChildren, ownerDocument, parent, previousSibling, type |
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 | |
---|---|
|
ElementImpl()
Constructs an empty ElementImpl . |
|
ElementImpl(org.w3c.dom.Document ownerDoc,
java.lang.String name)
Constructs an ElementImpl with the given
document owner and node name. |
protected |
ElementImpl(org.w3c.dom.Document ownerDoc,
java.lang.String nodeName,
short type,
java.lang.String value)
Constructs an ElementImpl with the given
document owner, node name, node type and node value. |
|
ElementImpl(ElementImpl element)
Constructs a ElementImpl from the given node,
without creating entire children subtree. |
|
ElementImpl(org.w3c.dom.Node node)
Constructs an ElementImpl from a given node (creates the children subtree too),
as a Node |
|
ElementImpl(org.w3c.dom.Node node,
boolean deep)
Constructs an ElementImpl from a given node, as a Node ,
and deep as boolean . |
Method Summary | |
---|---|
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node newChild)
Adds the node newChild to the end of the list of
children of this node. |
protected void |
beginToString(java.lang.StringBuffer sb,
Indent indent)
Method beginToString for this class writes the xml begining tag string and all attributes. |
protected void |
checkNode(org.w3c.dom.Node node)
Check that the node is either null or an
NodeImpl . |
org.w3c.dom.Node |
cloneNode(boolean deep)
Returns a duplicate of this node. |
short |
compareDocumentPosition(org.w3c.dom.Node other)
|
protected void |
endToString(java.lang.StringBuffer sb,
Indent indent)
Method endToString for this class writes the xml ending tag string. |
java.lang.String |
getAttribute(java.lang.String name)
Returns the value of the attribute with given name. |
org.w3c.dom.Attr |
getAttributeNode(java.lang.String name)
Returns attribute value with given name of this node. |
org.w3c.dom.Attr |
getAttributeNodeNS(java.lang.String namespaceURI,
java.lang.String localName)
Equivalent to getAttributeNode(localName) . |
java.lang.String |
getAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
Equivalent to getAttribute(localName) . |
org.w3c.dom.NamedNodeMap |
getAttributes()
Returns all attribute nodes of this node. |
java.lang.String |
getBaseURI()
|
org.w3c.dom.NodeList |
getChildNodes()
Returns all child nodes of this node, or null if
the node has no children. |
org.w3c.dom.NodeList |
getElementsByTagName(java.lang.String name)
Returns all Element nodes with given name,
searching by all sub nodes from this node. |
org.w3c.dom.NodeList |
getElementsByTagNameNS(java.lang.String namespaceURI,
java.lang.String localName)
Equivalent to getElementsByTagName(localName) . |
java.lang.Object |
getFeature(java.lang.String feature,
java.lang.String version)
|
org.w3c.dom.Node |
getFirstChild()
Returns the first child of this node, or null if
the node has no children. |
org.w3c.dom.Node |
getLastChild()
Returns the last child of this node, or null if
the node has no children. |
int |
getLength()
Returns number of child nodes. |
java.lang.String |
getLocalName()
Equivalent to getNodeName . |
java.lang.String |
getNamespaceURI()
|
org.w3c.dom.Node |
getNextSibling()
Returns the next sibling of this node, or null if
the node has no next sibling. |
java.lang.String |
getNodeName()
Returns the name associated with this node. |
short |
getNodeType()
Returns the node type. |
java.lang.String |
getNodeValue()
Returns the value associated with this node. |
org.w3c.dom.Document |
getOwnerDocument()
Returns null , since NodeImpl s
do not belong to any Document . |
org.w3c.dom.Node |
getParentNode()
Returns the parent of this node. |
java.lang.String |
getPrefix()
Returns null , since namespaces are not supported. |
org.w3c.dom.Node |
getPreviousSibling()
Returns the previous sibling of this node, or null
if this node has no previous sibling. |
TypeInfo |
getSchemaTypeInfo()
|
java.lang.String |
getTagName()
Returns tag name of this node. |
java.lang.String |
getTextContent()
|
java.lang.Object |
getUserData(java.lang.String key)
|
boolean |
hasAttribute(java.lang.String name)
Returns true , if this node has attribute with given name,
otherwise false . |
boolean |
hasAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
Equivalent to hasAttribute(localName) . |
boolean |
hasAttributes()
Returns true , if this node has attributes, otherwise
false . |
boolean |
hasChildNodes()
Returns true if this node has child nodes. |
boolean |
hasElementChildNodes()
Returns true if this node has children nodes. |
protected void |
initNodeImplChildren(org.w3c.dom.Node node)
Creates the children subtree and adds to this node. |
org.w3c.dom.Node |
insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
Inserts the node newChild before the existing
child node refChild . |
boolean |
isDefaultNamespace(java.lang.String namespaceURI)
|
boolean |
isEqualNode(org.w3c.dom.Node arg)
|
boolean |
isSameNode(org.w3c.dom.Node other)
|
boolean |
isSupported(java.lang.String feature,
java.lang.String version)
Returns false since DOM features are not
supported. |
org.w3c.dom.Node |
item(int index)
Returns child node with the given index. |
java.lang.String |
lookupNamespaceURI(java.lang.String prefix)
|
java.lang.String |
lookupPrefix(java.lang.String namespaceURI)
|
protected org.w3c.dom.Node |
newCommentInstance(org.w3c.dom.Node node)
Creates new instance of the CommentImpl class. |
protected org.w3c.dom.Node |
newDefaultInstance(org.w3c.dom.Node node)
Creates new instance of the NodeImpl class. |
protected org.w3c.dom.Node |
newElementInstance(org.w3c.dom.Node node)
Creates new instance of the ElementImpl class. |
static org.w3c.dom.Element |
newInstance(org.w3c.dom.Document document)
Creates new instance of ElementImpl from a given document
as a Document . |
protected org.w3c.dom.Node |
newTextInstance(org.w3c.dom.Node node)
Creates new instance of the TextImpl class. |
void |
normalize()
Does nothing, since NodeImpl s do not
contain Text children. |
void |
removeAttribute(java.lang.String name)
Removes attribute with the given name. |
org.w3c.dom.Attr |
removeAttributeNode(org.w3c.dom.Attr oldAttr)
Remove attribute from this node. |
void |
removeAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
Equivalent to removeAttribute(localName) . |
org.w3c.dom.Node |
removeChild(org.w3c.dom.Node oldChild)
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)
To the name attribute set value to value . |
org.w3c.dom.Attr |
setAttributeNode(org.w3c.dom.Attr newAttr)
Add new attribute to this node. |
org.w3c.dom.Attr |
setAttributeNodeNS(org.w3c.dom.Attr newAttr)
Equivalent to setAttributeNode(newAttr) . |
void |
setAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName,
java.lang.String value)
Equivalent to setAttribute(qualifiedName, value) . |
void |
setIdAttribute(java.lang.String name,
boolean isId)
|
void |
setIdAttributeNode(org.w3c.dom.Attr idAttr,
boolean isId)
|
void |
setIdAttributeNS(java.lang.String namespaceURI,
java.lang.String localName,
boolean isId)
|
void |
setNodeValue(java.lang.String nodeValue)
Sets the node value of this node. |
void |
setPrefix(java.lang.String prefix)
Does nothing, since namespaces are not supported. |
void |
setTextContent(java.lang.String textContent)
|
java.lang.Object |
setUserData(java.lang.String key,
java.lang.Object data,
UserDataHandler handler)
|
java.lang.String |
toString()
Returns String representation of this node. |
java.lang.String |
toString(java.lang.String tab)
Returns String representation of this node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.HashMap attributes
HashMap
of AttrImpl
nodes representing
attributes.
Constructor Detail |
---|
public ElementImpl()
ElementImpl
.
public ElementImpl(ElementImpl element)
ElementImpl
from the given node,
without creating entire children subtree.
element
- , as a ElementImpl
.public ElementImpl(org.w3c.dom.Document ownerDoc, java.lang.String name)
ElementImpl
with the given
document owner and node name.
ownerDoc
- the document owner of the node, as a Document
.name
- is the name of the node, as a String
.protected ElementImpl(org.w3c.dom.Document ownerDoc, java.lang.String nodeName, short type, java.lang.String value)
ElementImpl
with the given
document owner, node name, node type and node value.
ownerDoc
- the document owner of the node, as a Document
.nodeName
- the name of the node, as a String
.type
- the type of the node, as a short
.value
- the value of the node, as a String
.public ElementImpl(org.w3c.dom.Node node)
ElementImpl
from a given node (creates the children subtree too),
as a Node
node
- , as a Node
.public ElementImpl(org.w3c.dom.Node node, boolean deep)
ElementImpl
from a given node, as a Node
,
and deep as boolean
.
node
- , as a Node
.deep
- if true
, recursively clone the subtree
under the specified node; if false
, clone only the
node itself.Method Detail |
---|
public static org.w3c.dom.Element newInstance(org.w3c.dom.Document document)
ElementImpl
from a given document
as a Document
.
document
- document.
Element
node as a root of the Document
.public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild)
newChild
before the existing
child node refChild
. If refChild
is
null
, insert newChild
at the end of
the list of children.
insertBefore
in interface org.w3c.dom.Node
insertBefore
in class NodeImpl
newChild
- the Node
to insert.refChild
- the reference Node
.
java.lang.IllegalArgumentException
- if newChild
is
null
.public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild, org.w3c.dom.Node oldChild)
oldChild
with
newChild
in the list of children, and returns the
oldChild
node.
replaceChild
in interface org.w3c.dom.Node
replaceChild
in class NodeImpl
newChild
- the Node
to insert.oldChild
- the Node
to be replaced.
java.lang.IllegalArgumentException
- if newChild
is
null
.public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild)
oldChild
from
the list of children, and returns it.
removeChild
in interface org.w3c.dom.Node
removeChild
in class NodeImpl
oldChild
- the Node
to be removed.
java.lang.IllegalArgumentException
- if oldChild
is
null
.public org.w3c.dom.Node cloneNode(boolean deep)
getParentNode
returns null
).
If a shallow clone is being performed (deep
is
false
), the new node will not have any children or
siblings. If a deep clone is being performed, the new node
will form the root of a complete cloned subtree.
cloneNode
in interface org.w3c.dom.Node
cloneNode
in class NodeImpl
deep
- if true
, recursively clone the subtree
under the specified node; if false
, clone only the
node itself.
public java.lang.String getTagName()
getTagName
in interface org.w3c.dom.Element
String
.public org.w3c.dom.NamedNodeMap getAttributes()
getAttributes
in interface org.w3c.dom.Node
getAttributes
in class NodeImpl
NamedNodeMap
.public java.lang.String getAttribute(java.lang.String name)
getAttribute
in interface org.w3c.dom.Element
name
- name of attribute.
public java.lang.String getAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
getAttribute(localName)
.
getAttributeNS
in interface org.w3c.dom.Element
namespaceURI
- is name spacelocalName
- is string
setAttributeNS(java.lang.String, java.lang.String, java.lang.String)
public void setAttribute(java.lang.String name, java.lang.String value)
name
attribute set value to value
.
setAttribute
in interface org.w3c.dom.Element
name
- attribute value.value
- new attribute value.public void setAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String value)
setAttribute(qualifiedName, value)
.
setAttributeNS
in interface org.w3c.dom.Element
namespaceURI
- is name space of the nodequalifiedName
- is stringvalue
- is value of the nodegetAttributeNS(java.lang.String, java.lang.String)
public void removeAttribute(java.lang.String name)
removeAttribute
in interface org.w3c.dom.Element
name
- attribute name.public boolean hasAttributes()
true
, if this node has attributes, otherwise
false
.
hasAttributes
in interface org.w3c.dom.Node
hasAttributes
in class NodeImpl
true
if node has attributes, otherwise false
..public boolean hasAttribute(java.lang.String name)
true
, if this node has attribute with given name,
otherwise false
.
hasAttribute
in interface org.w3c.dom.Element
name
- is name of the node
true
if node has given attribute, otherwise false
..public void removeAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
removeAttribute(localName)
.
removeAttributeNS
in interface org.w3c.dom.Element
namespaceURI
- is name space of the nodelocalName
- is name of the nodepublic org.w3c.dom.Attr getAttributeNode(java.lang.String name)
getAttributeNode
in interface org.w3c.dom.Element
name
- name of attribute.
public org.w3c.dom.Attr getAttributeNodeNS(java.lang.String namespaceURI, java.lang.String localName)
getAttributeNode(localName)
.
getAttributeNodeNS
in interface org.w3c.dom.Element
namespaceURI
- is name space of the nodelocalName
- is name of the node
setAttributeNodeNS(org.w3c.dom.Attr)
public org.w3c.dom.Attr setAttributeNode(org.w3c.dom.Attr newAttr) throws org.w3c.dom.DOMException
setAttributeNode
in interface org.w3c.dom.Element
newAttr
- new attribute.
AttrImpl
org.w3c.dom.DOMException
public org.w3c.dom.Attr setAttributeNodeNS(org.w3c.dom.Attr newAttr)
setAttributeNode(newAttr)
.
setAttributeNodeNS
in interface org.w3c.dom.Element
newAttr
- is attribute of the node
getAttributeNodeNS(java.lang.String, java.lang.String)
public org.w3c.dom.Attr removeAttributeNode(org.w3c.dom.Attr oldAttr)
removeAttributeNode
in interface org.w3c.dom.Element
oldAttr
- attribute that will be removed.
AttrImpl
.public boolean hasAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
hasAttribute(localName)
.
hasAttributeNS
in interface org.w3c.dom.Element
namespaceURI
- is name space of the nodelocalName
- is name of the node
public org.w3c.dom.NodeList getElementsByTagName(java.lang.String name)
Element
nodes with given name,
searching by all sub nodes from this node.
getElementsByTagName
in interface org.w3c.dom.Element
name
- tag name.
Element
vith given name as NodeList
.public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName)
getElementsByTagName(localName)
.
getElementsByTagNameNS
in interface org.w3c.dom.Element
namespaceURI
- is name space of the nodelocalName
- is name of the node
public boolean hasElementChildNodes()
true
if this node has children nodes.
true
if this node has children.protected void beginToString(java.lang.StringBuffer sb, Indent indent)
beginToString
in class NodeImpl
sb
- string buffer to add resulting string.indent
- used in formating the output.protected void endToString(java.lang.StringBuffer sb, Indent indent)
endToString
in class NodeImpl
sb
- string buffer to add resulting string.indent
- used in formating the output.public TypeInfo getSchemaTypeInfo()
getSchemaTypeInfo
in interface org.w3c.dom.Element
public void setIdAttribute(java.lang.String name, boolean isId) throws org.w3c.dom.DOMException
setIdAttribute
in interface org.w3c.dom.Element
org.w3c.dom.DOMException
public void setIdAttributeNode(org.w3c.dom.Attr idAttr, boolean isId) throws org.w3c.dom.DOMException
setIdAttributeNode
in interface org.w3c.dom.Element
org.w3c.dom.DOMException
public void setIdAttributeNS(java.lang.String namespaceURI, java.lang.String localName, boolean isId) throws org.w3c.dom.DOMException
setIdAttributeNS
in interface org.w3c.dom.Element
org.w3c.dom.DOMException
public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild)
NodeImpl
newChild
to the end of the list of
children of this node.
appendChild
in interface org.w3c.dom.Node
appendChild
in class NodeImpl
newChild
- the Node
to insert.
protected void checkNode(org.w3c.dom.Node node) throws org.w3c.dom.DOMException
NodeImpl
null
or an
NodeImpl
.
checkNode
in class NodeImpl
node
- , as a Node
.
org.w3c.dom.DOMException
- if node is not an instance of NodeImpl
.public short compareDocumentPosition(org.w3c.dom.Node other) throws org.w3c.dom.DOMException
compareDocumentPosition
in interface org.w3c.dom.Node
compareDocumentPosition
in class NodeImpl
org.w3c.dom.DOMException
public java.lang.String getBaseURI()
getBaseURI
in interface org.w3c.dom.Node
getBaseURI
in class NodeImpl
public org.w3c.dom.NodeList getChildNodes()
NodeImpl
null
if
the node has no children.
getChildNodes
in interface org.w3c.dom.Node
getChildNodes
in class NodeImpl
Node
, or
null
.public java.lang.Object getFeature(java.lang.String feature, java.lang.String version)
getFeature
in interface org.w3c.dom.Node
getFeature
in class NodeImpl
public org.w3c.dom.Node getFirstChild()
NodeImpl
null
if
the node has no children.
getFirstChild
in interface org.w3c.dom.Node
getFirstChild
in class NodeImpl
Node
, or
null
public org.w3c.dom.Node getLastChild()
NodeImpl
null
if
the node has no children.
getLastChild
in interface org.w3c.dom.Node
getLastChild
in class NodeImpl
Node
, or
null
.public int getLength()
NodeImpl
getLength
in interface org.w3c.dom.NodeList
getLength
in class NodeImpl
public java.lang.String getLocalName()
NodeImpl
getNodeName
.
getLocalName
in interface org.w3c.dom.Node
getLocalName
in class NodeImpl
String
.public java.lang.String getNamespaceURI() throws org.w3c.dom.DOMException
getNamespaceURI
in interface org.w3c.dom.Node
getNamespaceURI
in class NodeImpl
null
, since namespaces are not supported.
org.w3c.dom.DOMException
public org.w3c.dom.Node getNextSibling()
NodeImpl
null
if
the node has no next sibling.
getNextSibling
in interface org.w3c.dom.Node
getNextSibling
in class NodeImpl
Node
, or
null
.public java.lang.String getNodeName()
NodeImpl
getNodeName
in interface org.w3c.dom.Node
getNodeName
in class NodeImpl
String
.public short getNodeType()
NodeImpl
getNodeType
in interface org.w3c.dom.Node
getNodeType
in class NodeImpl
short
value node type.public java.lang.String getNodeValue()
NodeImpl
getNodeValue
in interface org.w3c.dom.Node
getNodeValue
in class NodeImpl
String
.public org.w3c.dom.Document getOwnerDocument()
NodeImpl
null
, since NodeImpl
s
do not belong to any Document
.
getOwnerDocument
in interface org.w3c.dom.Node
getOwnerDocument
in class NodeImpl
Document
.public org.w3c.dom.Node getParentNode()
NodeImpl
null
value
indicates that the node is the root of its own tree. To add a
node to an existing tree, use one of the
insertBefore
, replaceChild
, or
appendChild
methods.
getParentNode
in interface org.w3c.dom.Node
getParentNode
in class NodeImpl
Node
.NodeImpl.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node)
,
NodeImpl.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node)
,
NodeImpl.appendChild(org.w3c.dom.Node)
public java.lang.String getPrefix()
NodeImpl
null
, since namespaces are not supported.
getPrefix
in interface org.w3c.dom.Node
getPrefix
in class NodeImpl
null
.NodeImpl.setPrefix(java.lang.String)
public org.w3c.dom.Node getPreviousSibling()
NodeImpl
null
if this node has no previous sibling.
getPreviousSibling
in interface org.w3c.dom.Node
getPreviousSibling
in class NodeImpl
Node
, or
null
.public java.lang.String getTextContent() throws org.w3c.dom.DOMException
getTextContent
in interface org.w3c.dom.Node
getTextContent
in class NodeImpl
org.w3c.dom.DOMException
public java.lang.Object getUserData(java.lang.String key)
getUserData
in interface org.w3c.dom.Node
getUserData
in class NodeImpl
public boolean hasChildNodes()
NodeImpl
true
if this node has child nodes.
hasChildNodes
in interface org.w3c.dom.Node
hasChildNodes
in class NodeImpl
true
if this node has children.protected void initNodeImplChildren(org.w3c.dom.Node node)
NodeImpl
initNodeImplChildren
in class NodeImpl
node
- a Node
.public boolean isDefaultNamespace(java.lang.String namespaceURI)
isDefaultNamespace
in interface org.w3c.dom.Node
isDefaultNamespace
in class NodeImpl
public boolean isEqualNode(org.w3c.dom.Node arg)
isEqualNode
in interface org.w3c.dom.Node
isEqualNode
in class NodeImpl
public boolean isSameNode(org.w3c.dom.Node other)
isSameNode
in interface org.w3c.dom.Node
isSameNode
in class NodeImpl
public boolean isSupported(java.lang.String feature, java.lang.String version)
NodeImpl
false
since DOM features are not
supported.
isSupported
in interface org.w3c.dom.Node
isSupported
in class NodeImpl
feature
- a String
, which is ignored.version
- a String
, which is ignored.
false
.public org.w3c.dom.Node item(int index)
NodeImpl
item
in interface org.w3c.dom.NodeList
item
in class NodeImpl
index
- represents index
public java.lang.String lookupNamespaceURI(java.lang.String prefix)
lookupNamespaceURI
in interface org.w3c.dom.Node
lookupNamespaceURI
in class NodeImpl
public java.lang.String lookupPrefix(java.lang.String namespaceURI)
lookupPrefix
in interface org.w3c.dom.Node
lookupPrefix
in class NodeImpl
protected org.w3c.dom.Node newCommentInstance(org.w3c.dom.Node node)
NodeImpl
newCommentInstance
in class NodeImpl
node
- , as a Node
.
protected org.w3c.dom.Node newDefaultInstance(org.w3c.dom.Node node)
NodeImpl
newDefaultInstance
in class NodeImpl
node
- , as a Node
.
protected org.w3c.dom.Node newElementInstance(org.w3c.dom.Node node)
NodeImpl
newElementInstance
in class NodeImpl
node
- , as a Node
.
protected org.w3c.dom.Node newTextInstance(org.w3c.dom.Node node)
NodeImpl
newTextInstance
in class NodeImpl
node
- , as a Node
.
public void normalize()
NodeImpl
NodeImpl
s do not
contain Text
children.
normalize
in interface org.w3c.dom.Node
normalize
in class NodeImpl
public void setNodeValue(java.lang.String nodeValue)
NodeImpl
setNodeValue
in interface org.w3c.dom.Node
setNodeValue
in class NodeImpl
nodeValue
- new node value, as a String
.public void setPrefix(java.lang.String prefix)
NodeImpl
setPrefix
in interface org.w3c.dom.Node
setPrefix
in class NodeImpl
prefix
- a String
, which is ignored.NodeImpl.getPrefix()
public void setTextContent(java.lang.String textContent) throws org.w3c.dom.DOMException
setTextContent
in interface org.w3c.dom.Node
setTextContent
in class NodeImpl
org.w3c.dom.DOMException
public java.lang.Object setUserData(java.lang.String key, java.lang.Object data, UserDataHandler handler)
setUserData
in interface org.w3c.dom.Node
setUserData
in class NodeImpl
public java.lang.String toString()
NodeImpl
String
representation of this node.
toString
in class NodeImpl
String
representation of this node.public java.lang.String toString(java.lang.String tab)
NodeImpl
String
representation of this node.
toString
in class NodeImpl
tab
- tab for node indentation.
String
representation of this node.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |