|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.openfoundation.xml.dom.XPNode
public class XPNode
The Node
class is a wrapper class for objects implementing org.w3c.dom.node interface.
Please refer to Node (Java 2 Platform SE v1.4.2)
for detail information.
Field Summary | |
---|---|
static short |
ATTRIBUTE_NODE
The underlying object is an org.w3c.dom.Attr . |
static short |
CDATA_SECTION_NODE
The underlying object is an org.w3c.dom.CDATASection . |
static short |
COMMENT_NODE
The underlying object is an org.w3c.dom.Comment . |
static short |
DOCUMENT_FRAGMENT_NODE
The underlying object is an org.w3c.dom.DocumentFragment . |
static short |
DOCUMENT_NODE
The underlying object is an org.w3c.dom.Document . |
static short |
DOCUMENT_TYPE_NODE
The underlying object is an org.w3c.dom.DocumentType . |
static short |
ELEMENT_NODE
The underlying object is an org.w3c.dom.Element . |
static short |
PROCESSING_INSTRUCTION_NODE
The underlying object is an org.w3c.dom.ProcessInstrusion . |
static short |
TEXT_NODE
The underlying object is an org.w3c.dom.Text . |
Constructor Summary | |
---|---|
XPNode()
Creates a new XPNode object. |
|
XPNode(org.w3c.dom.Node nodePlace)
Creates a new XPNode object with Node . |
Method Summary | |
---|---|
XPNode |
AppendChild(XPNode newChild)
Adds the node newChild to the end of the list of children of this node. |
XPNode |
CloneNode(boolean deep)
Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes. |
XPNamedNodeMap |
GetAttributes()
A XPNamedNodeMap containing the attributes of this node
(if it is an XPElement ) or null otherwise. |
XPNodeList |
GetChildNodes()
A XPNodeList that contains all children of this node. |
XPNode |
GetFirstChild()
The first child of this node. |
XPNode |
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. |
XPNode |
GetNextSibling()
The node immediately following this node. |
java.lang.String |
GetNodeName()
The name of this node, depending on its type. |
short |
GetNodeType()
A code representing the type of the underlying object. |
java.lang.String |
GetNodeValue()
The value of this node, depending on its type. |
XPDocument |
GetOwnerDocument()
The XPDocument object associated with this node. |
XPNode |
GetParentNode()
The parent of this node. |
java.lang.String |
GetPrefix()
The namespace prefix of this node, or null if it is unspecified. |
XPNode |
GetPreviousSibling()
The node immediately preceding this node. |
org.w3c.dom.Node |
GetUnderlyingObject()
Retrieve the underlying org.w3c.dom.Node object. |
boolean |
HasAttributes()
Returns whether this node (if it is an element) has any attributes. |
boolean |
HasChildNodes()
Returns whether this node has any children. |
XPNode |
InsertBefore(XPNode newChild,
XPNode refChild)
Inserts the node newChild before the existing child node
refChild . |
boolean |
IsAttributeNode()
Whether this underlying object is an Attr node. |
boolean |
IsCDATASectionNode()
Whether this underlying object is a CDATASection node. |
boolean |
IsCommentNode()
Whether this underlying object is a Comment node. |
boolean |
IsDocumentFragmentNode()
Whether this underlying object is a DocumentFragment node. |
boolean |
IsDocumentNode()
Whether this underlying object is a Document node. |
boolean |
IsDocumentTypeNode()
Whether this underlying object is a DocumentType node. |
boolean |
IsElementNode()
Whether this underlying object is a Element node. |
boolean |
IsProcessingInstructionNode()
Whether this underlying object is a ProcessingInstruction node. |
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. |
boolean |
IsTextNode()
Whether this underlying object is a Text 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. |
XPNode |
RemoveChild(XPNode oldChild)
Removes the child node indicated by oldChild from the list
of children, and returns it. |
XPNode |
ReplaceChild(XPNode newChild,
XPNode oldChild)
Replaces the child node oldChild with newChild
in the list of children, and returns the oldChild node. |
void |
SetNodeValue(java.lang.String nodeValue)
The value of this node, depending on its type. |
void |
SetPrefix(java.lang.String prefix)
The namespace prefix of this node, or null if it is unspecified. |
protected void |
StoreNode(org.w3c.dom.Node nodePlace)
Store/set the underlying Node object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static short ATTRIBUTE_NODE
org.w3c.dom.Attr
.
public static short CDATA_SECTION_NODE
org.w3c.dom.CDATASection
.
public static short COMMENT_NODE
org.w3c.dom.Comment
.
public static short DOCUMENT_FRAGMENT_NODE
org.w3c.dom.DocumentFragment
.
public static short DOCUMENT_NODE
org.w3c.dom.Document
.
public static short DOCUMENT_TYPE_NODE
org.w3c.dom.DocumentType
.
public static short ELEMENT_NODE
org.w3c.dom.Element
.
public static short PROCESSING_INSTRUCTION_NODE
org.w3c.dom.ProcessInstrusion
.
public static short TEXT_NODE
org.w3c.dom.Text
.
Constructor Detail |
---|
public XPNode()
XPNode
object.
public XPNode(org.w3c.dom.Node nodePlace)
XPNode
object with Node
.
nodePlace
- - underlying node objectMethod Detail |
---|
public XPNode AppendChild(XPNode newChild)
newChild
to the end of the list of children of this node.
newChild
- - node to be appended
public XPNode CloneNode(boolean deep)
deep
- - shallow or deep clone
public XPNamedNodeMap GetAttributes()
XPNamedNodeMap
containing the attributes of this node
(if it is an XPElement
) or null
otherwise.
public XPNodeList GetChildNodes()
XPNodeList
that contains all children of this node.
public XPNode GetFirstChild()
public XPNode GetLastChild()
public java.lang.String GetLocalName()
public java.lang.String GetNamespaceURI()
null
if it is unspecified.
public XPNode GetNextSibling()
public java.lang.String GetNodeName()
public short GetNodeType()
public java.lang.String GetNodeValue()
public XPDocument GetOwnerDocument()
XPDocument
object associated with this node.
XPDocument
object) of the nodepublic XPNode GetParentNode()
public java.lang.String GetPrefix()
null
if it is unspecified.
public XPNode GetPreviousSibling()
public org.w3c.dom.Node GetUnderlyingObject()
org.w3c.dom.Node
object.
public boolean HasAttributes()
true
if this node has any attributes, false
otherwise.public boolean HasChildNodes()
true
if this node has any children, false
otherwise.public boolean IsAttributeNode()
Attr
node.
true
if this is an Attr
node, false
otherwise.public boolean IsCDATASectionNode()
CDATASection
node.
true
if this is a CDATASection
node, false
otherwise.public boolean IsCommentNode()
Comment
node.
true
if this is a Comment
node, false
otherwise.public boolean IsDocumentFragmentNode()
DocumentFragment
node.
true
if this is a DocumentFragment
node, false
otherwise.public boolean IsDocumentNode()
Document
node.
true
if this is a Documentt
node, false
otherwise.public boolean IsDocumentTypeNode()
DocumentType
node.
true
if this is a DocumentType
node, false
otherwise.public boolean IsElementNode()
Element
node.
true
if this is a Element
node, false
otherwise.public boolean IsProcessingInstructionNode()
ProcessingInstruction
node.
true
if this is a ProcessingInstruction
node, false
otherwise.public boolean IsTextNode()
Text
node.
true
if this is a Text
node, false
otherwise.public XPNode InsertBefore(XPNode newChild, XPNode refChild)
newChild
before the existing child node
refChild
. If refChild
is null
,
insert newChild
at the end of the list of children.
newChild
- - child to be insertedrefChild
- - child to be inserted before
public boolean IsSupported(java.lang.String feature, java.lang.String version)
feature
- The name of the feature to test.version
- This is the version number of the feature to test.
true
if the specified feature is supported
on this node, false
otherwise.public void Normalize()
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.
public XPNode RemoveChild(XPNode oldChild)
oldChild
from the list
of children, and returns it.
oldChild
- - child to be removed.
public XPNode ReplaceChild(XPNode newChild, XPNode oldChild)
oldChild
with newChild
in the list of children, and returns the oldChild
node.
newChild
- - child to do the replacingoldChild
- - child to be replaced
public void SetNodeValue(java.lang.String nodeValue)
nodeValue
- - node to be setpublic void SetPrefix(java.lang.String prefix)
null
if it is unspecified.
prefix
- namespace prefix value.protected void StoreNode(org.w3c.dom.Node nodePlace)
Node
object.
nodePlace
- - node to be stored.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |