|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xalan.xslt.UnImplNode | +--weblogic.apache.xalan.xslt.ResultTreeFrag
Container of a result tree fragment.
This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.
Constructor Summary | |
ResultTreeFrag(org.w3c.dom.Document docFactory,
MutableNodeList children,
XPathSupport support)
|
|
ResultTreeFrag(org.w3c.dom.Document docFactory,
XPathSupport support)
|
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. |
org.w3c.dom.Node |
cloneNode(boolean deep)
Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes. |
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.Node |
getFirstChild()
The first child of this node. |
org.w3c.dom.Node |
getLastChild()
The last child of this node. |
java.lang.String |
getLocalName()
Unimplemented. |
java.lang.String |
getNamespaceURI()
Unimplemented. |
org.w3c.dom.Node |
getNextSibling()
The node immediately following this node. |
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.Document |
getOwnerDocument()
The Document object associated with this node. |
org.w3c.dom.Node |
getParentNode()
The parent of this node. |
java.lang.String |
getPrefix()
Unimplemented. |
org.w3c.dom.Node |
getPreviousSibling()
The node immediately preceding this node. |
boolean |
hasChildNodes()
This is a convenience method to allow easy determination of whether a node has any children. |
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 . |
void |
normalize()
Unimplemented. |
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 |
setNodeValue(java.lang.String x)
DocumentFragments never have a nodeValue. |
void |
setPrefix(java.lang.String prefix)
Unimplemented. |
boolean |
supports(java.lang.String feature,
java.lang.String version)
Unimplemented. |
Methods inherited from class weblogic.apache.xalan.xslt.UnImplNode |
getAttribute,
getAttributeNode,
getAttributeNodeNS,
getAttributeNS,
getElementsByTagName,
getElementsByTagNameNS,
getLength,
getTagName,
hasAttribute,
hasAttributeNS,
hasAttributes,
item,
removeAttribute,
removeAttributeNode,
removeAttributeNS,
setAttribute,
setAttributeNode,
setAttributeNodeNS,
setAttributeNS |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ResultTreeFrag(org.w3c.dom.Document docFactory, XPathSupport support)
public ResultTreeFrag(org.w3c.dom.Document docFactory, MutableNodeList children, XPathSupport support)
Method Detail |
public final java.lang.String getNodeName()
public java.lang.String getNodeValue() throws org.w3c.dom.DOMException
DOMString
variable on the implementation
platform.public void setNodeValue(java.lang.String x) throws org.w3c.dom.DOMException
public final short getNodeType()
public org.w3c.dom.Node getParentNode()
Document
,
DocumentFragment
, and Attr
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
.
public org.w3c.dom.NodeList getChildNodes()
NodeList
that contains all children of this node. If there
are no children, this is a NodeList
containing no nodes.
The content of the returned NodeList
is "live" in the sense
that, for instance, changes to the children of the node object that
it was created from are immediately reflected in the nodes returned by
the NodeList
accessors; it is not a static snapshot of the
content of the node. This is true for every NodeList
,
including the ones returned by the getElementsByTagName
method.
public org.w3c.dom.Node getFirstChild()
null
.
public org.w3c.dom.Node getLastChild()
null
.
public org.w3c.dom.Node getPreviousSibling()
null
.
public org.w3c.dom.Node getNextSibling()
null
.
public org.w3c.dom.NamedNodeMap getAttributes()
NamedNodeMap
containing the attributes of this node (if it
is an Element
) or null
otherwise.
public org.w3c.dom.Document getOwnerDocument()
Document
object associated with this node. This is also
the Document
object used to create new nodes. When this
node is a Document
this is null
.
public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild) throws org.w3c.dom.DOMException
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.
newChild
- The node to insert.refChild
- The reference node, i.e., the node before which the new
node must be inserted.newChild
node, or if
the node to insert is one of this node's ancestors.
newChild
was created
from a different document than the one that created this node.
refChild
is not a child of
this node.public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild, org.w3c.dom.Node oldChild) throws org.w3c.dom.DOMException
oldChild
with newChild
in the list of children, and returns the oldChild
node. If
the newChild
is already in the tree, it is first removed.
newChild
- The new node to put in the child list.oldChild
- The node being replaced in the list.newChild
node, or it
the node to put in is one of this node's ancestors.
newChild
was created
from a different document than the one that created this node.
oldChild
is not a child of
this node.public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild) throws org.w3c.dom.DOMException
oldChild
from the list
of children, and returns it.
oldChild
- The node being removed.oldChild
is not a child of
this node.public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild) throws org.w3c.dom.DOMException
newChild
to the end of the list of children of
this node. If the newChild
is already in the tree, it is
first removed.
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 nodenewChild
node, or if
the node to append is one of this node's ancestors.
newChild
was created
from a different document than the one that created this node.
public boolean hasChildNodes()
true
if the node has any children,
false
if the node has no children.public org.w3c.dom.Node cloneNode(boolean deep)
parentNode
returns null
.).
Element
copies all attributes and their
values, including those generated by the XML processor to represent
defaulted attributes, but this method does not copy any text it contains
unless it is a deep clone, since the text is contained in a child
Text
node. Cloning any other type of node simply returns a
copy of this 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 void normalize()
public boolean supports(java.lang.String feature, java.lang.String version)
public java.lang.String getNamespaceURI()
public java.lang.String getPrefix()
public void setPrefix(java.lang.String prefix) throws org.w3c.dom.DOMException
public java.lang.String getLocalName()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs60 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |